Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
novaddt::ContainedSlice Class Reference
Inheritance diagram for novaddt::ContainedSlice:
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

 ContainedSlice (fhicl::ParameterSet const &p)
 
virtual ~ContainedSlice ()
 
bool filter (art::Event &event) override
 
bool beginRun (art::Run &r) override
 
bool beginSubRun (art::SubRun &sr) override
 
void endJob () override
 
void printDDTSlices (art::Handle< std::vector< novaddt::HitList > > &ddt_slices)
 
void findBoundingBox (novaddt::HitList &xz_hits, novaddt::HitList &yz_hits, TVector3 &start, TVector3 &end)
 
void filterForContainedHitLists (art::Handle< std::vector< novaddt::HitList > > &ddt_slices, std::unique_ptr< std::vector< HitList > > &contained_hitlists)
 
bool defineContainmentRegion (art::Event &event)
 
void zeroCuts ()
 
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 ()
 

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

std::string _sliceModuleLabel
 label of module making the HitList More...
 
std::string _sliceInstanceLabel
 instance label making the HitList More...
 
float _xMin
 lower x fiducial cut More...
 
float _xMax
 upper x fiducial cut More...
 
float _yMin
 lower y fiducial cut More...
 
float _yMax
 upper y fiducial cut More...
 
unsigned int _zMin
 lower z fiducial cut More...
 
unsigned int _zMax
 upper z fiducial cut More...
 
unsigned int _secondaryZMin
 optional secondary lower z fiducial cut More...
 
unsigned int _secondaryZMax
 optional secondary upper z fiducial cut More...
 
bool _useSecondaryZCuts
 Apply the optional secondary z cuts. More...
 
bool _autoconfigure
 Autoconfigure z containment cuts. More...
 
unsigned int _autoconfigureMinZOffset
 The distance from the lower edge set by autoconfigure. More...
 
unsigned int _autoconfigureMaxZOffset
 The distance from the upper edge set by autoconfigure. More...
 
unsigned int _autoconfigureInt
 Run autoconfigure after every this number of events. More...
 
std::string _detector
 Detector ID, can be one of FD, ND or NDOS. More...
 
int _detector_id
 Detector ID int used to configure DAQ channel map. More...
 
std::string _autoconfigureSliceModuleLabel
 label of module making the HitList for use in auto configuration More...
 
std::string _autoconfigureSliceInstanceLabel
 instance label making the HitList for use in auto configuration More...
 
bool _verbose
 Turn on verbose mode. More...
 
bool _reconfigure = true
 Force a reconfigure if autoconfigure is enabled. More...
 
unsigned int _nDCMsPerDiBlock
 Number of DCMs per diblock. More...
 
unsigned int _nPlanesPerDiBlock
 Number of Planes per diblock. More...
 
unsigned int _nEvents = 0
 number of events seen More...
 
unsigned int _nSlices = 0
 number of slices seen More...
 
unsigned int _nFilteredSlices = 0
 number of slices filtered More...
 
unsigned int _nAutoconfigures = 0
 number of times autoconfigure is run More...
 
unsigned int _nDiblocks = 0
 The total number of diblocks found. More...
 
unsigned int _nGoodDiblocks = 0
 The number of diblocks with all DCMs. More...
 

Detailed Description

Definition at line 26 of file ContainedSlice_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::ContainedSlice::ContainedSlice ( fhicl::ParameterSet const &  p)
explicit

Definition at line 76 of file ContainedSlice_module.cc.

References _autoconfigure, _autoconfigureInt, _autoconfigureMaxZOffset, _autoconfigureMinZOffset, _autoconfigureSliceInstanceLabel, _autoconfigureSliceModuleLabel, _detector, _detector_id, _nDCMsPerDiBlock, _nPlanesPerDiBlock, _secondaryZMax, _secondaryZMin, _sliceInstanceLabel, _sliceModuleLabel, _useSecondaryZCuts, _verbose, _xMax, _xMin, _yMax, _yMin, _zMax, _zMin, ana::assert(), om::cout, allTimeWatchdog::endl, novadaq::cnv::kFARDET, novadaq::cnv::kNDOS, and novadaq::cnv::kNEARDET.

