Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
novaddt::MichelETrigger Class Reference
Inheritance diagram for novaddt::MichelETrigger:
art::EDFilter art::ProducerBase art::Consumer art::EngineCreator art::ProductRegistryHelper

Public Types

using ModuleType = EDFilter
 
using WorkerType = WorkerT< EDFilter >
 
template<typename UserConfig >
using Table = ProducerBase::Table< UserConfig >
 

Public Member Functions

 MichelETrigger (fhicl::ParameterSet const &p)
 
 MichelETrigger (MichelETrigger const &)=delete
 
 MichelETrigger (MichelETrigger &&)=delete
 
MichelETriggeroperator= (MichelETrigger const &)=delete
 
MichelETriggeroperator= (MichelETrigger &&)=delete
 
bool filter (art::Event &e) override
 
float GetSmartPrescale (int xcell, int ycell)
 
bool GetSmartPrescaleDecision (double prescale)
 
void endJob () override
 
void reconfigure (fhicl::ParameterSet const &p)
 
template<typename PROD , BranchType B = InEvent>
ProductID getProductID (std::string const &instanceName={}) const
 
template<typename PROD , BranchType B>
ProductID getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const
 
bool modifiesEvent () 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

int nEvents = 0
 
int nTracks = 0
 
int nStoppedTracks = 0
 
int nClusters1 = 0
 
int nMichels = 0
 
int nTrig = 0
 

Static Public Attributes

static constexpr bool Pass {true}
 
static constexpr bool Fail {false}
 

Protected Member Functions

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

Private Attributes

const int kTDC_PER_USEC = 64
 
const double cw = 3.97
 
const double pw = 6.654
 
unsigned _prescale
 
std::string _tracklabel
 
std::string _hitslabel
 
double fTimeUpperTrack
 
double fTimeLowerTrack
 
double fTimeUpperCluster
 
double fTimeLowerCluster
 
double fDistMuon
 
double fDistMichel
 
double fMaxE
 
int fFiducial_Z_min
 
int fFiducial_Z_max
 
int fFiducial_X_min
 
int fFiducial_X_max
 
int fFiducial_Y_min
 
int fFiducial_Y_max
 
bool fapplySmartPrescale
 
double fadditionalPrescale
 
int _trigger_counts = 0
 

Detailed Description

Definition at line 63 of file MichelETrigger_module.cc.

Member Typedef Documentation

using art::EDFilter::ModuleType = EDFilter
inherited

Definition at line 37 of file EDFilter.h.

template<typename UserConfig >
using art::EDFilter::Table = ProducerBase::Table<UserConfig>
inherited

Definition at line 46 of file EDFilter.h.

using art::EDFilter::WorkerType = WorkerT<EDFilter>
inherited

Definition at line 38 of file EDFilter.h.

Constructor & Destructor Documentation

novaddt::MichelETrigger::MichelETrigger ( fhicl::ParameterSet const &  p)
explicit

Definition at line 121 of file MichelETrigger_module.cc.

122 :
123  _prescale (p.get<unsigned>("prescale") ),
124  _tracklabel (p.get<std::string>("TrackLabel") ),
125  _hitslabel (p.get<std::string>("HitsTag") ),
126  fTimeUpperTrack (p.get<double>("time1_u")*kTDC_PER_USEC),
127  fTimeLowerTrack (p.get<double>("time1_l")*kTDC_PER_USEC),
128  fTimeUpperCluster (p.get<double>("time2_u")*kTDC_PER_USEC),
129  fTimeLowerCluster (p.get<double>("time2_l")*kTDC_PER_USEC),
130  fDistMuon (p.get<double>("MaxDistance") ),
131  fDistMichel (p.get<double>("DistanceMichel") ),
132  fMaxE (p.get<double>("EnergyCutOff") ),
133  fFiducial_Z_min (p.get<int>("fiducial.ZetRange.min") ),
134  fFiducial_Z_max (p.get<int>("fiducial.ZetRange.max") ),
135  fFiducial_X_min (p.get<int>("fiducial.XRange.min") ),
136  fFiducial_X_max (p.get<int>("fiducial.XRange.max") ),
137  fFiducial_Y_min (p.get<int>("fiducial.YRange.min") ),
138  fFiducial_Y_max (p.get<int>("fiducial.YRange.max") ),
139  fapplySmartPrescale(p.get<bool>("applySmartPrescale") ),
140  fadditionalPrescale(p.get<double>("additionalPrescale") )
141 {
142  produces<std::vector<TriggerDecision>>();
143 }
const char * p
Definition: xmltok.h:285
enum BeamMode string
novaddt::MichelETrigger::MichelETrigger ( MichelETrigger const &  )
delete
novaddt::MichelETrigger::MichelETrigger ( MichelETrigger &&  )
delete

