Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
jmshower::RecoJMShowerAna Class Reference
Inheritance diagram for jmshower::RecoJMShowerAna:
art::EDAnalyzer art::EventObserverBase art::Consumer art::EngineCreator

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 RecoJMShowerAna (fhicl::ParameterSet const &pset)
 
 ~RecoJMShowerAna ()
 
void analyze (const art::Event &evt)
 
void beginJob ()
 
void beginSubRun (const art::SubRun &sr)
 
void reconfigure (const fhicl::ParameterSet &pset)
 
std::string workerType () const
 
bool modifiesEvent () const
 
void registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
art::Handle< art::TriggerResultsgetTriggerResults (Event const &e) const
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TmayConsumeView (InputTag const &it)
 
base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label)
 
seed_t get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1)
 

Static Public Member Functions

static cet::exempt_ptr< Consumernon_module_context ()
 

Public Attributes

std::string fPotLabel
 Module that produced the POTSum object. More...
 

Protected Member Functions

CurrentProcessingContext const * currentContext () const
 
detail::CachedProducts & cachedProducts ()
 
void validateConsumedProduct (BranchType const bt, ProductInfo const &pi)
 
void prepareForJob (fhicl::ParameterSet const &pset)
 
void showMissingConsumes () const
 

Private Attributes

TTree * fShower
 
double m_showerRun
 
double m_showerSubRun
 
double m_showerEvent
 
double m_showerId
 
int m_showerTrueNuCCNC
 
int m_showerTrueNuMode
 
int m_showerTrueNuPdg
 
double m_showerTrueNuEnergy
 
int m_showerTrueNuIsFid
 
double m_showerTrueNuP4 [4]
 
double m_showerTrueNuVtx [3]
 
int m_showerEvtTruePdg [20]
 
double m_showerEvtTrueEnergy [20]
 
double m_showerTrueDang
 
double m_showerTruePdg
 
double m_showerTrueMother
 
double m_showerTrueVtx [3]
 
double m_showerTrueP4 [4]
 
double m_showerTruePartHit [10]
 
double m_showerTruePartEnergy [10]
 
double m_showerNPlane
 
double m_showerNTrk
 
double m_showerNXcell
 
double m_showerNYcell
 
double m_showerNMIPPlane
 
double m_showerContStartPlane
 
double m_showerDir [3]
 
double m_showerStart [3]
 
double m_showerStop [3]
 
double m_showerPlaneEnergy [200]
 
double m_showerPlaneDedx [200]
 
double m_showerPlaneDeltaDedx [200]
 
double m_showerTransCellDedx [20]
 
double m_showerTransCellProbE [20]
 
double m_showerTransCellProbPi0 [20]
 
double m_showerPlaneDedxprobE [200]
 
double m_showerPlaneDedxprobG [200]
 
double m_showerPlaneDedxprobMu [200]
 
double m_showerPlaneDedxprobPi0 [200]
 
double m_showerDedxChisq [10]
 
double m_showerRadiusChisq [10]
 
double m_showerDedxNdof [10]
 
double m_showerDedxProb [10]
 
double m_showerTransDedxProb [10]
 
double m_showerDedxLLL [10]
 
double m_showerDedxLLL1 [10]
 
double m_showerDedxLLL2 [10]
 
double m_showerDedxLLL3 [10]
 
double m_showerDedxLLL4 [10]
 
double m_showerDedxLLL5 [10]
 
double m_showerDedxLLL6 [10]
 
double m_showerDedxLLT [10]
 
double m_showerPlaneRadius [200]
 
double m_showerADC
 
double m_showerEnergy0
 
double m_showerEnergy
 
double m_showerNCell
 
double m_showerRadius
 
double m_showerGap
 
double m_showerIsFid
 
double m_showerRminmax
 

Detailed Description

Definition at line 34 of file RecoJMShowerAna_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

jmshower::RecoJMShowerAna::RecoJMShowerAna ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 123 of file RecoJMShowerAna_module.cc.

References reconfigure().

124  : EDAnalyzer(pset)
125  {
126  reconfigure(pset);
127  }
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
void reconfigure(const fhicl::ParameterSet &pset)
jmshower::RecoJMShowerAna::~RecoJMShowerAna ( )

Definition at line 138 of file RecoJMShowerAna_module.cc.

139  {
140  }

Member Function Documentation

void jmshower::RecoJMShowerAna::analyze ( const art::Event evt)

Definition at line 218 of file RecoJMShowerAna_module.cc.

References DEFINE_ART_MODULE(), art::EventID::event(), fShower, art::DataViewImpl::getByLabel(), MECModelEnuComparisons::i, art::Event::id(), makeTrainCVSamples::int, ana::IsFiducial(), jmshower::kLast, jmshower::kNull, m_showerADC, m_showerDedxLLL, m_showerDedxLLT, m_showerDedxNdof, m_showerDedxProb, m_showerDir, m_showerEnergy, m_showerEnergy0, m_showerEvent, m_showerId, m_showerIsFid, m_showerNCell, m_showerNMIPPlane, m_showerNPlane, m_showerNTrk, m_showerRadius, m_showerRun, m_showerStart, m_showerStop, m_showerSubRun, m_showerTransDedxProb, updateRunHistoryTables::run, art::Event::run(), slidt::showerEnergy, slidt::showerIsFid, and art::Event::subRun().

219  {
220  //----------------------------------------------------
221  // Run, subrun and event information
222  //----------------------------------------------------
223  int run = evt.run();
224  int srun = evt.subRun();
225  int event = evt.id().event();
227  evt.getByLabel("recojmshower", showerhandle);
228  std::vector<art::Ptr<jmshower::JMShower> > svcshowercol;
229  for(unsigned int i = 0; i < showerhandle->size(); i++){
230  art::Ptr<jmshower::JMShower> p(showerhandle, i);
231  svcshowercol.push_back(p);
232  }
233 
234 
235 
236  //**********************************************************
237  // Fill showers information
238  //**********************************************************
239 
240  for(unsigned int i = 0; i < svcshowercol.size(); i++){
241  // General information
242  double showerRadius = svcshowercol[i]->Radius();
243  double showerEnergy = svcshowercol[i]->Energy();
244  double showerEnergy0 = svcshowercol[i]->DepositEnergy();
245  int showerIsFid = int(svcshowercol[i]->IsFiducial());
246  if(showerEnergy>0.001)showerRadius = showerRadius/showerEnergy;
247  m_showerNCell = svcshowercol[i]->NCell();
248  m_showerNPlane = svcshowercol[i]->ExtentPlane();
249  m_showerADC = svcshowercol[i]->TotalADC ();
251  m_showerEnergy0 = showerEnergy0;
252  m_showerDir[0] = (svcshowercol[i]->Dir())[0];
253  m_showerDir[1] = (svcshowercol[i]->Dir())[1];
254  m_showerDir[2] = (svcshowercol[i]->Dir())[2];
255  m_showerStart[0] = (svcshowercol[i]->Start())[0];
256  m_showerStart[1] = (svcshowercol[i]->Start())[1];
257  m_showerStart[2] = (svcshowercol[i]->Start())[2];
258  m_showerStop[0] = (svcshowercol[i]->Stop())[0];
259  m_showerStop[1] = (svcshowercol[i]->Stop())[1];
260  m_showerStop[2] = (svcshowercol[i]->Stop())[2];
261 
262 
263  m_showerRadius = showerRadius;
265  m_showerNMIPPlane = svcshowercol[i]->NMIPPlane();
266  // Fill longitudinal and transverse information
267 
268  for( int itype = int(jmshower::kNull)+1; itype != int(jmshower::kLast); ++itype)
269  { //type: 0-electron, 1-photon, 2-muon, 3-pion-zero, 4-inc-had, 5-proton, 6-neutron, 7-charged-pion;
270  m_showerDedxNdof[itype]=svcshowercol[i]->ExtentPlane();
271  m_showerDedxProb[itype] = svcshowercol[i]->DedxLongLL(itype);
272  m_showerTransDedxProb[itype] = svcshowercol[i]->DedxTransLL(itype);
273  m_showerDedxLLL[itype] = svcshowercol[i]->DedxLongLL(itype);
274  m_showerDedxLLT[itype] = svcshowercol[i]->DedxTransLL(itype);
275  }
276 
277  m_showerRun= run;
278  m_showerSubRun= srun;
279  m_showerEvent= event;
280  m_showerId= i;
281  m_showerNTrk= svcshowercol.size();
282  fShower->Fill();
283  }
284  }
SubRunNumber_t subRun() const
Definition: Event.h:72
const char * p
Definition: xmltok.h:285
bool IsFiducial(const TVector3 &nuVtx, const TVector3 &min, const TVector3 &max)
Definition: Flux.cxx:46
double showerEnergy
Definition: run.py:1
EventNumber_t event() const
Definition: EventID.h:116
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
double showerIsFid
RunNumber_t run() const
Definition: Event.h:77
Definition: fwd.h:28
EventID id() const
Definition: Event.h:56
void jmshower::RecoJMShowerAna::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 144 of file RecoJMShowerAna_module.cc.

References om::cout, allTimeWatchdog::endl, fShower, m_showerADC, m_showerContStartPlane, m_showerDedxChisq, m_showerDedxLLL, m_showerDedxLLL1, m_showerDedxLLL2, m_showerDedxLLL3, m_showerDedxLLL4, m_showerDedxLLL5, m_showerDedxLLL6, m_showerDedxLLT, m_showerDedxNdof, m_showerDedxProb, m_showerDir, m_showerEnergy, m_showerEnergy0, m_showerEvent, m_showerEvtTrueEnergy, m_showerEvtTruePdg, m_showerGap, m_showerId, m_showerIsFid, m_showerNCell, m_showerNMIPPlane, m_showerNPlane, m_showerNTrk, m_showerNXcell, m_showerNYcell, m_showerPlaneDedx, m_showerPlaneDedxprobE, m_showerPlaneDedxprobG, m_showerPlaneDedxprobMu, m_showerPlaneDedxprobPi0, m_showerPlaneDeltaDedx, m_showerPlaneEnergy, m_showerPlaneRadius, m_showerRadius, m_showerRadiusChisq, m_showerRminmax, m_showerRun, m_showerStart, m_showerStop, m_showerSubRun, m_showerTransCellDedx, m_showerTransCellProbE, m_showerTransCellProbPi0, m_showerTransDedxProb, m_showerTrueDang, m_showerTrueMother, m_showerTrueNuCCNC, m_showerTrueNuEnergy, m_showerTrueNuIsFid, m_showerTrueNuMode, m_showerTrueNuP4, m_showerTrueNuPdg, m_showerTrueNuVtx, m_showerTrueP4, m_showerTruePartEnergy, m_showerTruePartHit, m_showerTruePdg, m_showerTrueVtx, and art::TFileDirectory::make().

145  {
146  std::cout<<"RecoJMShowerAna::beginJob()"<<std::endl;
148  fShower = tfs->make<TTree>("fShower","fShower");
149  fShower->Branch("showerRun",&m_showerRun);
150  fShower->Branch("showerSubRun",&m_showerSubRun);
151  fShower->Branch("showerEvent",&m_showerEvent);
152  fShower->Branch("showerTrueNuCCNC", &m_showerTrueNuCCNC);
153  fShower->Branch("showerTrueNuMode", &m_showerTrueNuMode);
154  fShower->Branch("showerTrueNuPdg", &m_showerTrueNuPdg);
155  fShower->Branch("showerTrueNuEnergy", &m_showerTrueNuEnergy);
156  fShower->Branch("showerTrueNuIsFid", &m_showerTrueNuIsFid);
157  fShower->Branch("showerTrueNuP4[4]", m_showerTrueNuP4);
158  fShower->Branch("showerTrueNuVtx[3]", m_showerTrueNuVtx);
159  fShower->Branch("showerEvtTrueEnergy[20]", m_showerEvtTrueEnergy);
160  fShower->Branch("showerEvtTruePdg[20]", m_showerEvtTruePdg);
161  fShower->Branch("showerId",&m_showerId);
162  fShower->Branch("showerNPlane", &m_showerNPlane);
163  fShower->Branch("showerNTrk", &m_showerNTrk);
164  fShower->Branch("showerNXcell", &m_showerNXcell);
165  fShower->Branch("showerNYcell", &m_showerNYcell);
166  fShower->Branch("showerDir[3]", m_showerDir);
167  fShower->Branch("showerStart[3]", m_showerStart);
168  fShower->Branch("showerStop[3]", m_showerStop);
169  fShower->Branch("showerADC", &m_showerADC);
170  fShower->Branch("showerEnergy0", &m_showerEnergy0);
171  fShower->Branch("showerEnergy", &m_showerEnergy);
172  fShower->Branch("showerNCell", &m_showerNCell);
173  fShower->Branch("showerRadius", &m_showerRadius);
174  fShower->Branch("showerGap", &m_showerGap);
175  fShower->Branch("showerIsFid", &m_showerIsFid);
176  fShower->Branch("showerNMIPPlane", &m_showerNMIPPlane);
177  fShower->Branch("showerContStartPlane", &m_showerContStartPlane);
178  fShower->Branch("showerRminmax", &m_showerRminmax);
179  fShower->Branch("showerPlaneEnergy[200]", m_showerPlaneEnergy);
180  fShower->Branch("showerPlaneDedx[200]", m_showerPlaneDedx);
181  fShower->Branch("showerDeltaPlaneDedx[200]", m_showerPlaneDeltaDedx);
182  fShower->Branch("showerDedxChisq[10]", m_showerDedxChisq);
183  fShower->Branch("showerRadiusChisq[10]", m_showerRadiusChisq);
184  fShower->Branch("showerDedxNdof[10]", m_showerDedxNdof);
185  fShower->Branch("showerDedxProb[10]", m_showerDedxProb);
186  fShower->Branch("showerTransDedxProb[10]", m_showerTransDedxProb);
187  fShower->Branch("showerDedxLLL[10]", m_showerDedxLLL);
188  fShower->Branch("showerDedxLLL1[10]", m_showerDedxLLL1);
189  fShower->Branch("showerDedxLLL2[10]", m_showerDedxLLL2);
190  fShower->Branch("showerDedxLLL3[10]", m_showerDedxLLL3);
191  fShower->Branch("showerDedxLLL4[10]", m_showerDedxLLL4);
192  fShower->Branch("showerDedxLLL5[10]", m_showerDedxLLL5);
193  fShower->Branch("showerDedxLLL6[10]", m_showerDedxLLL6);
194  fShower->Branch("showerDedxLLT[10]", m_showerDedxLLT);
195  fShower->Branch("showerPlaneRadius[200]", m_showerPlaneRadius);
196  fShower->Branch("showerPlaneDedxprobE[200]", m_showerPlaneDedxprobE);
197  fShower->Branch("showerPlaneDedxprobG[200]", m_showerPlaneDedxprobG);
198  fShower->Branch("showerPlaneDedxprobMu[200]", m_showerPlaneDedxprobMu);
199  fShower->Branch("showerPlaneDedxprobPi0[200]", m_showerPlaneDedxprobPi0);
200  fShower->Branch("showerTransCellDedx[20]", m_showerTransCellDedx);
201  fShower->Branch("showerTransCellProbE[20]", m_showerTransCellProbE);
202  fShower->Branch("showerTransCellProbPi0[20]", m_showerTransCellProbPi0);
203  fShower->Branch("showerTrueDang", &m_showerTrueDang);
204  fShower->Branch("showerTruePdg", &m_showerTruePdg);
205  fShower->Branch("showerTrueMother", &m_showerTrueMother);
206  fShower->Branch("showerTrueVtx[3]", m_showerTrueVtx);
207  fShower->Branch("showerTrueP4[4]", m_showerTrueP4);
208  fShower->Branch("showerTruePartHit[10]", m_showerTruePartHit);
209  fShower->Branch("showerTruePartEnergy[10]", m_showerTruePartEnergy);
210  }
OStream cout
Definition: OStream.cxx:6
T * make(ARGS...args) const
void jmshower::RecoJMShowerAna::beginSubRun ( const art::SubRun sr)

Definition at line 212 of file RecoJMShowerAna_module.cc.

References om::cout, allTimeWatchdog::endl, fPotLabel, art::DataViewImpl::getByLabel(), and sumdata::POTSum::totgoodpot.

212  {
214  sr.getByLabel(fPotLabel,p);
215  std::cout<<"pot = "<<p->totgoodpot<<std::endl;
216  }
const char * p
Definition: xmltok.h:285
OStream cout
Definition: OStream.cxx:6
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
std::string fPotLabel
Module that produced the POTSum object.
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

80  {
81  return selectors_;
82  }
detail::CachedProducts selectors_
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

147 {
148  if (!moduleContext_)
149  return ProductToken<T>::invalid();
150 
151  consumables_[BT].emplace_back(ConsumableType::Product,
152  TypeID{typeid(T)},
153  it.label(),
154  it.instance(),
155  it.process());
156  return ProductToken<T>{it};
157 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDAnalyzer::currentContext ( ) const
protectedinherited
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:35
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

190 {
191  if (!moduleContext_)
192  return ProductToken<T>::invalid();
193 
194  consumables_[BT].emplace_back(ConsumableType::Product,
195  TypeID{typeid(T)},
196  it.label(),
197  it.instance(),
198  it.process());
199  return ProductToken<T>{it};
200 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

215 {
216  if (!moduleContext_)
217  return ViewToken<T>::invalid();
218 
219  consumables_[BT].emplace_back(ConsumableType::ViewElement,
220  TypeID{typeid(T)},
221  it.label(),
222  it.instance(),
223  it.process());
224  return ViewToken<T>{it};
225 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
bool art::EventObserverBase::modifiesEvent ( ) const
inlineinherited

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void jmshower::RecoJMShowerAna::reconfigure ( const fhicl::ParameterSet pset)

Definition at line 131 of file RecoJMShowerAna_module.cc.

References fPotLabel, fhicl::ParameterSet::get(), and string.

Referenced by RecoJMShowerAna().

132  {
133  fPotLabel =pset.get< std::string>("PotLabel");
134  }
T get(std::string const &key) const
Definition: ParameterSet.h:231
std::string fPotLabel
Module that produced the POTSum object.
enum BeamMode string
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

References string.

36  {}
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

57  {
58  return selector_config_id_;
59  }
fhicl::ParameterSetID selector_config_id_
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Referenced by art::RootOutput::endJob().

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited

Definition at line 46 of file EventObserverBase.h.

References art::EventObserverBase::wantAllEvents_.

Referenced by art::RootOutput::RootOutput().

47  {
48  return wantAllEvents_;
49  }
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited

Definition at line 51 of file EventObserverBase.h.

References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().

52  {
53  return selectors_.wantEvent(e);
54  }
detail::CachedProducts selectors_
Float_t e
Definition: plot.C:35
bool wantEvent(Event const &)
std::string art::EDAnalyzer::workerType ( ) const
inlineinherited

Definition at line 109 of file EDAnalyzer.h.

References art::EDAnalyzer::currentContext().

110  {
111  return "WorkerT<EDAnalyzer>";
112  }

Member Data Documentation

std::string jmshower::RecoJMShowerAna::fPotLabel

Module that produced the POTSum object.

Definition at line 44 of file RecoJMShowerAna_module.cc.

Referenced by beginSubRun(), and reconfigure().

TTree* jmshower::RecoJMShowerAna::fShower
private

Definition at line 48 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerADC
private

Definition at line 107 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerContStartPlane
private

Definition at line 78 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxChisq[10]
private

Definition at line 93 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL[10]
private

Definition at line 98 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL1[10]
private

Definition at line 99 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL2[10]
private

Definition at line 100 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL3[10]
private

Definition at line 101 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL4[10]
private

Definition at line 102 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL5[10]
private

Definition at line 103 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLL6[10]
private

Definition at line 104 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxLLT[10]
private

Definition at line 105 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxNdof[10]
private

Definition at line 95 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerDedxProb[10]
private

Definition at line 96 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerDir[3]
private

Definition at line 79 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerEnergy
private

Definition at line 109 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerEnergy0
private

Definition at line 108 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerEvent
private

Definition at line 51 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerEvtTrueEnergy[20]
private

Definition at line 63 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

int jmshower::RecoJMShowerAna::m_showerEvtTruePdg[20]
private

Definition at line 62 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerGap
private

Definition at line 113 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerId
private

Definition at line 52 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerIsFid
private

Definition at line 114 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerNCell
private

Definition at line 111 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerNMIPPlane
private

Definition at line 77 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerNPlane
private

Definition at line 73 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerNTrk
private

Definition at line 74 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerNXcell
private

Definition at line 75 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerNYcell
private

Definition at line 76 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDedx[200]
private

Definition at line 83 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDedxprobE[200]
private

Definition at line 89 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDedxprobG[200]
private

Definition at line 90 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDedxprobMu[200]
private

Definition at line 91 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDedxprobPi0[200]
private

Definition at line 92 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneDeltaDedx[200]
private

Definition at line 84 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneEnergy[200]
private

Definition at line 82 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerPlaneRadius[200]
private

Definition at line 106 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerRadius
private

Definition at line 112 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerRadiusChisq[10]
private

Definition at line 94 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerRminmax
private

Definition at line 115 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerRun
private

Definition at line 49 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerStart[3]
private

Definition at line 80 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerStop[3]
private

Definition at line 81 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerSubRun
private

Definition at line 50 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerTransCellDedx[20]
private

Definition at line 85 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTransCellProbE[20]
private

Definition at line 86 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTransCellProbPi0[20]
private

Definition at line 87 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTransDedxProb[10]
private

Definition at line 97 of file RecoJMShowerAna_module.cc.

Referenced by analyze(), and beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueDang
private

Definition at line 65 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueMother
private

Definition at line 67 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

int jmshower::RecoJMShowerAna::m_showerTrueNuCCNC
private

Definition at line 55 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueNuEnergy
private

Definition at line 58 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

int jmshower::RecoJMShowerAna::m_showerTrueNuIsFid
private

Definition at line 59 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

int jmshower::RecoJMShowerAna::m_showerTrueNuMode
private

Definition at line 56 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueNuP4[4]
private

Definition at line 60 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

int jmshower::RecoJMShowerAna::m_showerTrueNuPdg
private

Definition at line 57 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueNuVtx[3]
private

Definition at line 61 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueP4[4]
private

Definition at line 69 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTruePartEnergy[10]
private

Definition at line 71 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTruePartHit[10]
private

Definition at line 70 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTruePdg
private

Definition at line 66 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().

double jmshower::RecoJMShowerAna::m_showerTrueVtx[3]
private

Definition at line 68 of file RecoJMShowerAna_module.cc.

Referenced by beginJob().


The documentation for this class was generated from the following file: