Definition at line 52 of file wvfAna_module.cc.
opdet::wvfAna::wvfAna |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 92 of file wvfAna_module.cc.
100 auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataForJob();
101 fSampling = clockData.OpticalClock().Frequency();
std::string fInputModuleName
std::vector< std::string > fOpDetsToPlot
opdet::wvfAna::wvfAna |
( |
wvfAna const & |
| ) |
|
|
delete |
opdet::wvfAna::wvfAna |
( |
wvfAna && |
| ) |
|
|
delete |
void opdet::wvfAna::analyze |
( |
art::Event const & |
e | ) |
|
|
override |
Definition at line 110 of file wvfAna_module.cc.
113 std::cout <<
"My module on event #" <<
e.id().event() << std::endl;
115 art::ServiceHandle<art::TFileService>
tfs;
118 art::Handle< std::vector< raw::OpDetWaveform > > waveHandle;
121 if(!waveHandle.isValid()) {
122 std::cout << Form(
"Did not find any G4 photons from a producer: %s",
"largeant") << std::endl;
148 std::cout <<
"Number of waveforms: " << waveHandle->size() << std::endl;
155 for(
auto const& wvf : (*waveHandle)) {
159 if (std::find(fOpDetsToPlot.begin(), fOpDetsToPlot.end(),
opdetType) == fOpDetsToPlot.end()) {
continue;}
176 for(
unsigned int i = 0; i < wvf.size(); i++) {
177 wvfHist->SetBinContent(i + 1, (
double)wvf[i]);
std::string fInputModuleName
std::string opdetElectronics
std::stringstream histname
std::vector< std::string > fOpDetsToPlot
opdet::sbndPDMapAlg pdMap
std::string electronicsType(size_t ch) const
art::ServiceHandle< art::TFileService > tfs
std::string pdType(size_t ch) const override
BEGIN_PROLOG could also be cout
void opdet::wvfAna::beginJob |
( |
| ) |
|
|
override |
void opdet::wvfAna::endJob |
( |
| ) |
|
|
override |
size_t opdet::wvfAna::fChNumber |
|
private |
double opdet::wvfAna::fEndTime |
|
private |
size_t opdet::wvfAna::fEvNumber |
|
private |
std::string opdet::wvfAna::fInputModuleName |
|
private |
std::vector<std::string> opdet::wvfAna::fOpDetsToPlot |
|
private |
double opdet::wvfAna::fSampling |
|
private |
double opdet::wvfAna::fSampling_Daphne |
|
private |
double opdet::wvfAna::fStartTime |
|
private |
std::stringstream opdet::wvfAna::histname |
|
private |
std::string opdet::wvfAna::opdetElectronics |
|
private |
std::string opdet::wvfAna::opdetType |
|
private |
The documentation for this class was generated from the following file: