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

 FindSwappedChannels (fhicl::ParameterSet const &p)
 
 FindSwappedChannels (FindSwappedChannels const &)=delete
 
 FindSwappedChannels (FindSwappedChannels &&)=delete
 
FindSwappedChannelsoperator= (FindSwappedChannels const &)=delete
 
FindSwappedChannelsoperator= (FindSwappedChannels &&)=delete
 
bool filter (art::Event &e) override
 
void reconfigure (fhicl::ParameterSet const &p)
 
virtual void beginJob () override
 
virtual bool beginSubRun (art::SubRun &sr)
 
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 Member Functions

bool fill_hist_and_tree (std::vector< geo::OfflineChan > &hits, rb::HitMap &hmap, TH2F *missing_hits_plane_and_cell, TH2F *missing_hits_with_neighbor_hits_plane_and_cell, TNtuple *missing_hits_DiBlock_DCM_and_FEB, TNtuple *missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB, daqchannelmap::DAQChannelMap *daqcmap, int verbose, int idet, int fFillTree)
 
bool IsBad (geo::OfflineChan chan)
 

Private Attributes

std::string fTrackLabel
 
std::vector< std::stringfKnownSwappedChannelsString
 
std::string fDetId
 
int fVerbose
 
int fFillTree
 
int fMaxPlane
 
int fMaxCell
 
std::vector< geo::OfflineChanfKnownSwappedChannels
 
int run
 
int subrun
 
int event
 
int slice
 
TH2F * missing_hits_plane_and_cell_XZ
 
TH2F * missing_hits_with_neighbor_hits_plane_and_cell_XZ
 
TH2F * missing_hits_plane_and_cell_YZ
 
TH2F * missing_hits_with_neighbor_hits_plane_and_cell_YZ
 
TNtuple * missing_hits_DiBlock_DCM_and_FEB
 
TNtuple * missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB
 

Detailed Description

Definition at line 46 of file FindSwappedChannels_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

chaninfo::FindSwappedChannels::FindSwappedChannels ( fhicl::ParameterSet const &  p)
explicit

Definition at line 74 of file FindSwappedChannels_module.cc.

75  :
76  fTrackLabel( p.get< std::string >("TrackLabel")),
77  fKnownSwappedChannelsString( p.get<std::vector<std::string> >("KnownSwappedChannels")),
78  fDetId( p.get< std::string >("DetId")),
79  fVerbose( p.get< int >("Verbose")),
80  fFillTree( p.get< int >("FillTree")),
81  fMaxPlane( p.get< int >("MaxPlane")),
82  fMaxCell( p.get< int >("MaxCell"))
83 {
84  // Call appropriate produces<>() functions here.
85 }
const char * p
Definition: xmltok.h:285
std::vector< std::string > fKnownSwappedChannelsString
enum BeamMode string
chaninfo::FindSwappedChannels::FindSwappedChannels ( FindSwappedChannels const &  )
delete
chaninfo::FindSwappedChannels::FindSwappedChannels ( FindSwappedChannels &&  )
delete

Member Function Documentation

void chaninfo::FindSwappedChannels::beginJob ( )
overridevirtual

Reimplemented from art::EDFilter.

Definition at line 86 of file FindSwappedChannels_module.cc.

References fMaxCell, fMaxPlane, art::TFileDirectory::make(), missing_hits_plane_and_cell_XZ, missing_hits_plane_and_cell_YZ, missing_hits_with_neighbor_hits_plane_and_cell_XZ, and missing_hits_with_neighbor_hits_plane_and_cell_YZ.

87 {
89  missing_hits_plane_and_cell_XZ = tfs->make<TH2F>("missing_hits_plane_and_cell_XZ", "XZ;Plane;Cell", fMaxPlane, 0, fMaxPlane, fMaxCell, 0, fMaxCell);
90  missing_hits_with_neighbor_hits_plane_and_cell_XZ = tfs->make<TH2F>("missing_hits_with_neighbor_hits_plane_and_cell_XZ", "XZ;Plane;Cell", fMaxPlane, 0, fMaxPlane, fMaxCell, 0, fMaxCell);
91  missing_hits_plane_and_cell_YZ = tfs->make<TH2F>("missing_hits_plane_and_cell_YZ", "YZ;Plane;Cell", fMaxPlane, 0, fMaxPlane, fMaxCell, 0, fMaxCell);
92  missing_hits_with_neighbor_hits_plane_and_cell_YZ = tfs->make<TH2F>("missing_hits_with_neighbor_hits_plane_and_cell_YZ", "YZ;Plane;Cell", fMaxPlane, 0, fMaxPlane, fMaxCell, 0, fMaxCell);
93  //missing_hits_DiBlock_DCM_and_FEB = tfs->make<TNtuple>("missing_hits_DiBlock_DCM_and_FEB", "missing_hits_DiBlock_DCM_and_FEB","DiBlock:DCM:FEB");
94  //missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB = tfs->make<TNtuple>("missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB", "missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB","DiBlock:DCM:FEB");
95 }
T * make(ARGS...args) const
bool chaninfo::FindSwappedChannels::beginSubRun ( art::SubRun sr)
virtual

Reimplemented from art::EDFilter.

Definition at line 96 of file FindSwappedChannels_module.cc.

References getBrightness::cell, visualisationForPaperMasterPlot::cmap, febshutoff_auto::db, febshutoff_auto::dcm, runNovaSAM::detId, daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), APDHVSetting::feb, fKnownSwappedChannels, fKnownSwappedChannelsString, daqchannelmap::DAQChannelMap::getCell(), daqchannelmap::DAQChannelMap::getPlane(), cmap::dataprov::CMap::Map(), and NDAPDHVSetting::plane.

96  {
97  int db, dcm, feb, detId;
98 // std::cout<<"before cmap" <<std::endl;
99 // int idet = novadaq::cnv::DetInfo::GetId(fDetId);
100 // daqchannelmap::DAQChannelMap* daqcmap = daqchannelmap::DAQChannelMap::getInstance(idet);
102 // std::cout<<"after cmap" <<std::endl;
103 // for (auto k : fKnownSwappedChannelsString) {
104 // std::cout<< k<<std::endl;
105 // }
106  for (auto k : fKnownSwappedChannelsString) {
107  sscanf(k.c_str(),"%d-%02d-%02d-%02d",&detId,&db,&dcm,&feb);
108  for (int ipix=0; ipix<32; ++ipix) {
110  //daqchannelmap::dchan daqChan = far_det_cmap.encodeDChan(detId,db,dcm,feb,ipix);
111  daqchannelmap::dchan daqChan = cmap->Map()->encodeDChan(detId,db,dcm,feb,ipix);
112  //std::cout<<"Sanity check: "<<std::endl;
113 // std::cout<<cmap->Map()->getDetector(daqChan)<<" "<<cmap->Map()->getDiBlock(daqChan)<<" "<<cmap->Map()->getDCM(daqChan)<<" "<<cmap->Map()->getFEB(daqChan)<<" "<<cmap->Map()->getPixel(daqChan)<<" "<<std::endl;
114  //daqchannelmap::dchan logChan = far_det_cmap.encodeLChan(daqChan);
115  daqchannelmap::dchan logChan = cmap->Map()->encodeLChan(daqChan);
116  int plane = far_det_cmap.getPlane(logChan);
117  int cell = far_det_cmap.getCell(logChan);
118  //std::cout<<"p:"<<plane<<" c:"<<cell<<std::endl;
119  //int plane = cmap->Map()->getPlane(logChan);
120  //int cell = cmap->Map()->getCell(logChan);
121  fKnownSwappedChannels.push_back(geo::OfflineChan(plane,cell));
122  }
123  }
124  return true;
125 }
const daqchannelmap::DAQChannelMap * Map() const
Definition: CMap.h:57
cell_t getCell(lchan logicalchan) const
Decode the cell number from an lchan.
lchan encodeLChan(int detId, plane_t plane, cell_t cell) const
std::vector< std::string > fKnownSwappedChannelsString
std::vector< geo::OfflineChan > fKnownSwappedChannels
A (plane, cell) pair.
Definition: OfflineChan.h:17
plane_t getPlane(lchan logicalchan) const
Decode the plane number from an lchan.
dchan encodeDChan(int detID, diblock_t diblock, dcm_id_t dcm, feb_t feb, pixel_t pixel) const
uint32_t dchan
< DAQ Channel Map Package
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 chaninfo::FindSwappedChannels::fill_hist_and_tree ( std::vector< geo::OfflineChan > &  hits,
rb::HitMap hmap,
TH2F *  missing_hits_plane_and_cell,
TH2F *  missing_hits_with_neighbor_hits_plane_and_cell,
TNtuple *  missing_hits_DiBlock_DCM_and_FEB,
TNtuple *  missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB,
daqchannelmap::DAQChannelMap daqcmap,
int  verbose,
int  idet,
int  fFillTree 
)
private

Definition at line 184 of file FindSwappedChannels_module.cc.

References getBrightness::cell, rb::HitMap::CellExists(), om::cout, febshutoff_auto::db, febshutoff_auto::dcm, daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), allTimeWatchdog::endl, APDHVSetting::feb, fMaxCell, fMaxPlane, daqchannelmap::DAQChannelMap::getCell(), daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getPixel(), daqchannelmap::DAQChannelMap::getPlane(), IsBad(), getGoodRuns4SAM::n, NDAPDHVSetting::plane, and fillBadChanDBTables::result.

Referenced by filter().

184  {
185  bool result = false;
186  for (auto hit : hits) {
187  if (IsBad(hit)) {
188  result = true;
189  const unsigned int plane = hit.Plane();
190  const unsigned int cell = hit.Cell();
191  std::cout<<"hit at p:"<<plane<<" c:"<<cell<<" z:"<<plane*1.0/fMaxPlane*5962<<" w:"<<cell*1.0/fMaxCell*(765+758)-758<<std::endl;
192  continue;
193  }
194  }
195  for(unsigned int n = 0; n < hits.size(); ++n){
196  const unsigned int plane = hits[n].Plane();
197  const unsigned int cell = hits[n].Cell();
198  if(verbose == 1)
199  std::cout<<"cellhit at plane: "<<plane <<" cell: "<<cell<<std::endl;
200  if(hmap.CellExists(plane, cell)){
201  if(verbose == 1)
202  std::cout<<"left hit"<<std::endl;
203  }
204  else{
205  if(verbose == 1)
206  std::cout<<"didn't left hit"<<std::endl;
207  missing_hits_plane_and_cell->Fill(plane,cell);
208  //int plane, cell;
209  int db, dcm, feb, pixel;
210  daqchannelmap::lchan logChan = daqcmap->encodeLChan(idet,plane,cell);
211  daqchannelmap::dchan daqChan = daqcmap->encodeDChan(logChan);
212  db = daqcmap->getDiBlock(daqChan);
213  dcm = daqcmap->getDCM(daqChan);
214  feb = daqcmap->getFEB(daqChan);
215  if(fillTree != 0)
216  missing_hits_DiBlock_DCM_and_FEB->Fill(db, dcm, feb);
217  //same db, dcm , neighbor feb, same pixel?
218  pixel = daqcmap->getPixel(daqChan);
219  unsigned int nbplane, nbcell;
220  if(feb>0){
221  daqChan = daqcmap->encodeDChan(idet,db,dcm,feb-1,pixel);
222  logChan = daqcmap->encodeLChan(daqChan);
223  nbplane = daqcmap->getPlane(logChan);
224  nbcell = daqcmap->getCell(logChan);
225  if( hmap.CellExists(nbplane, nbcell)){
226  if(verbose == 1)
227  std::cout<<"neighbor hit exist at plane: "<<nbplane <<" cell: "<<nbcell<<std::endl;
228  missing_hits_with_neighbor_hits_plane_and_cell->Fill(plane,cell);
229  if(fillTree != 0)
231  }
232  //count the number of times this happened for this idet,db,dcm,feb, then count the frequency for this. pick out high frequency idet,db,dcm,feb
233  //or the percentage that missing hits and have neighbor hit
234  }
235  if(feb<63){
236  daqChan = daqcmap->encodeDChan(idet,db,dcm,feb+1,pixel);
237  logChan = daqcmap->encodeLChan(daqChan);
238  nbplane = daqcmap->getPlane(logChan);
239  nbcell = daqcmap->getCell(logChan);
240  if(hmap.CellExists(nbplane, nbcell)){
241  if(verbose == 1)
242  std::cout<<"neighbor hit exist at plane: "<<nbplane <<" cell: "<<nbcell<<std::endl;
243  missing_hits_with_neighbor_hits_plane_and_cell->Fill(plane,cell);
244  if(fillTree != 0)
246  }
247  }
248  }
249  }
250  return result;
251 }
cell_t getCell(lchan logicalchan) const
Decode the cell number from an lchan.
lchan encodeLChan(int detId, plane_t plane, cell_t cell) const
void hits()
Definition: readHits.C:15
OStream cout
Definition: OStream.cxx:6
pixel_t getPixel(dchan daqchan) const
Decode the pixel id from a dchan.
Definition: structs.h:12
plane_t getPlane(lchan logicalchan) const
Decode the plane number from an lchan.
dcm_id_t getDCM(dchan daqchan) const
Decode the dcm ID from a dchan.
dchan encodeDChan(int detID, diblock_t diblock, dcm_id_t dcm, feb_t feb, pixel_t pixel) const
bool CellExists(unsigned int planeIdx, unsigned int cellIdx) const
Does the map contain any cell at this position?
Definition: HitMap.cxx:81
uint32_t dchan
< DAQ Channel Map Package
diblock_t getDiBlock(dchan daqchan) const
Decode the diblock ID from a dchan.
feb_t getFEB(dchan daqchan) const
Decode the feb id from a dchan.
bool chaninfo::FindSwappedChannels::filter ( art::Event e)
overridevirtual

Implements art::EDFilter.

Definition at line 127 of file FindSwappedChannels_module.cc.

References geo::GeometryBase::CountCellsOnLineFast(), om::cout, allTimeWatchdog::endl, art::Event::event(), exit(), art::Handle< T >::failedToGet(), fDetId, fFillTree, fill_hist_and_tree(), fTrackLabel, fVerbose, art::DataViewImpl::getByLabel(), novadaq::cnv::DetInfo::GetId(), daqchannelmap::DAQChannelMap::getInstance(), MECModelEnuComparisons::i, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, missing_hits_DiBlock_DCM_and_FEB, missing_hits_plane_and_cell_XZ, missing_hits_plane_and_cell_YZ, missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB, missing_hits_with_neighbor_hits_plane_and_cell_XZ, missing_hits_with_neighbor_hits_plane_and_cell_YZ, art::PtrVector< T >::push_back(), fillBadChanDBTables::result, art::Event::run(), art::PtrVector< T >::size(), subrun, and art::Event::subRun().

128 {
130  bool result = false;
131  run = e.run();
132  subrun = e.subRun();
133  event = e.event();
135  if (idet != novadaq::cnv::kFARDET && idet != novadaq::cnv::kNEARDET) {
136  std::cout << "No information available for " << fDetId << " at this time" << std::endl;
137  exit(0);
138  }
140  // Implementation of required member function here.
142  e.getByLabel(fTrackLabel, trackHandle);
143  if(trackHandle.failedToGet()){
144  std::cout<<"No tracks found, skipping event" << std::endl;
145  return false;
146  }
148  if(fVerbose == 1)
149  std::cout<<"Number of tracks in event: "<< trackHandle->size()<<std::endl;
150  for(unsigned int k=0; k<trackHandle->size(); ++k){
151  tracks.push_back(art::Ptr<rb::Track>(trackHandle, k));
152  }
153  for(unsigned int i = 0; i < tracks.size(); ++i){//loop over tracks
154  //Look at trajectory_points;
155  //First check if all trajectory points(convert to plane and cell) have hits
156  //if missing hits, check if the plane and cell's DCM other ports have hits.
157  unsigned int track = i+1;
158  if(fVerbose == 1)
159  std::cout<<"track: "<<run<<" "<<subrun<<" "<<event<<" "<<track<<std::endl;
160  rb::HitMap hmap(tracks[i].get());
161  std::vector<geo::OfflineChan> xhits, yhits;
162  geo->CountCellsOnLineFast(tracks[i]->Start(), tracks[i]->Stop(), xhits, yhits);
163  if(tracks[i]->NXCell() > 2){
165  result = true;
166  std::cout<<"track: "<<run<<" "<<subrun<<" "<<event<<" "<<track<<std::endl;
167  }
168  }
169  if(tracks[i]->NYCell() > 2){
171  result = true;
172  std::cout<<"track: "<<run<<" "<<subrun<<" "<<event<<" "<<track<<std::endl;
173  }
174  }
175  }
176  return result;
177 }
SubRunNumber_t subRun() const
Definition: Event.h:72
Definition: event.h:19
void CountCellsOnLineFast(double x1, double y1, double z1, double x2, double y2, double z2, std::vector< OfflineChan > &Xhitsonline, std::vector< OfflineChan > &Yhitsonline)
Make list of cells in each view traversed by a line segment.
Provides efficient lookup of CellHits by plane and cell number.
Definition: HitMap.h:22
Far Detector at Ash River, MN.
static DAQChannelMap * getInstance(int detID)
void push_back(Ptr< U > const &p)
Definition: PtrVector.h:441
Near Detector in the NuMI cavern.
EventNumber_t event() const
Definition: Event.h:67
Definition: run.py:1
size_type size() const
Definition: PtrVector.h:308
OStream cout
Definition: OStream.cxx:6
static int GetId(std::string name)
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
exit(0)
RunNumber_t run() const
Definition: Event.h:77
Helper for AttenCurve.
Definition: Path.h:10
bool failedToGet() const
Definition: Handle.h:196
bool fill_hist_and_tree(std::vector< geo::OfflineChan > &hits, rb::HitMap &hmap, TH2F *missing_hits_plane_and_cell, TH2F *missing_hits_with_neighbor_hits_plane_and_cell, TNtuple *missing_hits_DiBlock_DCM_and_FEB, TNtuple *missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB, daqchannelmap::DAQChannelMap *daqcmap, int verbose, int idet, int fFillTree)
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  }
bool chaninfo::FindSwappedChannels::IsBad ( geo::OfflineChan  chan)
private

Definition at line 253 of file FindSwappedChannels_module.cc.

References DEFINE_ART_MODULE(), and fKnownSwappedChannels.

Referenced by fill_hist_and_tree().

253  {
254  for (auto ksc : fKnownSwappedChannels){
255  if (ksc == chan)
256  return true;
257  }
258  return false;
259 }
std::vector< geo::OfflineChan > fKnownSwappedChannels
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
FindSwappedChannels& chaninfo::FindSwappedChannels::operator= ( FindSwappedChannels const &  )
delete
FindSwappedChannels& chaninfo::FindSwappedChannels::operator= ( FindSwappedChannels &&  )
delete
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
void chaninfo::FindSwappedChannels::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 179 of file FindSwappedChannels_module.cc.

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

180 {
181  fTrackLabel = p.get< std::string >("TrackLabel");
182 }
const char * p
Definition: xmltok.h:285
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

Member Data Documentation

int chaninfo::FindSwappedChannels::event
private

Definition at line 67 of file FindSwappedChannels_module.cc.

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

Definition at line 33 of file EDFilter.h.

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

std::string chaninfo::FindSwappedChannels::fDetId
private

Definition at line 62 of file FindSwappedChannels_module.cc.

Referenced by filter().

int chaninfo::FindSwappedChannels::fFillTree
private

Definition at line 64 of file FindSwappedChannels_module.cc.

Referenced by filter().

std::vector<geo::OfflineChan> chaninfo::FindSwappedChannels::fKnownSwappedChannels
private

Definition at line 66 of file FindSwappedChannels_module.cc.

Referenced by beginSubRun(), and IsBad().

std::vector<std::string> chaninfo::FindSwappedChannels::fKnownSwappedChannelsString
private

Definition at line 61 of file FindSwappedChannels_module.cc.

Referenced by beginSubRun().

int chaninfo::FindSwappedChannels::fMaxCell
private

Definition at line 65 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and fill_hist_and_tree().

int chaninfo::FindSwappedChannels::fMaxPlane
private

Definition at line 65 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and fill_hist_and_tree().

std::string chaninfo::FindSwappedChannels::fTrackLabel
private

Definition at line 60 of file FindSwappedChannels_module.cc.

Referenced by filter(), and reconfigure().

int chaninfo::FindSwappedChannels::fVerbose
private

Definition at line 63 of file FindSwappedChannels_module.cc.

Referenced by filter().

TNtuple* chaninfo::FindSwappedChannels::missing_hits_DiBlock_DCM_and_FEB
private

Definition at line 70 of file FindSwappedChannels_module.cc.

Referenced by filter().

TH2F* chaninfo::FindSwappedChannels::missing_hits_plane_and_cell_XZ
private

Definition at line 68 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and filter().

TH2F* chaninfo::FindSwappedChannels::missing_hits_plane_and_cell_YZ
private

Definition at line 69 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and filter().

TNtuple * chaninfo::FindSwappedChannels::missing_hits_with_neighbor_hits_DiBlock_DCM_and_FEB
private

Definition at line 70 of file FindSwappedChannels_module.cc.

Referenced by filter().

TH2F * chaninfo::FindSwappedChannels::missing_hits_with_neighbor_hits_plane_and_cell_XZ
private

Definition at line 68 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and filter().

TH2F * chaninfo::FindSwappedChannels::missing_hits_with_neighbor_hits_plane_and_cell_YZ
private

Definition at line 69 of file FindSwappedChannels_module.cc.

Referenced by beginJob(), and filter().

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

Definition at line 32 of file EDFilter.h.

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

int chaninfo::FindSwappedChannels::run
private
int chaninfo::FindSwappedChannels::slice
private

Definition at line 67 of file FindSwappedChannels_module.cc.

int chaninfo::FindSwappedChannels::subrun
private

Definition at line 67 of file FindSwappedChannels_module.cc.

Referenced by filter().


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