Public Member Functions | Private Attributes | List of all members
proto::ProtoDUNEBeam Class Reference

#include <protoDUNEBeam.h>

Public Member Functions

 ProtoDUNEBeam (fhicl::ParameterSet const &pset, ifbeam_ns::BeamFolder *ptr)
 
 ~ProtoDUNEBeam ()
 
bool Update (uint64_t ts=0)
 
void SetLoadFromDB (bool v)
 
void SetCSVFileName (std::string s)
 
void SetTimeWindow (int tw)
 
void SetBundleName (std::string bn)
 
bool LoadBeamFolder ()
 
void LoadData ()
 

Private Attributes

bool _loadFromDB
 
double _timeWindow
 
std::vector< double > _xy1
 
std::vector< double > _xy2
 
std::vector< double > _xy3
 
std::vector< double > _xy4
 
std::vector< double > _ckov1
 
std::vector< double > _ckov2
 
uint64_t _currentTS
 
std::string _csvFileName
 
std::string _bundleName
 
std::unique_ptr< ifbeam_ns::BeamFolder > _bfp
 

Detailed Description

Definition at line 27 of file protoDUNEBeam.h.

Constructor & Destructor Documentation

proto::ProtoDUNEBeam::ProtoDUNEBeam ( fhicl::ParameterSet const &  pset,
ifbeam_ns::BeamFolder *  ptr 
)

Definition at line 26 of file protoDUNEBeam.cxx.

26  :
27  _loadFromDB (pset.get<bool >("LoadFromDB")),
28  _timeWindow (pset.get<double >("TimeWindow")),
29  _csvFileName (pset.get<std::string >("CSVFileName")),
30  _bundleName (pset.get<std::string >("BundleName")),
31  _bfp(ptr)
32  {
33 
34  }
std::string string
Definition: nybbler.cc:12
std::string _csvFileName
Definition: protoDUNEBeam.h:53
std::string _bundleName
Definition: protoDUNEBeam.h:54
std::unique_ptr< ifbeam_ns::BeamFolder > _bfp
Definition: protoDUNEBeam.h:56
proto::ProtoDUNEBeam::~ProtoDUNEBeam ( )
inline

Definition at line 30 of file protoDUNEBeam.h.

30 {};

Member Function Documentation

bool proto::ProtoDUNEBeam::LoadBeamFolder ( )
void proto::ProtoDUNEBeam::LoadData ( )
void proto::ProtoDUNEBeam::SetBundleName ( std::string  bn)
inline

Definition at line 37 of file protoDUNEBeam.h.

37 {_bundleName = bn; }
std::string _bundleName
Definition: protoDUNEBeam.h:54
void proto::ProtoDUNEBeam::SetCSVFileName ( std::string  s)
inline

Definition at line 35 of file protoDUNEBeam.h.

35 {_csvFileName=s;}
std::string _csvFileName
Definition: protoDUNEBeam.h:53
static QCString * s
Definition: config.cpp:1042
void proto::ProtoDUNEBeam::SetLoadFromDB ( bool  v)
inline

Definition at line 34 of file protoDUNEBeam.h.

void proto::ProtoDUNEBeam::SetTimeWindow ( int  tw)
inline

Definition at line 36 of file protoDUNEBeam.h.

36 {_timeWindow = tw;}
bool proto::ProtoDUNEBeam::Update ( uint64_t  ts = 0)

Definition at line 37 of file protoDUNEBeam.cxx.

38  {
39  if (_currentTS == ts) return true;
40 
41  // double trtgtd=0.;
42 
43  _xy1.clear();
44  _xy2.clear();
45  _xy3.clear();
46  _xy4.clear();
47  _ckov1.clear();
48  _ckov2.clear();
49  _xy1 = _bfp->GetNamedVector(ts,"E:NT04XY1[]");
50  _xy2 = _bfp->GetNamedVector(ts,"E:NT04XY2[]");
51  _xy3 = _bfp->GetNamedVector(ts,"E:NT04XY3[]");
52  _xy4 = _bfp->GetNamedVector(ts,"E:NT04XY4[]");
53  _ckov1 = _bfp->GetNamedVector(ts,"E:NT04Ckov1[]");
54  _ckov2 = _bfp->GetNamedVector(ts,"E:NT04Ckov2[]");
55 
56  return true;
57  }
std::vector< double > _xy2
Definition: protoDUNEBeam.h:46
std::vector< double > _ckov1
Definition: protoDUNEBeam.h:49
std::vector< double > _ckov2
Definition: protoDUNEBeam.h:50
std::vector< double > _xy4
Definition: protoDUNEBeam.h:48
std::vector< double > _xy1
Definition: protoDUNEBeam.h:45
std::vector< double > _xy3
Definition: protoDUNEBeam.h:47
std::unique_ptr< ifbeam_ns::BeamFolder > _bfp
Definition: protoDUNEBeam.h:56

Member Data Documentation

std::unique_ptr<ifbeam_ns::BeamFolder> proto::ProtoDUNEBeam::_bfp
private

Definition at line 56 of file protoDUNEBeam.h.

std::string proto::ProtoDUNEBeam::_bundleName
private

Definition at line 54 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_ckov1
private

Definition at line 49 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_ckov2
private

Definition at line 50 of file protoDUNEBeam.h.

std::string proto::ProtoDUNEBeam::_csvFileName
private

Definition at line 53 of file protoDUNEBeam.h.

uint64_t proto::ProtoDUNEBeam::_currentTS
private

Definition at line 52 of file protoDUNEBeam.h.

bool proto::ProtoDUNEBeam::_loadFromDB
private

Definition at line 43 of file protoDUNEBeam.h.

double proto::ProtoDUNEBeam::_timeWindow
private

Definition at line 44 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_xy1
private

Definition at line 45 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_xy2
private

Definition at line 46 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_xy3
private

Definition at line 47 of file protoDUNEBeam.h.

std::vector<double> proto::ProtoDUNEBeam::_xy4
private

Definition at line 48 of file protoDUNEBeam.h.


The documentation for this class was generated from the following files: