20 #include "cetlib/cpu_timer.h"
26 #include "art/Framework/Core/EDAnalyzer.h"
27 #include "art/Framework/Principal/Event.h"
28 #include "art/Framework/Principal/Handle.h"
29 #include "art/Framework/Principal/View.h"
30 #include "art/Framework/Services/Registry/ServiceHandle.h"
31 #include "art_root_io/TFileService.h"
32 #include "art/Framework/Core/ModuleMacros.h"
33 #include "art/Utilities/make_tool.h"
34 #include "canvas/Utilities/InputTag.h"
35 #include "canvas/Persistency/Common/FindManyP.h"
36 #include "messagefacility/MessageLogger/MessageLogger.h"
37 #include "fhiclcpp/ParameterSet.h"
38 #include "cetlib_except/exception.h"
65 explicit WireAna(fhicl::ParameterSet
const& pset);
76 void beginRun(
const art::Run& run)
override;
117 : EDAnalyzer(parameterSet),
118 fPedestalRetrievalAlg(*lar::
providerFrom<lariov::DetPedestalService>())
121 fGeometry = lar::providerFrom<geo::Geometry>();
133 void WireAna::beginJob()
141 art::ServiceHandle<art::TFileService>
tfs;
153 void WireAna::beginRun(
const art::Run& )
167 fWireProducerLabelVec = p.get< std::vector<art::InputTag> >(
"WireModuleLabel", std::vector<art::InputTag>() = {
"recowire"});
171 const std::vector<fhicl::ParameterSet>& wireHistogramToolVec = p.get<std::vector<fhicl::ParameterSet>>(
"WireHistogramToolList");
173 for(
auto& wireHistogramTool : wireHistogramToolVec)
183 fEvent =
event.id().event();
193 art::Handle< std::vector<recob::Wire> > wireHandle;
194 event.getByLabel(wireLabel, wireHandle);
198 art::Handle<std::vector<sim::SimChannel>> simChannelHandle;
205 if (simChannelHandle.isValid())
207 for(
const auto& simChannel : *simChannelHandle) channelMap[simChannel.Channel()] = &simChannel;
216 if (wireHandle.isValid())
219 art::fill_ptr_vector(wireVec, wireHandle);
228 void WireAna::endJob()
242 #endif // WireAna_module
const geo::GeometryCore * fGeometry
process_name opflashCryo1 flashfilter analyze
std::vector< std::unique_ptr< IWireHistogramTool > > fWireHistogramToolVec
Utilities related to art service access.
T::provider_type const * providerFrom()
Returns a constant pointer to the provider of specified service.
void analyze(const art::Event &evt) override
Collect all the RawData header files together.
std::vector< std::vector< double > > fChannelPedVec
std::vector< art::InputTag > fWireProducerLabelVec
Description of geometry of one entire detector.
Definition of data types for geometry description.
void reconfigure(fhicl::ParameterSet const &pset)
WireAna(fhicl::ParameterSet const &pset)
void beginRun(const art::Run &run) override
art::InputTag fSimChannelProducerLabel
Declaration of basic channel signal object.
art::ServiceHandle< art::TFileService > tfs
const lariov::DetPedestalProvider & fPedestalRetrievalAlg
Keep track of an instance to the pedestal retrieval alg.
art framework interface to geometry description