18 #include "art_root_io/TFileService.h" 25 #include "TLorentzVector.h" 101 fHitTree = tfs->make<TTree>(
"HitTree",
"HitTree");
129 std::vector<TH1D*> HitHist;
131 sprintf(HistName,
"Event %d AllOpDets", evt.
id().
event());
133 TH1D* AllHits =
nullptr;
135 AllHits = tfs->make<TH1D>(HistName,
142 for (
int i = 0; i != NOpChannels; ++i) {
144 sprintf(HistName,
"Event %d OpDet %i", evt.
id().
event(), i);
146 HitHist.push_back(tfs->make<TH1D>(HistName,
156 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.
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
void analyze(const art::Event &)
EventNumber_t event() const
OpHitAna(const fhicl::ParameterSet &)
art framework interface to geometry description
bool fMakeHistAllChannels