18 #include "art_root_io/TFileService.h" 25 #include "TLorentzVector.h" 109 fHitTree = tfs->make<TTree>(
"HitTree",
"HitTree");
140 std::vector<TH1D*> HitHist;
142 sprintf(HistName,
"Event %d AllOpDets", evt.
id().
event());
144 TH1D * AllHits =
nullptr;
147 AllHits = tfs->make<TH1D>(HistName,
";t (ns);",
156 sprintf(HistName,
"Event %d OpDet %i", evt.
id().
event(), i);
169 for(
unsigned int i = 0; i < HitHandle->size(); ++i)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
EDAnalyzer(fhicl::ParameterSet const &pset)
unsigned int NOpChannels() const
Number of electronics channels for all the optical detectors.
art framework interface to geometry description
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
void analyze(const art::Event &)
EventNumber_t event() const
OpHitAna(const fhicl::ParameterSet &)
bool fMakeHistAllChannels