Member Function Documentation

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::EDFilter::currentContext ( ) const
protectedinherited
void novaddt::MichelETrigger::endJob ( )
overridevirtual

Reimplemented from art::EDFilter.

Definition at line 381 of file MichelETrigger_module.cc.

References om::cout, allTimeWatchdog::endl, nClusters1, nEvents, nMichels, nStoppedTracks, nTracks, and nTrig.

382 {
383  std::cout << "=== novaddt::MichelETrigger endJob" << std::endl;
384  std::cout << "\tNumber of events: " << nEvents << std::endl;
385  std::cout << "\tNumber of tracks: " << nTracks << std::endl;
386  std::cout << "\tNumber of stopped tracks: " << nStoppedTracks
387  << std::endl;
388  std::cout << "\tNumber of cluster seeds: " << nClusters1 << std::endl;
389  std::cout << "\tNumber of Michels tagged: " << nMichels << std::endl;
390  std::cout << "\tNumber of Michels Triggered: " << nTrig << std::endl;
391 }
OStream cout
Definition: OStream.cxx:6
bool novaddt::MichelETrigger::filter ( art::Event e)
overridevirtual

Implements art::EDFilter.

Definition at line 172 of file MichelETrigger_module.cc.

References _hitslabel, _prescale, _tracklabel, _trigger_counts, abs(), novaddt::DAQHit::ADC(), ana::assert(), plot_validation_datamc::c, novaddt::DAQHit::Cell(), cmp_tdc(), cw, dist, distance(), novaddt::Track3D::End(), fapplySmartPrescale, fDistMichel, fDistMuon, fFiducial_X_max, fFiducial_X_min, fFiducial_Y_max, fFiducial_Y_min, fFiducial_Z_max, fFiducial_Z_min, fMaxE, fTimeLowerCluster, fTimeLowerTrack, fTimeUpperCluster, fTimeUpperTrack, art::DataViewImpl::getByLabel(), GetSmartPrescale(), GetSmartPrescaleDecision(), art::DataViewImpl::getValidHandle(), novaddt::Track3D::Is3D(), maxE, nClusters1, nEvents, nMichels, nStoppedTracks, nTracks, nTrig, novaddt::DAQHit::Plane(), NDAPDHVSetting::plane, art::Event::put(), pw, fillBadChanDBTables::result, novaddt::Track3D::Start(), novaddt::DAQHit::TDC(), daqdataformats::TRIG_ID_DATA_MICHEL, novaddt::TDC::val, novaddt::ADC::val, novaddt::Plane::val, novaddt::Cell::val, novaddt::View::val, novaddt::DAQHit::View(), w, X, daqchannelmap::X_VIEW, Y, and Z.

173 {
174  nEvents++;
175 
176  std::unique_ptr<std::vector<TriggerDecision>>
177  trigger_decisions(new std::vector<TriggerDecision>);
178  bool isTriggering = false;
179 
181  e.getByLabel(_tracklabel, Tracks);
182 
183  //get the hit list for each track, use this to calculate mean track time
185  assert(fohl.isValid());
186  assert(fohl.size() == Tracks->size());
187 
188  //Grab all time sorted hits
189  auto cellHits = e.getValidHandle<novaddt::HitList>(_hitslabel);
190 
191  //This will store the Michel Clusters id'd at the end of a track
192  std::vector<std::vector<novaddt::DAQHit>> result;
193 
194  //Loop over all the tracks in this event
195  for(uint iii = 0; iii < Tracks->size(); ++iii){
196  nTracks++;
197  //Grab track
198  novaddt::Track3D track = Tracks->at(iii);
199 
200  //Make Sure track is 3D
201  if(!track.Is3D()) continue;
202 
203  TVector3 trk_end[2];
204  trk_end[0] = track.Start();
205  trk_end[1] = track.End();
206 
207  for(int which_end = 0; which_end < 2; which_end++){
208  if( (trk_end[which_end].X() < fFiducial_X_min) ||
209  (trk_end[which_end].X() > fFiducial_X_max)) continue;
210  if( (trk_end[which_end].Y() < fFiducial_Y_min) ||
211  (trk_end[which_end].Y() > fFiducial_Y_max)) continue;
212  if( (trk_end[which_end].Z() < fFiducial_Z_min) ||
213  (trk_end[which_end].Z() > fFiducial_Z_max)) continue;
214 
215  nStoppedTracks++;
216 
217  //Track stops in the detector. Start looking for the Michel Cluster
218  std::vector<novaddt::DAQHit> meCluster;
219 
220  //Get Average time of the stopped track
221  //get the hit list for this track
222  art::Ptr<novaddt::HitList> this_hit_list = fohl.at(iii);
223 
224  double avg_t = 0;
225  double totW = 0;
226  double min_TDC = 0;
227  double max_TDC = 0;
228 
229  for(uint trackHits = 0; trackHits < this_hit_list->size(); trackHits++){
230  if(trackHits == 0)
231  min_TDC = this_hit_list->at(trackHits).TDC().val;
232  if( this_hit_list->at(trackHits).ADC().val < 50) continue;
233  if( this_hit_list->at(trackHits).TDC().val < min_TDC)
234  min_TDC = this_hit_list->at(trackHits).TDC().val;
235  double w = this_hit_list->at(trackHits).ADC().val;
236  avg_t += this_hit_list->at(trackHits).TDC().val * w;
237  totW += w;
238  }// loop over track hits
239 
240  avg_t = avg_t/totW;
241 
242 
243  //Get start and end cell hits that fall in the time window
244  const double firstT = (avg_t+fTimeLowerTrack);
245  const double lastT = (avg_t+fTimeUpperTrack);
246 
247  std::vector<novaddt::DAQHit> daqHits = *(cellHits);
248 
249 
250  const auto cellHitsBegin = std::lower_bound(daqHits.begin(),
251  daqHits.end(), firstT,
252  cmp_tdc);
253  const auto cellHitsEnd = std::lower_bound(cellHitsBegin, daqHits.end(),
254  lastT, cmp_tdc);
255 
256  //std::cout << avg_t << "\t" << firstT << "\t" << lastT << std::endl;
257 
258  //Hold onto potential Michel Cluster hits
259  std::vector<novaddt::DAQHit> meList;
260  double michel_pos[3] = {0,0,0};
261  int seed_plane_pos = -5;
262  double seed_time = 0;
263  double maxE = 0;
264  double distance_min = 1000;
265  for(auto cellHitsIter = cellHitsBegin; cellHitsIter != cellHitsEnd; ++cellHitsIter)
266  {
267  novaddt::DAQHit c = *cellHitsIter;
268  if(c.ADC() < 50) continue;
269 
270  // std::cout << c.TDC().val << std::endl;
271 
272  double cellpos[3] = {0,0,0};
273  cellpos[0] = c.Cell().val;
274  cellpos[1] = c.Cell().val;
275  cellpos[2] = c.Plane().val;
276 
277  if(c.View().val == daqchannelmap::X_VIEW)
278  cellpos[1] = trk_end[which_end].Y();
279  else
280  cellpos[0] = trk_end[which_end].X();
281 
282  TVector3 distance;
283  distance.SetXYZ((cellpos[0] - trk_end[which_end].X())*cw,
284  (cellpos[1] - trk_end[which_end].Y())*cw,
285  (cellpos[2] - trk_end[which_end].Z())*pw);
286 
287  double dist = distance.Mag();
288 
289  if(dist < fDistMuon && c.ADC().val < fMaxE){
291  meList.push_back(hit);
292  //std::cout << (hit.TDC().val - avg_t)/kTDC_PER_USEC << "\t" <<
293  // dist << "\t" << hit.ADC().val << std::endl;
294  if(hit.ADC() > maxE && dist < distance_min){
295  seed_time = hit.TDC().val;
296  seed_plane_pos = cellpos[2];
297  maxE = hit.ADC().val;
298  michel_pos[0] = cellpos[0];
299  michel_pos[1] = cellpos[1];
300  michel_pos[2] = cellpos[2];
301  }
302  }
303  }// First loop over cell hits
304 
305  //Didn't find any me candidates don't bother looking any further
306  if(seed_plane_pos < 0) continue;
307  nClusters1++;
308 
309  max_TDC = seed_time;// fTimeUpperCluster;
310  double dist2 = 1000;
311  auto iter = meList.begin();
312  while( iter != meList.end()){
313  novaddt::DAQHit c = *iter;
314 
315  double plane = c.Plane().val;
316 
317  dist2 = abs( plane - seed_plane_pos)*pw;
318 
319  //Make second timing cut
320  //Select only cell hits that happen
321  //within a certain time of the michel e candidate hit
322 
323  if( ((seed_time - fTimeLowerCluster) < (*iter).TDC().val ) &&
324  ((seed_time + fTimeUpperCluster) > (*iter).TDC().val ) &&
325  (dist2 < fDistMichel)){
326  meCluster.push_back(*iter);
327  if ((*iter).TDC().val > max_TDC)
328  max_TDC = (*iter).TDC().val;
329  }
330  iter++;
331  }//end second loop on michel hits
332 
333  //Number Cut: Only Keep Michel Cluster at least one cell
334  //hit and has cell hits in both views
335  int x_hits = 0;
336  int y_hits = 0;
337  double TotalADC = 0;
338  if(meCluster.size() > 0){
339  for(uint ihit = 0; ihit < meCluster.size(); ihit++){
340  if(meCluster[ihit].View().val == daqchannelmap::X_VIEW)
341  x_hits++;
342  else
343  y_hits++;
344  TotalADC += meCluster[ihit].ADC().val;
345  }
346  }
347 
348  if( x_hits > 0 && y_hits > 0){
349  result.push_back(meCluster);
350  _trigger_counts++;
351  nMichels++;
352  //std::cout << michel_pos[0] << "\t" << michel_pos[1] << "\t" <<
353  //michel_pos[2] << "\t" << std::endl;
354  }
355  if((_trigger_counts%_prescale == _prescale-1) && (x_hits > 0) && (y_hits > 0)) {
357  double prescaleValue = GetSmartPrescale(michel_pos[0],michel_pos[1]);
358  bool shouldTrigger = GetSmartPrescaleDecision(prescaleValue);
359  if(shouldTrigger){
360  trigger_decisions->emplace_back(min_TDC, max_TDC - min_TDC,
362  _prescale);
363  nTrig++;
364  }
365  }
366  else{
367  trigger_decisions->emplace_back(min_TDC, max_TDC - min_TDC, daqdataformats::trigID::TRIG_ID_DATA_MICHEL, _prescale);
368  nTrig++;
369  }
370  }
371  }// loop over ends of track
372  }//end loop over tracks
373 
374  if(result.size() > 0 && trigger_decisions->size() > 0) isTriggering = true;
375  e.put(std::move(trigger_decisions));
376  return isTriggering;
377 } //end Filter()
value_type val
Definition: BaseProducts.h:34
novaddt::Plane const & Plane() const
Definition: DAQHit.h:70
novaddt::TDC const & TDC() const
Definition: DAQHit.h:74
std::vector< DAQHit > HitList
Definition: HitList.h:15
bool GetSmartPrescaleDecision(double prescale)
value_type val
Definition: BaseProducts.h:109
Definition: event.h:19
void abs(TH1 *hist)
unsigned distance(const T &t1, const T &t2)
TVector3 const & End() const
Definition: Track3D.h:46
Float_t Y
Definition: plot.C:38
double dist
Definition: runWimpSim.h:113
Float_t Z
Definition: plot.C:38
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
bool cmp_tdc(const novaddt::DAQHit &h, const novaddt::TDC &tdc)
novaddt::ADC const & ADC() const
Definition: DAQHit.h:73
novaddt::View const & View() const
Definition: DAQHit.h:72
Identifier for the X measuring view of the detector (top)
float GetSmartPrescale(int xcell, int ycell)
TVector3 const & Start() const
Definition: Track3D.h:45
value_type val
Definition: BaseProducts.h:84
bool const & Is3D() const
Definition: Track3D.h:43
Definition: View.py:1
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
Definition: structs.h:12
value_type val
Definition: BaseProducts.h:137
novaddt::Cell const & Cell() const
Definition: DAQHit.h:71
assert(nhit_max >=nhit_nbins)
value_type val
Definition: BaseProducts.h:65
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
double maxE
Definition: plot_hist.C:8
Float_t X
Definition: plot.C:38
Float_t w
Definition: plot.C:20
Definition: fwd.h:28
unsigned int uint
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
template<typename PROD , BranchType B>
ProductID art::EDFilter::getProductID ( std::string const &  instanceName = {}) const
inlineinherited

Definition at line 131 of file EDFilter.h.

References art::EDFilter::moduleDescription_.

Referenced by novaddt::HoughTrackMaker::create_associations().

132  {
133  return ProducerBase::getProductID<PROD, B>(moduleDescription_,
134  instanceName);
135  }
ModuleDescription moduleDescription_
Definition: EDFilter.h:124
template<typename PROD , BranchType B>
ProductID art::ProducerBase::getProductID ( ModuleDescription const &  moduleDescription,
std::string const &  instanceName 
) const
inherited

Definition at line 56 of file ProducerBase.h.

References art::ModuleDescription::moduleLabel().

Referenced by art::ProducerBase::modifiesEvent().

58  {
59  auto const& pd =
60  get_ProductDescription<PROD>(B, md.moduleLabel(), instanceName);
61  return pd.productID();
62  }
float novaddt::MichelETrigger::GetSmartPrescale ( int  xcell,
int  ycell 
)

Definition at line 149 of file MichelETrigger_module.cc.

References b, fadditionalPrescale, stan::math::floor(), m, and prescale_table.

Referenced by filter().

150 {
151  //m and b come from the conversion of 383 cells (X/Y dimension of FD)
152  //to 95 cells
153  float m = 62./246.;
154  float b = 14 - 54*m;
155  float xcell_convert = m*xcell + b;
156  float ycell_convert = m*ycell + b;
157  if(xcell_convert > 94) xcell_convert = 94;
158  if(ycell_convert > 94) ycell_convert = 94;
159  return prescale_table[floor(xcell_convert)][floor(ycell_convert)]
161 }
const std::vector< std::vector< float > > prescale_table
fvar< T > floor(const fvar< T > &x)
Definition: floor.hpp:11
const hit & b
Definition: hits.cxx:21
bool novaddt::MichelETrigger::GetSmartPrescaleDecision ( double  prescale)

Definition at line 164 of file MichelETrigger_module.cc.

References r(), and central_limit::rand.

Referenced by filter().

165  {
166  // Is it good enough for small prescale factors ~1/100?
167  double r = (double)rand() / (double)RAND_MAX;
168  return r < prescale;
169  }
TRandom3 r(0)
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::ProducerBase::modifiesEvent ( ) const
inlineinherited

Definition at line 40 of file ProducerBase.h.

References art::ProducerBase::getProductID(), and string.

41  {
42  return true;
43  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
MichelETrigger& novaddt::MichelETrigger::operator= ( MichelETrigger const &  )
delete
MichelETrigger& novaddt::MichelETrigger::operator= ( MichelETrigger &&  )
delete
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
void novaddt::MichelETrigger::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 395 of file MichelETrigger_module.cc.

References DEFINE_ART_MODULE().

396 {
397  // Implementation of optional member function here.
398 }
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

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

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited

Member Data Documentation

std::string novaddt::MichelETrigger::_hitslabel
private

Definition at line 101 of file MichelETrigger_module.cc.

Referenced by filter().

unsigned novaddt::MichelETrigger::_prescale
private

Definition at line 99 of file MichelETrigger_module.cc.

Referenced by filter().

std::string novaddt::MichelETrigger::_tracklabel
private

Definition at line 100 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::_trigger_counts = 0
private

Definition at line 117 of file MichelETrigger_module.cc.

Referenced by filter().

const double novaddt::MichelETrigger::cw = 3.97
private

Definition at line 95 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fadditionalPrescale
private

Definition at line 116 of file MichelETrigger_module.cc.

Referenced by GetSmartPrescale().

constexpr bool art::EDFilter::Fail {false}
staticinherited

Definition at line 33 of file EDFilter.h.

Referenced by evgen::GENIEFilter::filter().

bool novaddt::MichelETrigger::fapplySmartPrescale
private

Definition at line 115 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fDistMichel
private

Definition at line 107 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fDistMuon
private

Definition at line 106 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_X_max
private

Definition at line 112 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_X_min
private

Definition at line 111 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_Y_max
private

Definition at line 114 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_Y_min
private

Definition at line 113 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_Z_max
private

Definition at line 110 of file MichelETrigger_module.cc.

Referenced by filter().

int novaddt::MichelETrigger::fFiducial_Z_min
private

Definition at line 109 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fMaxE
private

Definition at line 108 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fTimeLowerCluster
private

Definition at line 105 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fTimeLowerTrack
private

Definition at line 103 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fTimeUpperCluster
private

Definition at line 104 of file MichelETrigger_module.cc.

Referenced by filter().

double novaddt::MichelETrigger::fTimeUpperTrack
private

Definition at line 102 of file MichelETrigger_module.cc.

Referenced by filter().

const int novaddt::MichelETrigger::kTDC_PER_USEC = 64
private

Definition at line 94 of file MichelETrigger_module.cc.

int novaddt::MichelETrigger::nClusters1 = 0

Definition at line 69 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

int novaddt::MichelETrigger::nEvents = 0

Definition at line 66 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

int novaddt::MichelETrigger::nMichels = 0

Definition at line 70 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

int novaddt::MichelETrigger::nStoppedTracks = 0

Definition at line 68 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

int novaddt::MichelETrigger::nTracks = 0

Definition at line 67 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

int novaddt::MichelETrigger::nTrig = 0

Definition at line 71 of file MichelETrigger_module.cc.

Referenced by endJob(), and filter().

constexpr bool art::EDFilter::Pass {true}
staticinherited

Definition at line 32 of file EDFilter.h.

Referenced by evgen::GENIEFilter::filter().

const double novaddt::MichelETrigger::pw = 6.654
private

Definition at line 96 of file MichelETrigger_module.cc.

Referenced by filter().


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