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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 SuperDDTEva (fhicl::ParameterSet const &pset)
 
virtual ~SuperDDTEva ()
 
void analyze (const art::Event &evt)
 
void beginJob ()
 
void reconfigure (fhicl::ParameterSet const &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 ()
 

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 * MCTruth_Tree
 
TTree * HitList_Tree
 
TTree * Track_Tree
 
TTree * TrueHits_Tree
 
TH1I * n_RNSlice
 
TH1I * n_SpaceSlice
 
int pdg
 
int nFLShits
 
double Px_truth
 
double Py_truth
 
double Pz_truth
 
double energydump_truth
 
double pathlength_truth
 
double x0_truth
 
double y0_truth
 
double z0_truth
 
double t0_truth
 
double x1_truth
 
double y1_truth
 
double z1_truth
 
double t1_truth
 
int view
 
double v0_ddt
 
double z0_ddt
 
double t0_ddt
 
double v1_ddt
 
double z1_ddt
 
double t1_ddt
 
int Plane
 
int Cell
 
int ADC
 
uint32_t TDC
 
int trackID
 
int TsliceID
 
int RNsliceID
 
int SsliceID
 
int eventID
 
bool isNoise
 
bool isMM
 
std::string TimeSlice_ModuleLabel
 
std::string TimeSlice_InstanceLabel
 
std::string RNSlice_ModuleLabel
 
std::string RNSlice_InstanceLabel
 
std::string SpaceSlice_ModuleLabel
 
std::string SpaceSlice_InstanceLabel
 
std::string OnlineTracker_ModuleLabel
 
std::string OnlineTracker_InstanceLabel
 
std::string fFLSHitListLabel
 
int Plane_true
 
int Cell_true
 
double Time_true
 
double Energy_true
 
bool Found_true
 

Detailed Description

Definition at line 75 of file SuperDDTEva_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

ddt::SuperDDTEva::SuperDDTEva ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 151 of file SuperDDTEva_module.cc.

References reconfigure().

152  : EDAnalyzer(pset)
153 {
154  reconfigure(pset);
155 }
void reconfigure(fhicl::ParameterSet const &pset)
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
ddt::SuperDDTEva::~SuperDDTEva ( )
virtual

Definition at line 174 of file SuperDDTEva_module.cc.

174 {}

Member Function Documentation

void ddt::SuperDDTEva::analyze ( const art::Event evt)

Definition at line 241 of file SuperDDTEva_module.cc.

References ADC, sim::ParticleNavigator::begin(), Cell, Cell_true, DEFINE_ART_MODULE(), sim::ParticleNavigator::end(), Energy_true, energydump_truth, art::EventID::event(), eventID, Fill(), Found_true, novaddt::GroupedHitList< VAL >::get(), art::DataViewImpl::getByLabel(), make_syst_table_plots::h, HitList_Tree, hits(), MECModelEnuComparisons::i, art::Event::id(), isMM, isNoise, std::max(), MCTruth_Tree, std::min(), novaddt::GroupedHitList< VAL >::n_groups(), n_RNSlice, n_SpaceSlice, nFLShits, cheat::BackTracker::ParticleNavigator(), cheat::BackTracker::ParticleToFLSHit(), pathlength_truth, pdg, simb::MCParticle::PdgCode(), Plane, Plane_true, simb::MCParticle::Px(), Px_truth, simb::MCParticle::Py(), Py_truth, simb::MCParticle::Pz(), Pz_truth, RNSlice_InstanceLabel, RNSlice_ModuleLabel, RNsliceID, gen_flatrecord::size, SpaceSlice_InstanceLabel, SpaceSlice_ModuleLabel, SsliceID, t0_truth, t1_truth, TDC, Time_true, TimeSlice_InstanceLabel, TimeSlice_ModuleLabel, simb::MCParticle::TrackId(), trackID, TrueHits_Tree, TsliceID, x0_truth, x1_truth, y0_truth, y1_truth, z0_truth, and z1_truth.

242 {
243  eventID = evt.id().event();
244  std::vector<Chit> chits;
245  std::vector<trueHit> thits;
246 
247 
248  //Get Truth Info
249  //Make a backtracker
251  const sim::ParticleNavigator& pnav = bt->ParticleNavigator();
252 
253  for (sim::ParticleNavigator::const_iterator i = pnav.begin(); i != pnav.end(); ++i){
254  const sim::Particle *p = (*i).second;
255  pdg = p->PdgCode();
256  Px_truth = p->Px();
257  Py_truth = p->Py();
258  Pz_truth = p->Pz();
259 
260  if (bt->ParticleToFLSHit(p->TrackId()).size()==0) continue;
261 
262  //Later info needs to be obtained from the FLSHit:
263  const std::vector<sim::FLSHit>& flshits = bt->ParticleToFLSHit(p->TrackId());
264 
265  pathlength_truth = flshits[0].GetTotalPathLength();
266  //pathlength_truth = 0;
267  energydump_truth = flshits[0].GetTotalEnergyLoss();
268  x0_truth = flshits[0].GetEntryX();
269  y0_truth = flshits[0].GetEntryY();
270  z0_truth = flshits[0].GetEntryZ();
271  t0_truth = flshits[0].GetEntryT();
272  x1_truth = flshits[0].GetExitX();
273  y1_truth = flshits[0].GetExitY();
274  z1_truth = flshits[0].GetExitZ();
275  t1_truth = flshits[0].GetExitT();
276 
277  thits.emplace_back(flshits[0].GetPlaneID(),flshits[0].GetCellID(),t1_truth,false,energydump_truth, pdg);
278 
279  nFLShits = flshits.size();
280  for (int h =1; h!= nFLShits; ++h) {
281 
282  // std::cout<<"plane: "<<flshits[h].GetPlaneID()<<" cell: "<<flshits[h].GetCellID()<<" time: "<<t1_truth<<" pdg: "<<pdg<<std::endl;
283  thits.emplace_back(flshits[h].GetPlaneID(),flshits[h].GetCellID(),t1_truth,false,flshits[h].GetTotalEnergyLoss(), pdg);
284  // std::cout<<"t_true:"<<t1_truth<<std::endl;
285  // std::cout<<"energy: "<<flshits[h].GetTotalEnergyLoss()<<std::endl;
286 
287  pathlength_truth+=flshits[h].GetTotalPathLength();
288  energydump_truth+=flshits[h].GetTotalEnergyLoss();
289  if (t0_truth > flshits[h].GetEntryT() ) {
290  x0_truth = flshits[h].GetEntryX();
291  y0_truth = flshits[h].GetEntryY();
292  z0_truth = flshits[h].GetEntryZ();
293  t0_truth = flshits[h].GetEntryT();
294  }
295  else if (t1_truth < flshits[h].GetExitT() ) {
296  x1_truth = flshits[h].GetExitX();
297  y1_truth = flshits[h].GetExitY();
298  z1_truth = flshits[h].GetExitZ();
299  t1_truth = flshits[h].GetExitT();
300  }
301  }
302  MCTruth_Tree->Fill();
303  }
304 
305 
306  //Get TimeSlice info:
310  if (ghl.n_groups()==0) return;
311  // std::cout<<"number of original time slices: "<< ghl.n_groups()<<std::endl;
312  for (unsigned i =0; i!= ghl.n_groups();++i) {
313  novaddt::HitList hits = ghl.get(i);
314 
315  for (auto hit_ptr = hits.begin(); hit_ptr!=hits.end();++hit_ptr){
316  chits.emplace_back(hit_ptr->Plane().val, hit_ptr->Cell().val,
317  hit_ptr->TDC().val, hit_ptr->ADC().val,
318  0,i+1, 0, 0 //spacesliceID, timesliceID, rnsliceID, trackID
319  );
320  }
321 
322  }
323 
324  //Flip the RNSliceID:
328  n_RNSlice -> Fill(RNghl.n_groups());
329  // std::cout<<"number of removenoise slice: "<< RNghl.n_groups()<<std::endl;
330  for (unsigned i =0; i!= RNghl.n_groups(); ++i) {
331  novaddt::HitList hits = RNghl.get(i);
332  for (auto hit_ptr = hits.begin(); hit_ptr!=hits.end();++hit_ptr){
333  for (auto chit_ptr= chits.begin(); chit_ptr!=chits.end();++chit_ptr ) {
334  if (chit_ptr->rnsliceid) continue;
335  if (chit_ptr->plane == hit_ptr->Plane().val &&
336  chit_ptr->cell == hit_ptr->Cell().val &&
337  chit_ptr->tdc == hit_ptr->TDC().val) {
338  chit_ptr->rnsliceid =i+1;
339  break;
340  }
341  }
342  }
343  }
344 
345 
346  //Flip the SpaceSliceID:
347  art::Handle<std::vector<novaddt::HitList> > hit_lists; // from HitList
349  n_SpaceSlice->Fill(hit_lists->size());
350  for (unsigned i=0; i!=hit_lists->size(); ++i) {
351  novaddt::HitList const &hits = hit_lists->at(i);
352  for (auto hit_ptr = hits.begin(); hit_ptr!=hits.end();++hit_ptr){
353  for (auto chit_ptr= chits.begin(); chit_ptr!=chits.end();++chit_ptr ) {
354  if (chit_ptr->ssliceid > 0) continue;
355  if (chit_ptr->plane == hit_ptr->Plane().val &&
356  chit_ptr->cell == hit_ptr->Cell().val &&
357  chit_ptr->tdc == hit_ptr->TDC().val) {
358  chit_ptr->ssliceid =i+1;
359  break;
360  }
361  }
362  }
363  }
364  /*
365  //Get Track Info
366  art::Handle<std::vector<novaddt::Track> > tracks;
367  evt.getByLabel(OnlineTracker_ModuleLabel,OnlineTracker_InstanceLabel, tracks);
368 
369  art::FindOneP<novaddt::HitList> fohl(tracks, evt, OnlineTracker_ModuleLabel);
370  for (unsigned i =0; i != tracks->size(); ++i) {
371  view = tracks->at(i).View();
372  v0_ddt = tracks->at(i).StartV();
373  z0_ddt = tracks->at(i).StartZ();
374  v1_ddt = tracks->at(i).EndV();
375  z1_ddt = tracks->at(i).EndZ();
376  t0_ddt = tracks->at(i).StartT();
377  t1_ddt = tracks->at(i).EndT();
378 
379  Track_Tree->Fill();
380  //Get associated hit list:
381  art::Ptr<novaddt::HitList> hl_ptr = fohl.at(i);
382  for (auto const& hit : (*hl_ptr) ) {
383  //loop over the vector of chits:
384  for (auto chit_ptr= chits.begin(); chit_ptr!=chits.end();++chit_ptr ) {
385  if (chit_ptr->trackid) continue;
386  if (chit_ptr->plane == hit.Plane().val &&
387  chit_ptr->cell == hit.Cell().val &&
388  chit_ptr->tdc == hit.TDC().val) {
389  chit_ptr->trackid =i+1;
390  break;
391  }
392  }
393  }
394 
395  }
396  */
397  // std::cout<<"Here is the list of the found true hits:"<<std::endl;
398 
399  //Fill the hitlist tree:
400  for (auto const& chit : chits) {
401  Plane = chit.plane;
402  Cell = chit.cell;
403  TDC = chit.tdc;
404  ADC = chit.adc;
405  TsliceID = chit.tsliceid;
406  RNsliceID = chit.rnsliceid;
407  SsliceID = chit.ssliceid;
408  trackID = chit.trackid;
409  isNoise = true;
410  isMM = false;
411  for (auto true_hit_ptr= thits.begin(); true_hit_ptr != thits.end(); ++true_hit_ptr) {
412  if (true_hit_ptr->plane == Plane && true_hit_ptr->cell== Cell) {
413 
414  if ( std::max(TDC,uint32_t(true_hit_ptr->texit / 15.625))
415  -std::min(TDC,uint32_t(true_hit_ptr->texit / 15.625)) <70 ) {
416  isNoise = false;
417 
418  // std::cout<<"plane: "<<Plane<<" cell:"<<Cell<<std::endl;
419 
420  // if (true_hit_ptr->found) std::cout<<"This hit has already been assigned to a DAQHit!"<<std::endl;
421  true_hit_ptr->found = true;
422  if (true_hit_ptr->P_D_G == 42) {
423  isMM = true;
424  break;
425  }
426  }
427  }
428  }
429 
430  HitList_Tree -> Fill();
431  }
432 
433  for (auto const& true_hit: thits) {
434  Plane_true = true_hit.plane;
435  Cell_true = true_hit.cell;
436  Energy_true = true_hit.energy;
437  Found_true = true_hit.found;
438  Time_true = true_hit.texit;
439  // std::cout<<"energy dump: "<< true_hit.energy<<std::endl;
440  TrueHits_Tree-> Fill();
441  }
442 
443  return;
444 }
T max(const caf::Proxy< T > &a, T b)
int PdgCode() const
Definition: MCParticle.h:211
std::string RNSlice_ModuleLabel
double Py(const int i=0) const
Definition: MCParticle.h:230
const sim::ParticleNavigator & ParticleNavigator() const
Get a reference to the ParticleNavigator.
Definition: BackTracker.h:744
std::string SpaceSlice_ModuleLabel
std::vector< DAQHit > HitList
Definition: HitList.h:15
const char * p
Definition: xmltok.h:285
std::vector< sim::FLSHit > ParticleToFLSHit(const int &trackID) const
All the FLSHits that were created by the track id trackID, sorted from most to least light...
list_type::const_iterator const_iterator
double Px(const int i=0) const
Definition: MCParticle.h:229
int TrackId() const
Definition: MCParticle.h:209
void hits()
Definition: readHits.C:15
correl_yv Fill(-(dy[iP-1][iC-1]), hyv->GetBinContent(iP, iC))
std::string RNSlice_InstanceLabel
std::string TimeSlice_InstanceLabel
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 Pz(const int i=0) const
Definition: MCParticle.h:231
std::string SpaceSlice_InstanceLabel
T min(const caf::Proxy< T > &a, T b)
EventID id() const
Definition: Event.h:56
std::string TimeSlice_ModuleLabel
void ddt::SuperDDTEva::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 179 of file SuperDDTEva_module.cc.

References ADC, Cell, Cell_true, Energy_true, energydump_truth, eventID, Found_true, HitList_Tree, isMM, isNoise, art::TFileDirectory::make(), MCTruth_Tree, n_RNSlice, n_SpaceSlice, nFLShits, pathlength_truth, Plane, Plane_true, Px_truth, Py_truth, Pz_truth, RNsliceID, SsliceID, t0_ddt, t0_truth, t1_ddt, t1_truth, TDC, Time_true, Track_Tree, trackID, TrueHits_Tree, TsliceID, v0_ddt, v1_ddt, view, x0_truth, x1_truth, y0_truth, y1_truth, z0_ddt, z0_truth, z1_ddt, and z1_truth.

180 {
182  n_RNSlice = tfs->make<TH1I>("n_RNSlice","number of remove noise slice",1000,-0.5,999.5);
183  n_SpaceSlice = tfs->make<TH1I>("n_SpaceSlice","number of space slice",100,-0.5,99.5);
184 
185  MCTruth_Tree = tfs->make<TTree>("MCTruth","MC_info");
186  // MCTruth_Tree -> Branch("PDG",&pdg,"PDG/I");
187  MCTruth_Tree -> Branch("nhits",&nFLShits,"nhits/I");
188  MCTruth_Tree -> Branch("Px",&Px_truth,"Px/D");
189  MCTruth_Tree -> Branch("Py",&Py_truth,"Py/D");
190  MCTruth_Tree -> Branch("Pz",&Pz_truth,"Pz/D");
191  MCTruth_Tree -> Branch("EnergyDump",&energydump_truth,"energydump/D");
192  MCTruth_Tree -> Branch("PathLength",&pathlength_truth,"pathlength/D");
193  MCTruth_Tree -> Branch("x0",&x0_truth,"x0/D");
194  MCTruth_Tree -> Branch("y0",&y0_truth,"y0/D");
195  MCTruth_Tree -> Branch("z0",&z0_truth,"z0/D");
196  MCTruth_Tree -> Branch("t0",&t0_truth,"t0/D");
197  MCTruth_Tree -> Branch("x1",&x1_truth,"x1/D");
198  MCTruth_Tree -> Branch("y1",&y1_truth,"y1/D");
199  MCTruth_Tree -> Branch("z1",&z1_truth,"z1/D");
200  MCTruth_Tree -> Branch("t1",&t1_truth,"t1/D");
201  MCTruth_Tree -> Branch("evtID",&eventID,"evtID/I");
202 
203  HitList_Tree = tfs->make<TTree>("HitList","HitList_info");
204  HitList_Tree -> Branch("Plane",&Plane,"Plane/I");
205  HitList_Tree -> Branch("Cell",&Cell,"Cell/I");
206  HitList_Tree -> Branch("TDC",&TDC,"TDC/i");
207  HitList_Tree -> Branch("ADC",&ADC,"ADC/I");
208  HitList_Tree -> Branch("trackID",&trackID,"trackID/I");
209  HitList_Tree -> Branch("TimesliceID",&TsliceID,"TimesliceID/I");
210  HitList_Tree -> Branch("RNsliceID",&RNsliceID,"RNsliceID/I");
211  HitList_Tree -> Branch("SsliceID",&SsliceID,"SsliceID/I");
212  HitList_Tree -> Branch("eventID",&eventID,"eventID/I");
213  HitList_Tree -> Branch("IsNoise",&isNoise,"IsNoise/O");
214  HitList_Tree -> Branch("IsMM",&isMM,"IsMM/O");
215 
216  Track_Tree = tfs->make<TTree>("Track_Tree","Track_info");
217  Track_Tree -> Branch("View",&view,"View/I");
218  Track_Tree -> Branch("v0",&v0_ddt,"v0/D");
219  Track_Tree -> Branch("z0",&z0_ddt,"z0/D");
220  Track_Tree -> Branch("t0",&t0_ddt,"t0/D");
221  Track_Tree -> Branch("v1",&v1_ddt,"v1/D");
222  Track_Tree -> Branch("z1",&z1_ddt,"z1/D");
223  Track_Tree -> Branch("t1",&t1_ddt,"t1/D");
224  Track_Tree -> Branch("eventID",&eventID,"eventID/I");
225 
226  TrueHits_Tree = tfs->make<TTree>("TrueHits_Tree","TrueHits_info");
227  TrueHits_Tree -> Branch("Plane",&Plane_true,"Plane/I");
228  TrueHits_Tree -> Branch("Cell",&Cell_true,"Cell/I");
229  TrueHits_Tree -> Branch("Energy",&Energy_true,"Energy/D");
230  TrueHits_Tree -> Branch("Time",&Time_true,"Time/D");
231  TrueHits_Tree -> Branch("Found",&Found_true,"Found/O");
232  TrueHits_Tree -> Branch("eventID",&eventID,"eventID/I");
233 
234 
235  /*
236  nhits_hist = tfs->make<TH1I>("nhitsHist","Number of Hits per Slice",1000,0,1000);
237  ntracks_hist = tfs->make<TH1I>("ntracks","Number of Tracks per Slice",50,0,50);
238  */
239 }
T * make(ARGS...args) const
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 ddt::SuperDDTEva::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 159 of file SuperDDTEva_module.cc.

References fFLSHitListLabel, fhicl::ParameterSet::get(), OnlineTracker_InstanceLabel, OnlineTracker_ModuleLabel, RNSlice_InstanceLabel, RNSlice_ModuleLabel, SpaceSlice_InstanceLabel, SpaceSlice_ModuleLabel, string, TimeSlice_InstanceLabel, and TimeSlice_ModuleLabel.

Referenced by SuperDDTEva().

160 {
161  TimeSlice_ModuleLabel = pset.get< std::string >("TimeSlice_ModuleLabel" );
162  TimeSlice_InstanceLabel = pset.get< std::string >("TimeSlice_InstanceLabel" );
163  RNSlice_ModuleLabel = pset.get< std::string >("RNSlice_ModuleLabel" );
164  RNSlice_InstanceLabel = pset.get< std::string >("RNSlice_InstanceLabel" );
165  SpaceSlice_ModuleLabel = pset.get< std::string >("SpaceSlice_ModuleLabel" );
166  SpaceSlice_InstanceLabel = pset.get< std::string >("SpaceSlice_InstanceLabel" );
167  OnlineTracker_ModuleLabel = pset.get< std::string >("OnlineTracker_ModuleLabel" );
168  OnlineTracker_InstanceLabel = pset.get< std::string >("OnlineTracker_InstanceLabel" );
169  fFLSHitListLabel = pset.get< std::string >("FLSHitListLabel") ;
170 }
std::string RNSlice_ModuleLabel
std::string SpaceSlice_ModuleLabel
std::string fFLSHitListLabel
std::string OnlineTracker_InstanceLabel
std::string RNSlice_InstanceLabel
std::string TimeSlice_InstanceLabel
std::string SpaceSlice_InstanceLabel
std::string OnlineTracker_ModuleLabel
std::string TimeSlice_ModuleLabel
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

int ddt::SuperDDTEva::ADC
private

Definition at line 124 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::Cell
private

Definition at line 124 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::Cell_true
private

Definition at line 143 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::Energy_true
private

Definition at line 144 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::energydump_truth
private

Definition at line 103 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::eventID
private

Definition at line 126 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

std::string ddt::SuperDDTEva::fFLSHitListLabel
private

Definition at line 140 of file SuperDDTEva_module.cc.

Referenced by reconfigure().

bool ddt::SuperDDTEva::Found_true
private

Definition at line 145 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

TTree* ddt::SuperDDTEva::HitList_Tree
private

Definition at line 87 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

bool ddt::SuperDDTEva::isMM
private

Definition at line 127 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

bool ddt::SuperDDTEva::isNoise
private

Definition at line 127 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

TTree* ddt::SuperDDTEva::MCTruth_Tree
private

Definition at line 86 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

TH1I* ddt::SuperDDTEva::n_RNSlice
private

Definition at line 94 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

TH1I* ddt::SuperDDTEva::n_SpaceSlice
private

Definition at line 95 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::nFLShits
private

Definition at line 99 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

std::string ddt::SuperDDTEva::OnlineTracker_InstanceLabel
private

Definition at line 139 of file SuperDDTEva_module.cc.

Referenced by reconfigure().

std::string ddt::SuperDDTEva::OnlineTracker_ModuleLabel
private

Definition at line 138 of file SuperDDTEva_module.cc.

Referenced by reconfigure().

double ddt::SuperDDTEva::pathlength_truth
private

Definition at line 104 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::pdg
private

Definition at line 98 of file SuperDDTEva_module.cc.

Referenced by analyze().

int ddt::SuperDDTEva::Plane
private

Definition at line 124 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::Plane_true
private

Definition at line 143 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::Px_truth
private

Definition at line 100 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::Py_truth
private

Definition at line 101 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::Pz_truth
private

Definition at line 102 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

std::string ddt::SuperDDTEva::RNSlice_InstanceLabel
private

Definition at line 133 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

std::string ddt::SuperDDTEva::RNSlice_ModuleLabel
private

Definition at line 132 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

int ddt::SuperDDTEva::RNsliceID
private

Definition at line 126 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

std::string ddt::SuperDDTEva::SpaceSlice_InstanceLabel
private

Definition at line 136 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

std::string ddt::SuperDDTEva::SpaceSlice_ModuleLabel
private

Definition at line 135 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

int ddt::SuperDDTEva::SsliceID
private

Definition at line 126 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::t0_ddt
private

Definition at line 118 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::t0_truth
private

Definition at line 108 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::t1_ddt
private

Definition at line 121 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::t1_truth
private

Definition at line 112 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

uint32_t ddt::SuperDDTEva::TDC
private

Definition at line 125 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::Time_true
private

Definition at line 144 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

std::string ddt::SuperDDTEva::TimeSlice_InstanceLabel
private

Definition at line 130 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

std::string ddt::SuperDDTEva::TimeSlice_ModuleLabel
private

Definition at line 129 of file SuperDDTEva_module.cc.

Referenced by analyze(), and reconfigure().

TTree* ddt::SuperDDTEva::Track_Tree
private

Definition at line 88 of file SuperDDTEva_module.cc.

Referenced by beginJob().

int ddt::SuperDDTEva::trackID
private

Definition at line 126 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

TTree* ddt::SuperDDTEva::TrueHits_Tree
private

Definition at line 89 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

int ddt::SuperDDTEva::TsliceID
private

Definition at line 126 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::v0_ddt
private

Definition at line 116 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::v1_ddt
private

Definition at line 119 of file SuperDDTEva_module.cc.

Referenced by beginJob().

int ddt::SuperDDTEva::view
private

Definition at line 115 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::x0_truth
private

Definition at line 105 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::x1_truth
private

Definition at line 109 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::y0_truth
private

Definition at line 106 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::y1_truth
private

Definition at line 110 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::z0_ddt
private

Definition at line 117 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::z0_truth
private

Definition at line 107 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().

double ddt::SuperDDTEva::z1_ddt
private

Definition at line 120 of file SuperDDTEva_module.cc.

Referenced by beginJob().

double ddt::SuperDDTEva::z1_truth
private

Definition at line 111 of file SuperDDTEva_module.cc.

Referenced by analyze(), and beginJob().


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