77 : _sliceModuleLabel (p.get<std::string >("SliceModuleLabel" ))
78  , _sliceInstanceLabel(p.get<std::string >("SliceInstanceLabel", ""))
79  , _xMin (p.get<float>("Xmin"))
80  , _xMax (p.get<float>("Xmax"))
81  , _yMin (p.get<float>("Ymin"))
82  , _yMax (p.get<float>("Ymax"))
83  , _zMin (p.get<unsigned int>("Zmin"))
84  , _zMax (p.get<unsigned int>("Zmax"))
85  , _secondaryZMin (p.get<unsigned int>("SecondaryZmin"))
86  , _secondaryZMax (p.get<unsigned int>("SecondaryZmax"))
87  , _useSecondaryZCuts(p.get<bool>("UseSecondaryZCuts"))
88  , _autoconfigure (p.get<bool>("Autoconfigure"))
89  , _autoconfigureMinZOffset (p.get<unsigned int>("AutoconfigureMinZOffset"))
90  , _autoconfigureMaxZOffset (p.get<unsigned int>("AutoconfigureMaxZOffset"))
91  , _autoconfigureInt (p.get<unsigned int>("AutoconfigureInterval"))
92  , _detector (p.get<std::string>("Detector"))
93  , _autoconfigureSliceModuleLabel (p.get<std::string >("AutoconfigureSliceModuleLabel" ))
94  , _autoconfigureSliceInstanceLabel(p.get<std::string >("AutoconfigureSliceInstanceLabel", ""))
95  , _verbose(p.get<bool>("Verbose"))
96 {
97  std::cout << "--- novaddt::ContainedSlice instantiate" << std::endl;
98  std::cout << "\t SliceModuleLabel: " << _sliceModuleLabel << std::endl;
99  std::cout << "\t SliceInstanceLabel: " << _sliceInstanceLabel << std::endl;
100  std::cout << "\t X fiducial cuts: " << _xMin << " to " << _xMax << std::endl;
101  std::cout << "\t Y fiducial cuts: " << _yMin << " to " << _yMax << std::endl;
102  std::cout << "\t Z fiducial cuts: " << _zMin << " to " << _zMax << std::endl;
103  std::cout << "\t Use secondary z cuts: " << _useSecondaryZCuts << std::endl;
104  std::cout << "\t Secondary Z fiducial cuts: " << _secondaryZMin << " to " << _secondaryZMax << std::endl;
105  std::cout << "\t Autoconfigure: " << _autoconfigure << std::endl;
106  std::cout << "\t Autoconfigure min Z offset:" << _autoconfigureMinZOffset << std::endl;
107  std::cout << "\t Autoconfigure max Z offset:" << _autoconfigureMaxZOffset << std::endl;
108  std::cout << "\t Autoconfigure interval: " << _autoconfigureInt << std::endl;
109  std::cout << "\t Detector: " << _detector << std::endl;
110  std::cout << "\t AC SliceModuleLabel: " << _autoconfigureSliceModuleLabel << std::endl;
111  std::cout << "\t AC SliceInstanceLabel: " << _autoconfigureSliceInstanceLabel << std::endl;
112  std::cout << "\t Verbose: " << _verbose << std::endl;
113 
114  // Assert that a valid detector has been setup
115  assert( (_detector == "FD") ||
116  (_detector == "ND") ||
117  (_detector == "NDOS") );
118  // Set the detector id int
119  if(_detector == "FD"){
121  // These should really be got from DAQ channel map
122  _nDCMsPerDiBlock = 12;
123  _nPlanesPerDiBlock = 64;
124  } else if (_detector == "ND") {
126  _nDCMsPerDiBlock = 4;
127  _nPlanesPerDiBlock = 64;
128  } else {
130  _nDCMsPerDiBlock = 4;
131  _nPlanesPerDiBlock = 64;
132  }
133 
134  produces<std::vector<HitList>>("ContainedTimeSpaceSlice");
135 }
float _yMax
upper y fiducial cut
std::string _detector
Detector ID, can be one of FD, ND or NDOS.
std::string _sliceInstanceLabel
instance label making the HitList
unsigned int _zMax
upper z fiducial cut
const char * p
Definition: xmltok.h:285
float _xMax
upper x fiducial cut
bool _verbose
Turn on verbose mode.
unsigned int _autoconfigureMaxZOffset
The distance from the upper edge set by autoconfigure.
int _detector_id
Detector ID int used to configure DAQ channel map.
unsigned int _secondaryZMax
optional secondary upper z fiducial cut
unsigned int _secondaryZMin
optional secondary lower z fiducial cut
std::string _autoconfigureSliceModuleLabel
label of module making the HitList for use in auto configuration
unsigned int _nDCMsPerDiBlock
Number of DCMs per diblock.
unsigned int _nPlanesPerDiBlock
Number of Planes per diblock.
unsigned int _autoconfigureMinZOffset
The distance from the lower edge set by autoconfigure.
Far Detector at Ash River, MN.
bool _useSecondaryZCuts
Apply the optional secondary z cuts.
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
OStream cout
Definition: OStream.cxx:6
float _yMin
lower y fiducial cut
float _xMin
lower x fiducial cut
assert(nhit_max >=nhit_nbins)
bool _autoconfigure
Autoconfigure z containment cuts.
std::string _autoconfigureSliceInstanceLabel
instance label making the HitList for use in auto configuration
std::string _sliceModuleLabel
label of module making the HitList
unsigned int _autoconfigureInt
Run autoconfigure after every this number of events.
unsigned int _zMin
lower z fiducial cut
enum BeamMode string
novaddt::ContainedSlice::~ContainedSlice ( )
virtual

Definition at line 137 of file ContainedSlice_module.cc.

138 {
139  // Clean up dynamic memory and other resources here.
140 }

Member Function Documentation

bool novaddt::ContainedSlice::beginRun ( art::Run r)
overridevirtual

Reimplemented from art::EDFilter.

Definition at line 142 of file ContainedSlice_module.cc.

References _reconfigure, _verbose, and om::cout.

143 {
144  if (_verbose) std::cout << "ContainedSlice::beginRun, setting reconfigure to true\n";
145  _reconfigure = true;
146  return true;
147 }
bool _verbose
Turn on verbose mode.
bool _reconfigure
Force a reconfigure if autoconfigure is enabled.
OStream cout
Definition: OStream.cxx:6
bool novaddt::ContainedSlice::beginSubRun ( art::SubRun sr)
overridevirtual

Reimplemented from art::EDFilter.

Definition at line 149 of file ContainedSlice_module.cc.

References _reconfigure, _verbose, and om::cout.

150 {
151  if (_verbose) std::cout << "ContainedSlice::beginSubRun, setting reconfigure to true\n";
152  _reconfigure = true;
153  return true;
154 }
bool _verbose
Turn on verbose mode.
bool _reconfigure
Force a reconfigure if autoconfigure is enabled.
OStream cout
Definition: OStream.cxx:6
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
bool novaddt::ContainedSlice::defineContainmentRegion ( art::Event event)

Definition at line 401 of file ContainedSlice_module.cc.

References _autoconfigureMaxZOffset, _autoconfigureMinZOffset, _autoconfigureSliceInstanceLabel, _autoconfigureSliceModuleLabel, _detector_id, _nAutoconfigures, _nDCMsPerDiBlock, _nDiblocks, _nGoodDiblocks, _nPlanesPerDiBlock, _reconfigure, _secondaryZMax, _secondaryZMin, _useSecondaryZCuts, _verbose, _zMax, _zMin, om::cout, febshutoff_auto::db, febshutoff_auto::dcm, geo2elec::diblock, febshutoff_auto::end, allTimeWatchdog::endl, daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getInstance(), hits(), MECModelEnuComparisons::i, gen_flatrecord::size, and zeroCuts().

Referenced by filter().

