Definition at line 32 of file OpDetWFDump_module.cc.
OpDetWFDump::OpDetWFDump |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void OpDetWFDump::analyze |
( |
art::Event const & |
e | ) |
|
|
override |
Definition at line 102 of file OpDetWFDump_module.cc.
104 auto const* ts = lar::providerFrom<detinfo::DetectorClocksService>();
106 art::Handle< std::vector< raw::OpDetWaveform > > hwf;
107 e.getByLabel(
"opdaq",hwf);
110 std::cout <<
"Invalid producer..." << std::endl;
113 std::cout <<
"Number of photon channel: " <<hwf->size() << std::endl;
115 auto geop = lar::providerFrom<geo::Geometry>();
117 std::cout << geop->Ncryostats() <<
" cryostats" << std::endl;
119 for(
auto const& opwf : (*hwf)) {
120 std::cout << opwf.ChannelNumber() <<
" ... " << opwf.size() << std::endl;
121 _wf.resize(opwf.size());
123 for(
size_t i=0; i<
_wf.size(); ++i) {
_wf.at(i) = opwf.at(i); }
124 _ch=opwf.ChannelNumber();
129 std::cout << (*hwf)[0].TimeStamp() <<
" ... " << ts->TriggerTime() <<
" ... " << ts->BeamGateTime() <<
" ... " << ts->G4ToElecTime(0.) << std::endl;
131 art::Handle< std::vector< recob::OpHit> > hhit;
132 e.getByLabel(
"opreco",hhit);
137 for(
auto const& oph : (*hhit)) {
140 _amp = oph.Amplitude();
BEGIN_PROLOG could also be cout
void OpDetWFDump::beginJob |
( |
| ) |
|
|
override |
Definition at line 72 of file OpDetWFDump_module.cc.
75 _f = TFile::Open(
"opdetwf.root",
"RECREATE");
77 _wftree =
new TTree(
"anatree",
"anatree");
83 _hittree =
new TTree(
"hittree",
"hittree");
BEGIN_PROLOG could also be cout
void OpDetWFDump::endJob |
( |
| ) |
|
|
override |
double OpDetWFDump::_area |
|
private |
TTree* OpDetWFDump::_hittree |
|
private |
double OpDetWFDump::_tend |
|
private |
double OpDetWFDump::_tpeak |
|
private |
double OpDetWFDump::_tstart |
|
private |
std::vector<float> OpDetWFDump::_wf |
|
private |
TTree* OpDetWFDump::_wftree |
|
private |
The documentation for this class was generated from the following file: