protoDUNEBeam.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // protoDUNEBeam.h
3 //
4 // Data provider class for beam data
5 //
6 // jpaley@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef PROTODUNEBEAM_H
10 #define PROTODUNEBEAM_H
11 
12 #include <string>
13 #include <vector>
14 #include <map>
15 #include <unordered_map>
16 #include <memory>
17 
18 #include "fhiclcpp/ParameterSet.h"
19 #include "ifbeam.h"
20 
21 //#include "lardataalg/DetectorInfo/RunHistory.h"
22 //#include "nutools/IFDatabase/Table.h"
23 
24 ///General LArSoft Utilities
25 namespace proto {
26 
27  class ProtoDUNEBeam {
28  public:
29  ProtoDUNEBeam(fhicl::ParameterSet const& pset, ifbeam_ns::BeamFolder* ptr);
31 
32  bool Update(uint64_t ts = 0);
33 
34  void SetLoadFromDB(bool v) {_loadFromDB = v;}
36  void SetTimeWindow(int tw) {_timeWindow = tw;}
38  bool LoadBeamFolder();
39  void LoadData();
40 
41  private:
42 
44  double _timeWindow; // time window in seconds to search for data
45  std::vector<double> _xy1;
46  std::vector<double> _xy2;
47  std::vector<double> _xy3;
48  std::vector<double> _xy4;
49  std::vector<double> _ckov1;
50  std::vector<double> _ckov2;
51 
52  uint64_t _currentTS;
55 
56  std::unique_ptr<ifbeam_ns::BeamFolder> _bfp;
57 
58  }; // class ProtoDUNEBeam
59 } //namespace dune
60 #endif // RUNHISTORYDUNE_H
61 
void SetBundleName(std::string bn)
Definition: protoDUNEBeam.h:37
std::string string
Definition: nybbler.cc:12
std::vector< double > _xy2
Definition: protoDUNEBeam.h:46
std::vector< double > _ckov1
Definition: protoDUNEBeam.h:49
std::vector< double > _ckov2
Definition: protoDUNEBeam.h:50
void SetTimeWindow(int tw)
Definition: protoDUNEBeam.h:36
std::vector< double > _xy4
Definition: protoDUNEBeam.h:48
std::string _csvFileName
Definition: protoDUNEBeam.h:53
std::string _bundleName
Definition: protoDUNEBeam.h:54
General LArSoft Utilities.
void SetLoadFromDB(bool v)
Definition: protoDUNEBeam.h:34
std::vector< double > _xy1
Definition: protoDUNEBeam.h:45
void SetCSVFileName(std::string s)
Definition: protoDUNEBeam.h:35
std::vector< double > _xy3
Definition: protoDUNEBeam.h:47
std::unique_ptr< ifbeam_ns::BeamFolder > _bfp
Definition: protoDUNEBeam.h:56
static QCString * s
Definition: config.cpp:1042
bool Update(uint64_t ts=0)
ProtoDUNEBeam(fhicl::ParameterSet const &pset, ifbeam_ns::BeamFolder *ptr)