402 {
403  if (_verbose) std::cout << "--- Defining containment region\n";
405  _reconfigure = false;
406  std::vector<daqchannelmap::diblock_t> active_diblocks;
407  std::map <daqchannelmap::diblock_t, std::vector<novaddt::DCM> > dcms_per_diblock;
408 
409  // get the hits
410  // to get the best estimate of active regions the most hits should be used
411  // therefore we get the hits after TDC sort
412  if (_verbose) std::cout << "\tgetting single hit list" << std::endl;
415  if (_verbose) std::cout << "\tgot " << hits->size() << " hits\n";
416 
417  // loop over hits
418  for(unsigned int i = 0; i < hits->size(); ++i){
420  //daqchannelmap::diblock_t diblock = daqchannelmap::DAQChannelMap::getInstance()->getDiBlock(hits->at(i).Chan());
421  novaddt::DCM dcm = hits->at(i).getDCM();
422  /*
423  std::string view = "y";
424  if( hits->at(i).View().val == daqchannelmap::X_VIEW ) view = "x";
425  if (_verbose) std::cout << " DCM: " << dcm.val
426  << ", diblock: " << diblock
427  << ", view: " << view
428  << std::endl;
429  */
430 
431  // Is this a new diblock?
432  if(std::find(active_diblocks.begin(), active_diblocks.end(), diblock)==active_diblocks.end()){
433  active_diblocks.push_back(diblock);
434  dcms_per_diblock[diblock].push_back(dcm);
435 
436  //if (_verbose) std::cout << " - Found new diblock: " << diblock
437  // << ", DCM: " << dcm.val
438  // << std::endl;
439  } else {
440  // Is this a new DCM?
441  // There are only 12 DCMs per diblock on the FD (and less on the other detectors)
442  // so only try the find if we haven't reached this number
443  if (dcms_per_diblock[diblock].size() == 12) continue;
444 
445  if(std::find(dcms_per_diblock[diblock].begin(), dcms_per_diblock[diblock].end(), dcm)==dcms_per_diblock[diblock].end()){
446  dcms_per_diblock[diblock].push_back(dcm);
447 
448  //if (_verbose) std::cout << " - Found a new DCM: " << dcm.val
449  // << ", diblock: " << diblock
450  // << std::endl;
451  }
452  } // end of is new diblock or DCM
453  } // end of loop on hits
454 
455  // sort the diblocks
456  std::sort(active_diblocks.begin(), active_diblocks.end());
457 
458  if (_verbose) std::cout << "Found: " << active_diblocks.size()
459  << " diblocks" << std::endl;
460  std::vector<daqchannelmap::diblock_t> good_diblocks;
461  for ( auto db : active_diblocks ){
462  _nDiblocks++;
463  if (_verbose) std::cout << " DB: " << db
464  << ", DCMs: " << dcms_per_diblock[db].size()
465  << std::endl;
466  // Only accept diblocks where all DCMs were active
467  if (dcms_per_diblock[db].size() == _nDCMsPerDiBlock){
468  _nGoodDiblocks++;
469  good_diblocks.push_back(db);
470  }
471  //for (auto dcm : dcms_per_diblock[db]){
472  // if (_verbose) std::cout << " - DCM: " << dcm.val << std::endl;
473  //}
474  }
475 
476  if (_verbose) std::cout << "Of these " << good_diblocks.size()
477  << " have the correct number of DCMs " << std::endl;
478 
479  // If there are no good diblocks then we can't define containment
480  if (good_diblocks.size() == 0){
481  if (_verbose) std::cout << "No good diblocks so containment cannot be defined" << std::endl;
482  zeroCuts();
483  return false;
484  }
485 
486  // Use the list of good diblocks to define our containment region
487  // We expect that this should be divided into one, or two continuous regions
488  // We do this by finding edges
489  std::vector<daqchannelmap::diblock_t> diblock_edges;
490  // Add the leading edge
491  diblock_edges.push_back(good_diblocks[0]);
492 
493  // Iterate over diblocks looking for edges
494  // Ignoring the first & last entries since by definition that has to be an edge
495  for (unsigned int i=1; i < good_diblocks.size(); ++i){
496  if (good_diblocks[i] != (good_diblocks[i-1]+1)){
497  diblock_edges.push_back(good_diblocks[i-1]);
498  diblock_edges.push_back(good_diblocks[i]);
499  }
500  }
501 
502  // Add the trailing edge
503  diblock_edges.push_back(good_diblocks[good_diblocks.size()-1]);
504 
505  if (_verbose){
506  std::cout << "Found " << diblock_edges.size()
507  << " diblock edges" << std::endl;
508  for (auto db : diblock_edges) std::cout << " " << db << std::endl;
509  }
510 
511  // Check that an appropriate number of edges have been found
512  if ((diblock_edges.size() != 2) && (diblock_edges.size() != 4)){
513  if (_verbose) std::cout << "More than two continuous regions found. Containment cannot be defined" << std::endl;
514  zeroCuts();
515  return false;
516  }
517 
518  // Set the containment cuts
519  // Recall that the diblock convention starts from 1
520  // Lower edges are therefore set from diblock number -1
521  // Upper edges from diblock number
522  _zMin = ((diblock_edges[0]-1)*_nPlanesPerDiBlock) + _autoconfigureMinZOffset;
523  _zMax = (diblock_edges[1]*_nPlanesPerDiBlock) - _autoconfigureMaxZOffset;
524  if (diblock_edges.size() == 4){
525  _useSecondaryZCuts = true;
528  } else {
529  _useSecondaryZCuts = false;
530  }
531 
532  if (_verbose){
533  std::cout << "Autoconfigured fiducial volume to: " << std::endl;
534  std::cout << "\t Z fiducial cuts: " << _zMin << " to " << _zMax << std::endl;
535  std::cout << "\t Use secondary z cuts: " << _useSecondaryZCuts << std::endl;
536  std::cout << "\t Secondary Z fiducial cuts: " << _secondaryZMin << " to " << _secondaryZMax << std::endl;
537  }
538 
539  return true;
540 }
diblock
print "ROW IS " print row
Definition: geo2elec.py:31
unsigned int _nDiblocks
The total number of diblocks found.
unsigned int _zMax
upper z fiducial cut
bool _verbose
Turn on verbose mode.
unsigned int _autoconfigureMaxZOffset
The distance from the upper edge set by autoconfigure.
int _detector_id
Detector ID int used to configure DAQ channel map.
unsigned int _secondaryZMax
optional secondary upper z fiducial cut
unsigned int _secondaryZMin
optional secondary lower z fiducial cut
std::string _autoconfigureSliceModuleLabel
label of module making the HitList for use in auto configuration
unsigned int _nDCMsPerDiBlock
Number of DCMs per diblock.
unsigned int _nPlanesPerDiBlock
Number of Planes per diblock.
unsigned int _autoconfigureMinZOffset
The distance from the lower edge set by autoconfigure.
void hits()
Definition: readHits.C:15
unsigned int _nGoodDiblocks
The number of diblocks with all DCMs.
bool _useSecondaryZCuts
Apply the optional secondary z cuts.
static DAQChannelMap * getInstance(int detID)
bool _reconfigure
Force a reconfigure if autoconfigure is enabled.
OStream cout
Definition: OStream.cxx:6
unsigned int _nAutoconfigures
number of times autoconfigure is run
uint32_t diblock_t
Type for diblocks and blocks.
std::string _autoconfigureSliceInstanceLabel
instance label making the HitList for use in auto configuration
unsigned int _zMin
lower z fiducial cut
diblock_t getDiBlock(dchan daqchan) const
Decode the diblock ID from a dchan.
void novaddt::ContainedSlice::endJob ( )
overridevirtual

Reimplemented from art::EDFilter.

Definition at line 558 of file ContainedSlice_module.cc.

References _nAutoconfigures, _nDiblocks, _nEvents, _nFilteredSlices, _nGoodDiblocks, _nSlices, om::cout, DEFINE_ART_MODULE(), and allTimeWatchdog::endl.

559 {
560  std::cout << "--- novaddt::ContainedSlice endJob" << std::endl;
561  std::cout << "\tNumber of events: " << _nEvents << std::endl;
562  std::cout << "\tNumber of slices: " << _nSlices << std::endl;
563  std::cout << "\tNumber of slices filtered: " << _nFilteredSlices << std::endl;
564  std::cout << "\tNumber of autoconfigures: " << _nAutoconfigures << std::endl;
565  std::cout << "\tNumber of DBs with any DCMs:" << _nDiblocks << std::endl;
566  std::cout << "\tNumber of DBs with all DCMs:" << _nGoodDiblocks << std::endl;
567 }
unsigned int _nDiblocks
The total number of diblocks found.
unsigned int _nFilteredSlices
number of slices filtered
unsigned int _nGoodDiblocks
The number of diblocks with all DCMs.
unsigned int _nSlices
number of slices seen
OStream cout
Definition: OStream.cxx:6
unsigned int _nAutoconfigures
number of times autoconfigure is run
unsigned int _nEvents
number of events seen
bool novaddt::ContainedSlice::filter ( art::Event event)
overridevirtual

Implements art::EDFilter.

Definition at line 156 of file ContainedSlice_module.cc.

References _autoconfigure, _autoconfigureInt, _nEvents, _nFilteredSlices, _nSlices, _reconfigure, _sliceInstanceLabel, _sliceModuleLabel, defineContainmentRegion(), and filterForContainedHitLists().

157 {
158  // Implementation of required member function here.
159  //std::cout << "=== novaddt::ContainedSlice filter. Event: "
160  // << event.id().event()
161  // << std::endl;
162  _nEvents++;
163  // make a hit list return
164  std::unique_ptr< std::vector<HitList> > contained_hitlists(new std::vector<HitList>);
165 
166  // autoconfigure
167  if (_autoconfigure &&
168  ( ((_nEvents%_autoconfigureInt) == 0) || (_reconfigure) )
169  ){
170  bool containment_defined = defineContainmentRegion(event);
171 
172  if (!containment_defined){
173  event.put(std::move(contained_hitlists),"ContainedTimeSpaceSlice");
174  return false;
175  }
176  }
177 
178  // get the online ddt slices
180  event.getByLabel(_sliceModuleLabel, _sliceInstanceLabel, slices);
181  //std::cout << "\tgot " << slices->size() << " slices" << std::endl;
182  _nSlices+=slices->size();
183 
184 
185  //printDDTSlices(slices);
186 
187  // filter for contained slices
188  filterForContainedHitLists(slices, contained_hitlists);
189  //std::cout << "\trecording " << contained_hitlists->size() << " contained slices" << std::endl;
190 
191  //put the hits into the event for later use
192  _nFilteredSlices+=contained_hitlists->size();
193  event.put(std::move(contained_hitlists),"ContainedTimeSpaceSlice");
194 
195  //if (contained_hitlists->size() == 0) return false;
196  return true;
197 }
std::string _sliceInstanceLabel
instance label making the HitList
unsigned int _nFilteredSlices
number of slices filtered
bool defineContainmentRegion(art::Event &event)
unsigned int _nSlices
number of slices seen
bool _reconfigure
Force a reconfigure if autoconfigure is enabled.
unsigned int _nEvents
number of events seen
bool _autoconfigure
Autoconfigure z containment cuts.
std::string _sliceModuleLabel
label of module making the HitList
unsigned int _autoconfigureInt
Run autoconfigure after every this number of events.
void filterForContainedHitLists(art::Handle< std::vector< novaddt::HitList > > &ddt_slices, std::unique_ptr< std::vector< HitList > > &contained_hitlists)
void novaddt::ContainedSlice::filterForContainedHitLists ( art::Handle< std::vector< novaddt::HitList > > &  ddt_slices,
std::unique_ptr< std::vector< HitList > > &  contained_hitlists 
)

Definition at line 307 of file ContainedSlice_module.cc.

References _secondaryZMax, _secondaryZMin, _useSecondaryZCuts, _xMax, _xMin, _yMax, _yMin, _zMax, _zMin, febshutoff_auto::end, findBoundingBox(), hits(), MECModelEnuComparisons::i, calib::j, febshutoff_auto::start, novaddt::View::val, novaddt::DAQHit::View(), and daqchannelmap::X_VIEW.

Referenced by filter().

309 {
310  // loop over grouped hit list
311  for(unsigned int i = 0; i < ddt_slices->size(); ++i){
312  novaddt::HitList hits(ddt_slices->at(i));
313  // earliest and latest TDC
314  // sort them
315  //sort(hits.begin(), hits.end(), novaddt::CompareDAQHit<novaddt::TDC>());
316  //int eTDC = hits[0].TDC().val;
317  //int lTDC = hits[hits.size()-1].TDC().val;
318  //unsigned int eTDC = 0;
319  //unsigned int lTDC = 0;
320  //unsigned int ADC_sum = 0;
321  novaddt::HitList xz_hits;
322  novaddt::HitList yz_hits;
323  // loop over hits in each slice
324  for(unsigned int j = 0; j < hits.size(); ++j){
326  //if (j == 0) {
327  //eTDC = hit.TDC().val;
328  //lTDC = hit.TDC().val;
329  //} else {
330  //if (hit.TDC().val < eTDC) eTDC = hit.TDC().val;
331  //if (hit.TDC().val > lTDC) lTDC = hit.TDC().val;
332  //}
333  //ADC_sum = ADC_sum + hit.ADC().val;
334  //std::string view = "y";
335  if( hit.View().val == daqchannelmap::X_VIEW ){
336  xz_hits.push_back(hit);
337  //view = "x";
338  } else {
339  yz_hits.push_back(hit);
340  }
341  //LOG_DEBUG("ContainedSlice") << "\t\t\thit[" << j
342  //<< "]: TDC: " << hit.TDC().val
343  //<< ", ADC: " << hit.ADC().val
344  //<< ", plane: " << hit.Plane().val
345  //<< ", " << view
346  //<< "-cell: " << hit.Cell().val
347  //<< std::endl;
348  } // end of loop on hits
349  TVector3 start(0,0,0);
350  TVector3 end(0,0,0);
351  findBoundingBox(xz_hits, yz_hits, start, end);
352  //LOG_DEBUG("ContainedSlice") << "\t\tHit list[" << i
353  //<< "]: " << hits.size()
354  //<< " hits, TDC: " << eTDC
355  //<< " - " << lTDC
356  //<< ", ADC sum: " << ADC_sum
357  //<< ", x: " << start.X()
358  //<< " - " << end.X()
359  //<< ", y: " << start.Y()
360  //<< " - " << end.Y()
361  //<< ", z: " << start.Z()
362  //<< " - " << end.Z()
363  //<< std::endl;
364  // containment
365  // x
366  if ((start.X() < _xMin) || (start.X() > _xMax) ||
367  (end.X() < _xMin) || (end.X() > _xMax)){
368  //LOG_DEBUG("ContainedSlice") << "\t\t - failed due to x-containment" << std::endl;
369  continue;
370  }
371  // y
372  if ((start.Y() < _yMin) || (start.Y() > _yMax) ||
373  (end.Y() < _yMin) || (end.Y() > _yMax)){
374  //LOG_DEBUG("ContainedSlice") << "\t\t - failed due to y-containment" << std::endl;
375  continue;
376  }
377  // z
378  if (_useSecondaryZCuts){
379  if (((start.Z() < _zMin) || (start.Z() > _zMax) ||
380  (end.Z() < _zMin) || (end.Z() > _zMax)) &&
381  ((start.Z() < _secondaryZMin) || (start.Z() > _secondaryZMax) ||
382  (end.Z() < _secondaryZMin) || (end.Z() > _secondaryZMax)))
383  {
384  //LOG_DEBUG("ContainedSlice") << "\t\t - failed due to z-containment" << std::endl;
385  continue;
386  }
387  } else {
388  if ((start.Z() < _zMin) || (start.Z() > _zMax) ||
389  (end.Z() < _zMin) || (end.Z() > _zMax)){
390  //LOG_DEBUG("ContainedSlice") << "\t\t - failed due to z-containment" << std::endl;
391  continue;
392  }
393  }
394 
395  // if we reach here then we're contained
396  //LOG_DEBUG("ContainedSlice") << "\t\tslice " << i << " is contained (" << hits.size() << " hits)" << std::endl;
397  contained_hitlists->push_back(hits);
398  } // end of loop on hit lists
399 }
float _yMax
upper y fiducial cut
unsigned int _zMax
upper z fiducial cut
void findBoundingBox(novaddt::HitList &xz_hits, novaddt::HitList &yz_hits, TVector3 &start, TVector3 &end)
std::vector< DAQHit > HitList
Definition: HitList.h:15
float _xMax
upper x fiducial cut
unsigned int _secondaryZMax
optional secondary upper z fiducial cut
unsigned int _secondaryZMin
optional secondary lower z fiducial cut
void hits()
Definition: readHits.C:15
bool _useSecondaryZCuts
Apply the optional secondary z cuts.
Identifier for the X measuring view of the detector (top)
const double j
Definition: BetheBloch.cxx:29
float _yMin
lower y fiducial cut
float _xMin
lower x fiducial cut
Definition: structs.h:12
unsigned int _zMin
lower z fiducial cut
void novaddt::ContainedSlice::findBoundingBox ( novaddt::HitList xz_hits,
novaddt::HitList yz_hits,
TVector3 &  start,
TVector3 &  end 
)

Definition at line 251 of file ContainedSlice_module.cc.

References std::max(), and std::min().

Referenced by filterForContainedHitLists(), and printDDTSlices().

254 {
255  //if (_verbose) std::cout << "finding bounding box, "
256  //<< xz_hits.size() << " xz hits, "
257  //<< yz_hits.size() << " yz hits"
258  //<< std::endl;
259  // find z boundaries
260  // default to the mid point
261  int xz_z_min = 448;
262  int xz_z_max = 448;
263  int xz_x_min = 192;
264  int xz_x_max = 192;
265  if (xz_hits.size() > 0){
266  xz_z_min = xz_hits[0].Plane().val;
267  xz_z_max = xz_hits[0].Plane().val;
268  xz_x_min = xz_hits[0].Cell().val;
269  xz_x_max = xz_hits[0].Cell().val;
270  }
271  for (auto const& hit : xz_hits){
272  if (hit.Plane().val < xz_z_min) xz_z_min = hit.Plane().val;
273  if (hit.Plane().val > xz_z_max) xz_z_max = hit.Plane().val;
274  if (hit.Cell().val < xz_x_min) xz_x_min = hit.Cell().val;
275  if (hit.Cell().val > xz_x_max) xz_x_max = hit.Cell().val;
276  }
277 
278  int yz_z_min = 448;
279  int yz_z_max = 448;
280  int yz_y_min = 192;
281  int yz_y_max = 192;
282  if (yz_hits.size() > 0){
283  yz_z_min = yz_hits[0].Plane().val;
284  yz_z_max = yz_hits[0].Plane().val;
285  yz_y_min = yz_hits[0].Cell().val;
286  yz_y_max = yz_hits[0].Cell().val;
287  }
288  for (auto const& hit : yz_hits){
289  if (hit.Plane().val < yz_z_min) yz_z_min = hit.Plane().val;
290  if (hit.Plane().val > yz_z_max) yz_z_max = hit.Plane().val;
291  if (hit.Cell().val < yz_y_min) yz_y_min = hit.Cell().val;
292  if (hit.Cell().val > yz_y_max) yz_y_max = hit.Cell().val;
293  }
294 
295  int z_min = std::min(xz_z_min,yz_z_min);
296  int z_max = std::max(xz_z_max,yz_z_max);
297 
298  start.SetXYZ( double (xz_x_min),
299  double (yz_y_min),
300  double (z_min));
301  end.SetXYZ( double (xz_x_max),
302  double (yz_y_max),
303  double (z_max));
304  return;
305 }
T max(const caf::Proxy< T > &a, T b)
Definition: structs.h:12
T min(const caf::Proxy< T > &a, T b)
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  }
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
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
void novaddt::ContainedSlice::printDDTSlices ( art::Handle< std::vector< novaddt::HitList > > &  ddt_slices)

Definition at line 199 of file ContainedSlice_module.cc.

References novaddt::DAQHit::ADC(), febshutoff_auto::end, allTimeWatchdog::endl, findBoundingBox(), hits(), MECModelEnuComparisons::i, calib::j, LOG_DEBUG, febshutoff_auto::start, string, novaddt::ADC::val, novaddt::View::val, POTSpillRate::view, novaddt::DAQHit::View(), and daqchannelmap::X_VIEW.

200 {
201  // loop over grouped hit list
202  for(unsigned int i = 0; i < ddt_slices->size(); ++i){
203  novaddt::HitList hits(ddt_slices->at(i));
204  // sort them
205  sort(hits.begin(), hits.end(), novaddt::CompareDAQHit<novaddt::TDC>());
206  // earliest and latest TDC
207  int eTDC = hits[0].TDC().val;
208  int lTDC = hits[hits.size()-1].TDC().val;
209  int ADC_sum = 0.;
210  novaddt::HitList xz_hits;
211  novaddt::HitList yz_hits;
212  // loop over hits in each slice
213  for(unsigned int j = 0; j < hits.size(); ++j){
215  ADC_sum = ADC_sum + hit.ADC().val;
216  std::string view = "y";
217  if( hit.View().val == daqchannelmap::X_VIEW ){
218  xz_hits.push_back(hit);
219  view = "x";
220  } else {
221  yz_hits.push_back(hit);
222  }
223  //LOG_DEBUG("ContainedSlice") << "\t\t\thit[" << j
224  //<< "]: TDC: " << hit.TDC().val
225  //<< ", ADC: " << hit.ADC().val
226  //<< ", plane: " << hit.Plane().val
227  //<< ", " << view
228  //<< "-cell: " << hit.Cell().val
229  //<< std::endl;
230  } // end of loop on hits
231  TVector3 start(0,0,0);
232  TVector3 end(0,0,0);
233  findBoundingBox(xz_hits, yz_hits, start, end);
234  // print them
235  LOG_DEBUG("ContainedSlice") << "\t\tHit list[" << i
236  << "]: " << hits.size()
237  << " hits, TDC: " << eTDC
238  << " - " << lTDC
239  << ", ADC sum: " << ADC_sum
240  << ", x: " << start.X()
241  << " - " << end.X()
242  << ", y: " << start.Y()
243  << " - " << end.Y()
244  << ", z: " << start.Z()
245  << " - " << end.Z()
246  << std::endl;
247 
248  } // end of loop on sliced hits
249 }
#define LOG_DEBUG(stream)
Definition: Messenger.h:149
void findBoundingBox(novaddt::HitList &xz_hits, novaddt::HitList &yz_hits, TVector3 &start, TVector3 &end)
std::vector< DAQHit > HitList
Definition: HitList.h:15
void hits()
Definition: readHits.C:15
Identifier for the X measuring view of the detector (top)
const double j
Definition: BetheBloch.cxx:29
Definition: structs.h:12
enum BeamMode string
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

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

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

Definition at line 542 of file ContainedSlice_module.cc.

References _reconfigure, _secondaryZMax, _secondaryZMin, _useSecondaryZCuts, _verbose, _zMax, _zMin, om::cout, and allTimeWatchdog::endl.

Referenced by defineContainmentRegion().

543 {
544  _zMin = 0;
545  _zMax = 0;
546  _useSecondaryZCuts = false;
547  _secondaryZMin = 0;
548  _secondaryZMax = 0;
549  _reconfigure = true;
550  if (_verbose){
551  std::cout << "Zero-ed fiducial volume to: " << std::endl;
552  std::cout << "\t Z fiducial cuts: " << _zMin << " to " << _zMax << std::endl;
553  std::cout << "\t Use secondary z cuts: " << _useSecondaryZCuts << std::endl;
554  std::cout << "\t Secondary Z fiducial cuts: " << _secondaryZMin << " to " << _secondaryZMax << std::endl;
555  }
556 }
unsigned int _zMax
upper z fiducial cut
bool _verbose
Turn on verbose mode.
unsigned int _secondaryZMax
optional secondary upper z fiducial cut
unsigned int _secondaryZMin
optional secondary lower z fiducial cut
bool _useSecondaryZCuts
Apply the optional secondary z cuts.
bool _reconfigure
Force a reconfigure if autoconfigure is enabled.
OStream cout
Definition: OStream.cxx:6
unsigned int _zMin
lower z fiducial cut

Member Data Documentation

bool novaddt::ContainedSlice::_autoconfigure
private

Autoconfigure z containment cuts.

Definition at line 54 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filter().

unsigned int novaddt::ContainedSlice::_autoconfigureInt
private

Run autoconfigure after every this number of events.

Definition at line 57 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filter().

unsigned int novaddt::ContainedSlice::_autoconfigureMaxZOffset
private

The distance from the upper edge set by autoconfigure.

Definition at line 56 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

unsigned int novaddt::ContainedSlice::_autoconfigureMinZOffset
private

The distance from the lower edge set by autoconfigure.

Definition at line 55 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

std::string novaddt::ContainedSlice::_autoconfigureSliceInstanceLabel
private

instance label making the HitList for use in auto configuration

Definition at line 61 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

std::string novaddt::ContainedSlice::_autoconfigureSliceModuleLabel
private

label of module making the HitList for use in auto configuration

Definition at line 60 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

std::string novaddt::ContainedSlice::_detector
private

Detector ID, can be one of FD, ND or NDOS.

Definition at line 58 of file ContainedSlice_module.cc.

Referenced by ContainedSlice().

int novaddt::ContainedSlice::_detector_id
private

Detector ID int used to configure DAQ channel map.

Definition at line 59 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

unsigned int novaddt::ContainedSlice::_nAutoconfigures = 0
private

number of times autoconfigure is run

Definition at line 71 of file ContainedSlice_module.cc.

Referenced by defineContainmentRegion(), and endJob().

unsigned int novaddt::ContainedSlice::_nDCMsPerDiBlock
private

Number of DCMs per diblock.

Definition at line 65 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

unsigned int novaddt::ContainedSlice::_nDiblocks = 0
private

The total number of diblocks found.

Definition at line 72 of file ContainedSlice_module.cc.

Referenced by defineContainmentRegion(), and endJob().

unsigned int novaddt::ContainedSlice::_nEvents = 0
private

number of events seen

Definition at line 68 of file ContainedSlice_module.cc.

Referenced by endJob(), and filter().

unsigned int novaddt::ContainedSlice::_nFilteredSlices = 0
private

number of slices filtered

Definition at line 70 of file ContainedSlice_module.cc.

Referenced by endJob(), and filter().

unsigned int novaddt::ContainedSlice::_nGoodDiblocks = 0
private

The number of diblocks with all DCMs.

Definition at line 73 of file ContainedSlice_module.cc.

Referenced by defineContainmentRegion(), and endJob().

unsigned int novaddt::ContainedSlice::_nPlanesPerDiBlock
private

Number of Planes per diblock.

Definition at line 66 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and defineContainmentRegion().

unsigned int novaddt::ContainedSlice::_nSlices = 0
private

number of slices seen

Definition at line 69 of file ContainedSlice_module.cc.

Referenced by endJob(), and filter().

bool novaddt::ContainedSlice::_reconfigure = true
private

Force a reconfigure if autoconfigure is enabled.

Definition at line 64 of file ContainedSlice_module.cc.

Referenced by beginRun(), beginSubRun(), defineContainmentRegion(), filter(), and zeroCuts().

unsigned int novaddt::ContainedSlice::_secondaryZMax
private

optional secondary upper z fiducial cut

Definition at line 52 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), defineContainmentRegion(), filterForContainedHitLists(), and zeroCuts().

unsigned int novaddt::ContainedSlice::_secondaryZMin
private

optional secondary lower z fiducial cut

Definition at line 51 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), defineContainmentRegion(), filterForContainedHitLists(), and zeroCuts().

std::string novaddt::ContainedSlice::_sliceInstanceLabel
private

instance label making the HitList

Definition at line 44 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filter().

std::string novaddt::ContainedSlice::_sliceModuleLabel
private

label of module making the HitList

Definition at line 43 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filter().

bool novaddt::ContainedSlice::_useSecondaryZCuts
private

Apply the optional secondary z cuts.

Definition at line 53 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), defineContainmentRegion(), filterForContainedHitLists(), and zeroCuts().

bool novaddt::ContainedSlice::_verbose
private

Turn on verbose mode.

Definition at line 62 of file ContainedSlice_module.cc.

Referenced by beginRun(), beginSubRun(), ContainedSlice(), defineContainmentRegion(), and zeroCuts().

float novaddt::ContainedSlice::_xMax
private

upper x fiducial cut

Definition at line 46 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filterForContainedHitLists().

float novaddt::ContainedSlice::_xMin
private

lower x fiducial cut

Definition at line 45 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filterForContainedHitLists().

float novaddt::ContainedSlice::_yMax
private

upper y fiducial cut

Definition at line 48 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filterForContainedHitLists().

float novaddt::ContainedSlice::_yMin
private

lower y fiducial cut

Definition at line 47 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), and filterForContainedHitLists().

unsigned int novaddt::ContainedSlice::_zMax
private

upper z fiducial cut

Definition at line 50 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), defineContainmentRegion(), filterForContainedHitLists(), and zeroCuts().

unsigned int novaddt::ContainedSlice::_zMin
private

lower z fiducial cut

Definition at line 49 of file ContainedSlice_module.cc.

Referenced by ContainedSlice(), defineContainmentRegion(), filterForContainedHitLists(), and zeroCuts().

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

Definition at line 33 of file EDFilter.h.

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

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

Definition at line 32 of file EDFilter.h.

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


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