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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 BreakPointAna (fhicl::ParameterSet const &p)
 
 ~BreakPointAna ()
 
void analyze (art::Event const &e) override
 
void beginJob ()
 
void endJob ()
 
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 ()
 

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

std::string fSlicerLabel
 slicer label More...
 
std::string fVertexLabel
 vertex label More...
 
std::string fProngLabel
 prong label More...
 
std::string fProngInstance
 prong instance label More...
 
std::string fTrackLabel
 tracker label More...
 
std::string fFitSumLabel
 fitsum maker label More...
 
std::string fBPFPIdLabel
 BPF PID object label. More...
 
int fTrackPDG
 which BPF tracking assumption to make plots for More...
 
std::string fCAFLabel
 standard record maer label More...
 
bool fApplyCAFCuts
 apply the cuts? More...
 
int fCutType
 which cuts to apply More...
 
recovalid::CAFCutter fCAFCutter
 the cafcutter class... More...
 
TH1F * fNTracks
 number of tracks per slice More...
 
TH1F * fNTracksPerProng
 number of tracks per prong More...
 
TH1F * fNPDGs
 number of times a track was made for each tracking assumption More...
 
TH1F * fLength
 track length More...
 
TH1F * fNHits
 number of hits per track More...
 
TH1F * fTheta
 track theta angle More...
 
TH1F * fPhi
 track phi angle More...
 
TH1F * fStartX
 track start X More...
 
TH1F * fStartY
 track start Y More...
 
TH1F * fStartZ
 track start Z More...
 
TH1F * fStopX
 track stop X More...
 
TH1F * fStopY
 track stop Y More...
 
TH1F * fStopZ
 track stop Z More...
 
TH1F * fPID
 track PID value More...
 
TH1F * fChi2T
 track total chi^2 (input to the PID) More...
 
TH1F * fdEdxLL
 track dE/dx log liklihood (input to the PID) More...
 
TH1F * fHitRatio
 track/prong hit ratio (input to the PID) More...
 
TH1F * fBestMu_PID
 PID value for highest scoring muon track. More...
 
TH1F * fBestMu_Length
 length for highest scoring muon track More...
 
TH1F * fBestMu_Chi2T
 total chi^2 for highest scoring muon track More...
 
TH1F * fBestMu_dEdxLL
 dE/dx log likelihood for highest scoring muon track More...
 
TH1F * fBestMu_HitRatio
 track/prong hit ratio for highest scoring muon track More...
 

Detailed Description

Definition at line 56 of file BreakPointAna_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

bpfit::BreakPointAna::BreakPointAna ( fhicl::ParameterSet const &  p)
explicit

Definition at line 122 of file BreakPointAna_module.cc.

123  :
124  EDAnalyzer(p),
125  fSlicerLabel (p.get< std::string >("SlicerLabel" )),
126  fVertexLabel (p.get< std::string >("VertexLabel" )),
127  fProngLabel (p.get< std::string >("ProngLabel" )),
128  fProngInstance (p.get< std::string >("ProngInstance" )),
129  fTrackLabel (p.get< std::string >("TrackLabel" )),
130  fFitSumLabel (p.get< std::string >("FitSumLabel" )),
131  fBPFPIdLabel (p.get< std::string >("BPFPIdLabel" )),
132  fTrackPDG (p.get< int >("TrackPDG" )),
133  fCAFLabel (p.get< std::string >("CAFLabel" )),
134  fApplyCAFCuts (p.get< bool >("ApplyCAFCuts" )),
135  fCutType (p.get< int >("CutType" ))
136 {}
std::string fProngLabel
prong label
const char * p
Definition: xmltok.h:285
bool fApplyCAFCuts
apply the cuts?
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
std::string fSlicerLabel
slicer label
std::string fCAFLabel
standard record maer label
int fTrackPDG
which BPF tracking assumption to make plots for
std::string fFitSumLabel
fitsum maker label
std::string fProngInstance
prong instance label
int fCutType
which cuts to apply
std::string fBPFPIdLabel
BPF PID object label.
std::string fTrackLabel
tracker label
std::string fVertexLabel
vertex label
enum BeamMode string
bpfit::BreakPointAna::~BreakPointAna ( )

Definition at line 139 of file BreakPointAna_module.cc.

140 {
141  //======================================================================
142  // Strike me down and I shall become more powerful than you could
143  // possibly imagine...
144  //======================================================================
145 }

Member Function Documentation

void bpfit::BreakPointAna::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 249 of file BreakPointAna_module.cc.

References std::acos(), std::atan2(), DEFINE_ART_MODULE(), fApplyCAFCuts, fBestMu_Chi2T, fBestMu_dEdxLL, fBestMu_HitRatio, fBestMu_Length, fBestMu_PID, fBPFPIdLabel, fCAFCutter, fCAFLabel, fChi2T, fCutType, fdEdxLL, fHitRatio, fLength, check_time_usage::float, fNHits, fNPDGs, fNTracks, fNTracksPerProng, fPhi, fPID, fProngInstance, fProngLabel, fSlicerLabel, fStartX, fStartY, fStartZ, fStopX, fStopY, fStopZ, fTheta, fTrackLabel, fTrackPDG, art::DataViewImpl::getByLabel(), MECModelEnuComparisons::i, recovalid::CAFCutter::passCuts(), art::PtrVector< T >::push_back(), chisquared::theta, X, Y, and Z.

250 {
251 
252  // Get the slices and put them into a more convenient container.
254  evt.getByLabel(fSlicerLabel, slhandle);
256  for(unsigned int i=0; i < slhandle->size(); ++i) {
257  slices.push_back(art::Ptr<rb::Cluster>(slhandle,i));
258  }
259 
260  // Get the Standard Records
262 
263  // Create the FindMany object for getting prongs.
265 
266 
267 
268  //
269  // Loop over all slices and get the fuzzyk 3D prongs:
270  //
271  for(unsigned int islice = 0; islice < slhandle->size(); ++islice) {
272 
273  unsigned int NTracks = 0;
274  float BestMu_PID = -10.0;
275  float BestMu_Length = -10.0;
276  float BestMu_Chi2T = -10.0;
277  float BestMu_dEdxLL = -10.0;
278  float BestMu_HitRatio = -10.0;
279 
280  // As usual, skip the noise slice...
281  if((*slhandle)[islice].IsNoise()) continue;
282 
283  // Apply the CAF-level cuts
284  bool pass = true;
285  if( fApplyCAFCuts ) {
286  // get record associated with the slice
287  std::vector< art::Ptr<caf::StandardRecord> > records = recordFMP.at(islice);
288  if( records.size() > 0 && recordFMP.isValid()) {
289  pass = fCAFCutter.passCuts(fCutType, records[0].get());
290  }
291  else { pass = false; }
292  }
293 
294  if(!pass) continue;
295 
296 
297 
298  // NOTE: Currently, the fundamental object of analysis is the slice.
299  // If in the future we change things so that the fundamental object
300  // of analysis becomes the vertex, or if we start putting in more
301  // than one vertex per slice, then we will have to get prongs
302  // associated with the vertex instead.
303 
304  // get the 3D prongs associated with this slice
305  std::vector< art::Ptr< rb::Prong > > prongs;
306  if(prongFMP.isValid()) prongs = prongFMP.at(islice);
307 
308  // create the FindMany object for getting tracks
309  art::FindManyP<rb::Track> trackFMP(prongs, evt, fTrackLabel);
310 
311 
312 
313  //
314  // Loop over all prongs and get the tracks:
315  //
316  for(unsigned int iprong = 0; iprong < prongs.size(); ++iprong) {
317 
318  // get the tracks associated with this prong
319  std::vector< art::Ptr< rb::Track > > tracks;
320  if(trackFMP.isValid()) tracks = trackFMP.at(iprong);
321 
322  // create the FindMany object for getting FitSum objects
323  art::FindManyP<rb::FitSum> fitsumFMP(tracks, evt, fTrackLabel);
324 
325  // create the FindMany object for getting the bpf PID objects
326  art::FindManyP<bpfit::BPFPId> bpfpidFMP(tracks, evt, fBPFPIdLabel);
327 
328 
329 
330  //
331  // Loop over all tracks...
332  //
333  for(unsigned int itrack = 0; itrack < tracks.size(); ++itrack) {
334 
335  NTracks++;
336 
337  // get the FitSum object associated with this track
338  std::vector< art::Ptr< rb::FitSum > > fitsums;
339  if(fitsumFMP.isValid()) fitsums = fitsumFMP.at(itrack);
340 
341  // get the BPFPId object associated with this track
342  std::vector< art::Ptr< bpfit::BPFPId > > bpfpids;
343  if(bpfpidFMP.isValid()) bpfpids = bpfpidFMP.at(itrack);
344 
345  if(fitsums.size() == 0) continue; // this should never happen, but just in case...
346 
347 
348 
349  //
350  // Fill histos...
351  //
352 
353  if(fitsums[0]->PDG() == 13) fNPDGs->Fill(0);
354  if(fitsums[0]->PDG() == 211) fNPDGs->Fill(1);
355  if(fitsums[0]->PDG() == 2212) fNPDGs->Fill(2);
356 
357  // only fill track plots for the requested tracking particle assumption
358  if(fitsums[0]->PDG() == fTrackPDG) {
359 
360  fLength->Fill(tracks[itrack]->TotalLength());
361  fNHits ->Fill(tracks[itrack]->NCell());
362 
363  float dirX = tracks[itrack]->Dir().X();
364  float dirY = tracks[itrack]->Dir().Y();
365  float dirZ = tracks[itrack]->Dir().Z();
366 
367  float theta = acos(dirZ)*180.0/3.14159;
368  fTheta->Fill(theta);
369 
370  float phi = (atan2(dirY,dirX))*180.0/3.14159;
371  if(phi < 0.0) phi += 360.0;
372  fPhi->Fill(phi);
373 
374  fStartX->Fill(tracks[itrack]->Start().X());
375  fStartY->Fill(tracks[itrack]->Start().Y());
376  fStartZ->Fill(tracks[itrack]->Start().Z());
377 
378  fStopX->Fill(tracks[itrack]->Stop().X());
379  fStopY->Fill(tracks[itrack]->Stop().Y());
380  fStopZ->Fill(tracks[itrack]->Stop().Z());
381 
382  // NOTE: Currently, we only make the muon PID for the muon assumption track.
383  if(bpfpids.size() > 0) {
384  float value = (float)bpfpids[0]->Value();
385  float Chi2T = bpfpids[0]->GetChi2T();
386  float dEdxLL = bpfpids[0]->GetdEdXLL();
387  float HitRatio = bpfpids[0]->GetHitRatio();
388 
389  fPID->Fill(value);
390  fChi2T->Fill(Chi2T);
391  fdEdxLL->Fill(dEdxLL);
392  fHitRatio->Fill(HitRatio);
393 
394  if(value > BestMu_PID && fitsums[0]->PDG() == 13) {
395  BestMu_PID = value;
396  BestMu_Length = tracks[itrack]->TotalLength();
397  BestMu_Chi2T = Chi2T;
398  BestMu_dEdxLL = dEdxLL;
399  BestMu_HitRatio = HitRatio;
400  }
401  }
402 
403  }
404 
405  } // end loop over tracks
406 
407 
408 
409  //
410  // Fill prong-level plots
411  //
412  fNTracksPerProng->Fill(tracks.size());
413 
414  } // end loop over prongs
415 
416 
417 
418  //
419  // Fill slice-level plots
420  //
421  fNTracks->Fill(NTracks);
422 
423  if(BestMu_PID > -10.0) {
424  fBestMu_PID ->Fill(BestMu_PID);
425  fBestMu_Length ->Fill(BestMu_Length);
426  fBestMu_Chi2T ->Fill(BestMu_Chi2T);
427  fBestMu_dEdxLL ->Fill(BestMu_dEdxLL);
428  fBestMu_HitRatio->Fill(BestMu_HitRatio);
429  }
430 
431  } // end loop over slices
432 
433  return;
434 
435 } // end analyze module
TH1F * fStopZ
track stop Z
TH1F * fBestMu_Length
length for highest scoring muon track
std::string fProngLabel
prong label
TH1F * fPID
track PID value
TH1F * fStopX
track stop X
TH1F * fBestMu_Chi2T
total chi^2 for highest scoring muon track
TH1F * fChi2T
track total chi^2 (input to the PID)
recovalid::CAFCutter fCAFCutter
the cafcutter class...
TH1F * fStartZ
track start Z
TH1F * fNPDGs
number of times a track was made for each tracking assumption
TH1F * fTheta
track theta angle
T acos(T number)
Definition: d0nt_math.hpp:54
TH1F * fNHits
number of hits per track
TH1F * fBestMu_HitRatio
track/prong hit ratio for highest scoring muon track
TH1F * fPhi
track phi angle
Float_t Y
Definition: plot.C:38
TH1F * fStartX
track start X
Float_t Z
Definition: plot.C:38
bool fApplyCAFCuts
apply the cuts?
bool passCuts(int cut, const caf::StandardRecord *sr)
Definition: CAFCutter.cxx:37
TH1F * fBestMu_PID
PID value for highest scoring muon track.
const XML_Char int const XML_Char * value
Definition: expat.h:331
void push_back(Ptr< U > const &p)
Definition: PtrVector.h:441
int evt
TH1F * fNTracks
number of tracks per slice
std::string fSlicerLabel
slicer label
std::string fCAFLabel
standard record maer label
int fTrackPDG
which BPF tracking assumption to make plots for
TH1F * fBestMu_dEdxLL
dE/dx log likelihood for highest scoring muon track
TH1F * fNTracksPerProng
number of tracks per prong
TH1F * fLength
track length
TH1F * fdEdxLL
track dE/dx log liklihood (input to the PID)
std::string fProngInstance
prong instance label
int fCutType
which cuts to apply
std::string fBPFPIdLabel
BPF PID object label.
std::string fTrackLabel
tracker label
TH1F * fStartY
track start Y
TH1F * fStopY
track stop Y
Float_t X
Definition: plot.C:38
T atan2(T number)
Definition: d0nt_math.hpp:72
TH1F * fHitRatio
track/prong hit ratio (input to the PID)
void bpfit::BreakPointAna::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 148 of file BreakPointAna_module.cc.

References fBestMu_Chi2T, fBestMu_dEdxLL, fBestMu_HitRatio, fBestMu_Length, fBestMu_PID, fChi2T, fdEdxLL, fHitRatio, fLength, fNHits, fNPDGs, fNTracks, fNTracksPerProng, fPhi, fPID, fStartX, fStartY, fStartZ, fStopX, fStopY, fStopZ, fTheta, and art::TFileDirectory::make().

149 {
151 
152  // book histos:
153  fNTracks = tfs->make<TH1F>("NTracks",
154  "Number of tracks per slice;N Tracks;count",
155  31, -0.5, 30.5);
156 
157  fNTracksPerProng = tfs->make<TH1F>("NTracksPerProng",
158  "Number of tracks per prong;N Tracks;count",
159  6, -0.5, 5.5);
160 
161  fNPDGs = tfs->make<TH1F>("NPDGs",
162  "Number of times a track was made for each particle assumption;0 = mu / 1 = pi / 2 = p;count",
163  3, -0.5, 2.5);
164 
165  fLength = tfs->make<TH1F>("Length",
166  "Track length;length [cm];",
167  1200, 0.0, 6000.0);
168 
169  fNHits = tfs->make<TH1F>("NHits",
170  "Number of hits per track;NHits;",
171  1001, -0.5, 1000.5);
172 
173  fTheta = tfs->make<TH1F>("Theta",
174  "Track #theta;#theta [deg.];",
175  180, 0.0, 180.0);
176 
177  fPhi = tfs->make<TH1F>("Phi",
178  "Track #phi;#phi [deg.];",
179  360, 0.0, 360.0);
180 
181  fStartX = tfs->make<TH1F>("StartX",
182  "Track start X;Start X [cm];",
183  800, -800.0, 800.0);
184 
185  fStartY = tfs->make<TH1F>("StartY",
186  "Track start Y;Start Y [cm];",
187  800, -800.0, 800.0);
188 
189  fStartZ = tfs->make<TH1F>("StartZ",
190  "Track start Z;Start Z [cm];",
191  3200, -200.0, 6200.0);
192 
193  fStopX = tfs->make<TH1F>("StopX",
194  "Track stop X;Stop X [cm];",
195  800, -800.0, 800.0);
196 
197  fStopY = tfs->make<TH1F>("StopY",
198  "Track stop Y;Stop Y [cm];",
199  800, -800.0, 800.0);
200 
201  fStopZ = tfs->make<TH1F>("StopZ",
202  "Track stop Z;Stop Z [cm];",
203  3200, -200.0, 6200.0);
204 
205  fPID = tfs->make<TH1F>("PID",
206  "Muon PID value;PID;",
207  220, -1.1, 1.1);
208 
209  fChi2T = tfs->make<TH1F>("Chi2T",
210  "Track Fit total Chi-squared per D.O.F.;#chi^{2}/Ndof;",
211  150, 0.0, 15.0);
212 
213  fdEdxLL = tfs->make<TH1F>("dEdxLL",
214  "dE/dx Log-Likelihood;LL;",
215  700, -9.0, -2.0);
216 
217  fHitRatio = tfs->make<TH1F>("HitRatio",
218  "Track/Prong hit ratio;hit ratio;",
219  100, 0.0, 1.0);
220 
221 
222 
223  fBestMu_PID = tfs->make<TH1F>("BestMu_PID",
224  "Muon PID value - Best Muon;PID;",
225  220, -1.1, 1.1);
226 
227  fBestMu_Length = tfs->make<TH1F>("BestMu_Length",
228  "Track length - Best Muon;length [cm];",
229  1200, 0.0, 6000.0);
230 
231  fBestMu_Chi2T = tfs->make<TH1F>("BestMu_Chi2T",
232  "Track Fit total Chi-squared per D.O.F. - Best Muon;#chi^{2}/Ndof;",
233  150, 0.0, 15.0);
234 
235  fBestMu_dEdxLL = tfs->make<TH1F>("BestMu_dEdxLL",
236  "dE/dx Log-Likelihood - Best Muon;LL;",
237  700, -9.0, -2.0);
238 
239  fBestMu_HitRatio = tfs->make<TH1F>("BestMu_HitRatio",
240  "Track/Prong hit ratio - Best Muon;hit ratio;",
241  100, 0.0, 1.0);
242 
243 }
TH1F * fStopZ
track stop Z
TH1F * fBestMu_Length
length for highest scoring muon track
TH1F * fPID
track PID value
TH1F * fStopX
track stop X
TH1F * fBestMu_Chi2T
total chi^2 for highest scoring muon track
TH1F * fChi2T
track total chi^2 (input to the PID)
TH1F * fStartZ
track start Z
TH1F * fNPDGs
number of times a track was made for each tracking assumption
TH1F * fTheta
track theta angle
TH1F * fNHits
number of hits per track
TH1F * fBestMu_HitRatio
track/prong hit ratio for highest scoring muon track
TH1F * fPhi
track phi angle
TH1F * fStartX
track start X
TH1F * fBestMu_PID
PID value for highest scoring muon track.
TH1F * fNTracks
number of tracks per slice
TH1F * fBestMu_dEdxLL
dE/dx log likelihood for highest scoring muon track
TH1F * fNTracksPerProng
number of tracks per prong
TH1F * fLength
track length
TH1F * fdEdxLL
track dE/dx log liklihood (input to the PID)
T * make(ARGS...args) const
TH1F * fStartY
track start Y
TH1F * fStopY
track stop Y
TH1F * fHitRatio
track/prong hit ratio (input to the PID)
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
void bpfit::BreakPointAna::endJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 245 of file BreakPointAna_module.cc.

246 {
247 }
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 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

bool bpfit::BreakPointAna::fApplyCAFCuts
private

apply the cuts?

Definition at line 79 of file BreakPointAna_module.cc.

Referenced by analyze().

TH1F* bpfit::BreakPointAna::fBestMu_Chi2T
private

total chi^2 for highest scoring muon track

Definition at line 115 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fBestMu_dEdxLL
private

dE/dx log likelihood for highest scoring muon track

Definition at line 116 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fBestMu_HitRatio
private

track/prong hit ratio for highest scoring muon track

Definition at line 117 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fBestMu_Length
private

length for highest scoring muon track

Definition at line 114 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fBestMu_PID
private

PID value for highest scoring muon track.

Definition at line 113 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

std::string bpfit::BreakPointAna::fBPFPIdLabel
private

BPF PID object label.

Definition at line 75 of file BreakPointAna_module.cc.

Referenced by analyze().

recovalid::CAFCutter bpfit::BreakPointAna::fCAFCutter
private

the cafcutter class...

Definition at line 82 of file BreakPointAna_module.cc.

Referenced by analyze().

std::string bpfit::BreakPointAna::fCAFLabel
private

standard record maer label

Definition at line 78 of file BreakPointAna_module.cc.

Referenced by analyze().

TH1F* bpfit::BreakPointAna::fChi2T
private

track total chi^2 (input to the PID)

Definition at line 108 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

int bpfit::BreakPointAna::fCutType
private

which cuts to apply

Definition at line 80 of file BreakPointAna_module.cc.

Referenced by analyze().

TH1F* bpfit::BreakPointAna::fdEdxLL
private

track dE/dx log liklihood (input to the PID)

Definition at line 109 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

std::string bpfit::BreakPointAna::fFitSumLabel
private

fitsum maker label

Definition at line 74 of file BreakPointAna_module.cc.

TH1F* bpfit::BreakPointAna::fHitRatio
private

track/prong hit ratio (input to the PID)

Definition at line 110 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fLength
private

track length

Definition at line 96 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fNHits
private

number of hits per track

Definition at line 97 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fNPDGs
private

number of times a track was made for each tracking assumption

Definition at line 93 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fNTracks
private

number of tracks per slice

Definition at line 91 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fNTracksPerProng
private

number of tracks per prong

Definition at line 92 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fPhi
private

track phi angle

Definition at line 99 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fPID
private

track PID value

Definition at line 107 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

std::string bpfit::BreakPointAna::fProngInstance
private

prong instance label

Definition at line 72 of file BreakPointAna_module.cc.

Referenced by analyze().

std::string bpfit::BreakPointAna::fProngLabel
private

prong label

Definition at line 71 of file BreakPointAna_module.cc.

Referenced by analyze().

std::string bpfit::BreakPointAna::fSlicerLabel
private

slicer label

Definition at line 69 of file BreakPointAna_module.cc.

Referenced by analyze().

TH1F* bpfit::BreakPointAna::fStartX
private

track start X

Definition at line 100 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fStartY
private

track start Y

Definition at line 101 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fStartZ
private

track start Z

Definition at line 102 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fStopX
private

track stop X

Definition at line 103 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fStopY
private

track stop Y

Definition at line 104 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fStopZ
private

track stop Z

Definition at line 105 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

TH1F* bpfit::BreakPointAna::fTheta
private

track theta angle

Definition at line 98 of file BreakPointAna_module.cc.

Referenced by analyze(), and beginJob().

std::string bpfit::BreakPointAna::fTrackLabel
private

tracker label

Definition at line 73 of file BreakPointAna_module.cc.

Referenced by analyze().

int bpfit::BreakPointAna::fTrackPDG
private

which BPF tracking assumption to make plots for

Definition at line 76 of file BreakPointAna_module.cc.

Referenced by analyze().

std::string bpfit::BreakPointAna::fVertexLabel
private

vertex label

Definition at line 70 of file BreakPointAna_module.cc.


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