17 #ifndef HitEfficiencyAna_module
18 #define HitEfficiencyAna_module
30 #include "cetlib/cpu_timer.h"
36 #include "art/Framework/Core/EDAnalyzer.h"
37 #include "art/Framework/Principal/Event.h"
38 #include "art/Framework/Principal/Handle.h"
39 #include "art/Framework/Principal/View.h"
40 #include "art/Framework/Services/Registry/ServiceHandle.h"
41 #include "art_root_io/TFileService.h"
42 #include "art/Framework/Core/ModuleMacros.h"
43 #include "art/Utilities/make_tool.h"
44 #include "canvas/Utilities/InputTag.h"
45 #include "canvas/Persistency/Common/FindManyP.h"
46 #include "messagefacility/MessageLogger/MessageLogger.h"
47 #include "fhiclcpp/ParameterSet.h"
48 #include "cetlib_except/exception.h"
50 #include "nusimdata/SimulationBase/MCParticle.h"
132 : EDAnalyzer(parameterSet),
134 fPedestalRetrievalAlg(*lar::
providerFrom<lariov::DetPedestalService>())
137 fGeometry = lar::providerFrom<geo::Geometry>();
145 HitEfficiencyAna::~HitEfficiencyAna()
149 void HitEfficiencyAna::beginJob()
157 art::ServiceHandle<art::TFileService>
tfs;
160 fTree = tfs->makeAndRegister<TTree>(
"HitEffic_t",
"Hit Efficiency Tuple");
171 hitHistTool->initializeHists(tfs,
"HitEffic");
172 hitHistTool->initializeTuple(
fTree);
180 void HitEfficiencyAna::beginRun(
const art::Run& )
195 const std::vector<fhicl::ParameterSet>& hitHistogramToolVec = p.get<std::vector<fhicl::ParameterSet>>(
"HitEfficiencyHistogramToolList");
197 for(
auto& hitHistogramTool : hitHistogramToolVec)
207 fEvent =
event.id().event();
222 void HitEfficiencyAna::endJob()
236 #endif // HitEfficiencyAna_module
process_name opflashCryo1 flashfilter analyze
Utilities related to art service access.
T::provider_type const * providerFrom()
Returns a constant pointer to the provider of specified service.
Declaration of signal hit object.
void analyze(const art::Event &evt)
virtual ~HitEfficiencyAna()
void reconfigure(fhicl::ParameterSet const &pset)
void beginRun(const art::Run &run)
Description of geometry of one entire detector.
Definition of data types for geometry description.
std::vector< std::unique_ptr< IHitEfficiencyHistogramTool > > fHitHistogramToolVec
const lariov::DetPedestalProvider & fPedestalRetrievalAlg
Keep track of an instance to the pedestal retrieval alg.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
art::ServiceHandle< art::TFileService > tfs
HitEfficiencyAna(fhicl::ParameterSet const &pset)
art framework interface to geometry description
BEGIN_PROLOG could also be cout
const geo::GeometryCore * fGeometry