Definition at line 44 of file wvfAnaicarus_module.cc.
opdet::wvfAnaicarus::wvfAnaicarus |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void opdet::wvfAnaicarus::analyze |
( |
art::Event const & |
e | ) |
|
|
override |
Definition at line 100 of file wvfAnaicarus_module.cc.
103 std::cout <<
"My module on event #" <<
e.id().event() << std::endl;
105 art::ServiceHandle<art::TFileService>
tfs;
108 art::Handle< std::vector< raw::OpDetWaveform > > waveHandle;
111 if(!waveHandle.isValid()){
112 std::cout << Form(
"Did not find any G4 photons from a producer: %s",
"largeant") << std::endl;
115 std::cout <<
"Number of photon channel: " <<waveHandle->size() << std::endl;
118 for(
auto const& wvf : (*waveHandle)){
134 for(
unsigned int i=0; i<wvf.size();i++){
135 wvfHist->SetBinContent(i+1,(
double)wvf[i]);
std::stringstream histname
art::ServiceHandle< art::TFileService > tfs
std::string fInputModuleName
BEGIN_PROLOG could also be cout
void opdet::wvfAnaicarus::beginJob |
( |
| ) |
|
|
override |
void opdet::wvfAnaicarus::endJob |
( |
| ) |
|
|
override |
size_t opdet::wvfAnaicarus::fChNumber |
|
private |
double opdet::wvfAnaicarus::fEndTime |
|
private |
size_t opdet::wvfAnaicarus::fEvNumber |
|
private |
std::string opdet::wvfAnaicarus::fInputModuleName |
|
private |
double opdet::wvfAnaicarus::fSampling |
|
private |
double opdet::wvfAnaicarus::fStartTime |
|
private |
std::stringstream opdet::wvfAnaicarus::histname |
|
private |
The documentation for this class was generated from the following file: