16 #ifndef HitEfficiencyAna_module
17 #define HitEfficiencyAna_module
27 #include "cetlib/cpu_timer.h"
32 #include "art/Framework/Core/EDAnalyzer.h"
33 #include "art/Framework/Principal/Event.h"
34 #include "art/Framework/Principal/Handle.h"
35 #include "art/Framework/Principal/View.h"
36 #include "art/Framework/Services/Registry/ServiceHandle.h"
37 #include "art_root_io/TFileService.h"
38 #include "art/Framework/Core/ModuleMacros.h"
39 #include "art/Utilities/make_tool.h"
40 #include "canvas/Utilities/InputTag.h"
41 #include "canvas/Persistency/Common/FindManyP.h"
42 #include "messagefacility/MessageLogger/MessageLogger.h"
43 #include "fhiclcpp/ParameterSet.h"
44 #include "cetlib_except/exception.h"
45 #include "nusimdata/SimulationBase/MCParticle.h"
58 namespace HitEfficiencyAna
110 : EDAnalyzer(parameterSet),
114 fGeometry = lar::providerFrom<geo::Geometry>();
120 HitEfficiencyAna::~HitEfficiencyAna()
123 void HitEfficiencyAna::beginJob()
130 art::ServiceHandle<art::TFileService>
tfs;
131 std::cout <<
"beginjob running" << std::endl;
133 fTree = tfs->makeAndRegister<TTree>(
"HitEffic_t",
"Hit Efficiency Tuple");
142 hitHistTool->initializeHists(tfs,
"HitEffic");
143 hitHistTool->initializeTuple(
fTree);
149 void HitEfficiencyAna::beginRun(
const art::Run& )
163 const std::vector<fhicl::ParameterSet>& hitHistogramToolVec = p.get<std::vector<fhicl::ParameterSet>>(
"HitEfficiencyHistogramToolList");
165 for(
auto& hitHistogramTool : hitHistogramToolVec)
167 std::cout <<
"reconfigure running" << std::endl;
174 fEvent =
event.id().event();
188 void HitEfficiencyAna::endJob()
192 std::cout <<
"endjob running" << std::endl;
197 DEFINE_ART_MODULE(HitEfficiencyAna)
199 #endif // HitEfficiencyAna_module
process_name opflashCryo1 flashfilter analyze
Utilities related to art service access.
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
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