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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 BadChanValidate (fhicl::ParameterSet const &p)
 
 BadChanValidate (BadChanValidate const &)=delete
 
 BadChanValidate (BadChanValidate &&)=delete
 
void analyze (art::Event const &e) override
 
void beginRun (art::Run const &r) override
 
void beginSubRun (art::SubRun const &sr) override
 
void endSubRun (art::SubRun const &sr) override
 
void reconfigure (fhicl::ParameterSet const &p)
 
std::string workerType () const
 
bool modifiesEvent () const
 
void registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
art::Handle< art::TriggerResultsgetTriggerResults (Event const &e) const
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TmayConsumeView (InputTag const &it)
 
base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label)
 
seed_t get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1)
 

Static Public Member Functions

static cet::exempt_ptr< Consumernon_module_context ()
 

Protected Member Functions

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

Private Member Functions

void BadChansFromDB ()
 
void BadChansFromOM ()
 
void OnmonNameFor (std::string fname)
 

Private Attributes

int fADCLowCut
 
int fADCHighCut
 
int fNOnmonReleases
 
unsigned int fRun
 
unsigned int fSubrun
 
int fNpass = 0
 
std::string fOnmonFilename
 
std::string fRawDigitLabel
 
TH2F * fDBMaskHist
 
TH2F * fOMMaskHist
 
TH2F * fDBMinusOM
 
novadaq::cnv::DetId fDetID
 
art::ServiceHandle< geo::GeometryfGeom
 

Detailed Description

Definition at line 42 of file BadChanValidate_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 92 of file BadChanValidate_module.cc.

References reconfigure().

93  :
94  EDAnalyzer(p)
95 {
96  this->reconfigure(p);
97 }
void reconfigure(fhicl::ParameterSet const &p)
const char * p
Definition: xmltok.h:285
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
chaninfo::BadChanValidate::BadChanValidate ( BadChanValidate const &  )
delete
chaninfo::BadChanValidate::BadChanValidate ( BadChanValidate &&  )
delete

Member Function Documentation

void chaninfo::BadChanValidate::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 156 of file BadChanValidate_module.cc.

References BadChansFromDB(), BadChansFromOM(), fNpass, fRawDigitLabel, and art::DataViewImpl::getByLabel().

157 {
158 
160  e.getByLabel(fRawDigitLabel, rawdigs);
161 
162  if( rawdigs->empty() || fNpass > 0 )
163  return;
164 
165  BadChansFromDB();
166  BadChansFromOM();
167  fNpass += 1;
168 }
Float_t e
Definition: plot.C:35
void chaninfo::BadChanValidate::BadChansFromDB ( )
private

Definition at line 172 of file BadChanValidate_module.cc.

References update_sam_good_runs_metadata::bad, fDBMaskHist, fGeom, geom(), chaninfo::BadChanList::IsBad(), geo::PlaneGeo::Ncells(), ncells, nplanes, geo::GeometryBase::NPlanes(), and geo::GeometryBase::Plane().

Referenced by analyze().

173 {
174 
177 
178  unsigned int nplanes = fGeom->NPlanes();
179  for(unsigned int iplane = 0; iplane < nplanes; ++iplane){
180  unsigned int ncells = fGeom->Plane(iplane)->Ncells();
181  for(unsigned int icell = 0; icell < ncells; ++icell){
182  fDBMaskHist->Fill(iplane, icell, !bad->IsBad(iplane, icell));
183  }// end of loop over cells
184  }// end of loop over planes
185 }// end of BadChansFromDB
art::ServiceHandle< geo::Geometry > fGeom
unsigned int Ncells() const
Number of cells in this plane.
Definition: PlaneGeo.h:43
const PlaneGeo * Plane(unsigned int i) const
int nplanes
Definition: geom.C:145
void geom(int which=0)
Definition: geom.C:163
int ncells
Definition: geom.C:124
unsigned int NPlanes() const
bool IsBad(int plane, int cell)
void chaninfo::BadChanValidate::BadChansFromOM ( )
private

Definition at line 189 of file BadChanValidate_module.cc.

References ana::assert(), getBrightness::cell, om::cout, nova::dbi::RunHistory::DiBlock::dcm, daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), allTimeWatchdog::endl, fDetID, fOMMaskHist, fOnmonFilename, fRun, fSubrun, geom(), daqchannelmap::DAQChannelMap::getCell(), nova::dbi::RunHistory::GetDiBlock(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPlane(), submit_syst::header, novadaq::cnv::kNEARDET, nova::dbi::RunHistory::NDCMs(), nova::dbi::RunHistory::NDiBlocks(), nova::dbi::RunHistory::DiBlock::num, NDAPDHVSetting::plane, rh, daqchannelmap::HardwareDisplay::SetupDet(), daqchannelmap::HardwareDisplay::XYFEB(), and daqchannelmap::HardwareDisplay::XYPix().

Referenced by analyze().

190 {
193 
194  std::cout<<"\n";
195  std::cout<<"Name of OnMon File: "<<fOnmonFilename<<std::endl;
196  std::cout<<"\n";
197 
198 
199  TFile *fOnmonFile = new TFile(fOnmonFilename.c_str(),"READ");
200 
201  // Check that we have the right onmon file
202  TTree *header = (TTree*)(fOnmonFile->Get("Header"));
203  assert( header->GetEntries() > 0 );
204 
205  unsigned int omrun, omsubrun;
206  header->SetBranchAddress("Run", &omrun);
207  header->SetBranchAddress("Subrun", &omsubrun);
208  header->GetEntry(0);
209 
210  assert( omrun == fRun &&
211  omsubrun == fSubrun);
212 
213  int ndcm = rh->NDCMs();
214  int ndb = rh->NDiBlocks();
215  TH2F *hitmap[ndb][ndcm];
216 
217  for(int idb = 0; idb < ndb; ++idb){
218  int indcm = rh->GetDiBlock(idb, false).dcm.size();
219 
220  int rhidb = rh->GetDiBlock(idb, false).num;
221  if(fDetID == novadaq::cnv::kNEARDET && idb == 3)
222  indcm = 2;
223 
224  for(int idcm = 0; idcm < indcm; ++idcm){
225  char hname[256];
226  sprintf(hname,"PixelsRateDCM_%02d_%02d",rhidb,idcm+1);
227 
228  fOnmonFile->cd();
229  hitmap[idb][idcm] = (TH2F*)(fOnmonFile->Get(hname));
230 
231  }// end loop over dcms
232  }//end loop over diblock
233 
234  daqchannelmap::DAQChannelMap* daqcmap =
236 
238  hwd.SetupDet(fDetID);
239 
240  for( int idb = 0; idb < ndb ; ++idb ){
241 
242  std::vector<nova::dbi::RunHistory::DCM> dcms = rh->GetDiBlock(idb, false).dcm;
243  int ndcm = dcms.size();
244  int rhidb = rh->GetDiBlock(idb, false).num;
245  if(fDetID == novadaq::cnv::kNEARDET && idb == 3)
246  ndcm = 2;
247 
248  for( int idcm = 0; idcm < ndcm; ++idcm){
249 
250  std::vector<nova::dbi::RunHistory::FEB> febs = dcms[idcm].feb;
251  unsigned int nfebs = febs.size();
252 
253  // In case the subrun is short, there isn't enough
254  // info to compute rates. These hists don't exist then.
255  if(!hitmap[idb][idcm])
256  continue;
257 
258  int nx = hitmap[idb][idcm]->GetXaxis()->GetNbins();
259  int ny = hitmap[idb][idcm]->GetYaxis()->GetNbins();
260 
261  for (int ix=1; ix<=nx; ++ix) {
262  for (int iy=1; iy<=ny; ++iy) {
263 
264  unsigned int ifeb, ipixel;
265  hwd.XYFEB(&ifeb,ix-1,iy-1);
266  hwd.XYPix(&ipixel,ix-1,iy-1);
267 
268  // map to plane and cell in detector
269  daqchannelmap::dchan daqChan = daqcmap->encodeDChan(fDetID,rhidb,
270  idcm+1,ifeb,
271  ipixel);
272  // not so logical chan :/
273  daqchannelmap::lchan logChan = daqcmap->encodeLChan(daqChan);
274 
275  int plane = daqcmap->getPlane(logChan);
276  int cell = daqcmap->getCell(logChan);
277 
278  // check that this FEB was instrumented
279  bool hasAPD = ( ifeb < nfebs && febs[ifeb].hasAPD);
280 
281  float rate = hitmap[idb][idcm]->GetBinContent(ix,iy);
282 
283  // Congruent with IsBad function
284  if(hasAPD){
285 
286  if (rate>0.)
287  rate = TMath::Log10(rate);
288  else
289  rate = -5.;
290 
291  if(rate <= 3.5 && rate >= 0.5)
292  fOMMaskHist->Fill( plane, cell);
293 
294  }
295  else
296  continue;
297 
298  }// end loop over y bins
299  }// end loop over x bins
300 
301  }// end loop over dcms
302  }// end loop over diblocks
303 
304 }// end of BadChansFromOM
void XYPix(unsigned int *pix, unsigned int ix, unsigned int iy)
int NDiBlocks()
gives number of active diblocks only, may be less than 14
Definition: RunHistory.h:394
TH2 * rh
Definition: drawXsec.C:5
void XYFEB(unsigned int *feb, unsigned int ix, unsigned int iy)
DiBlock GetDiBlock(int i, bool loadAll=true)
get ith diblock is RH list (which only includes diblocks with activity), starting with i=0...
cell_t getCell(lchan logicalchan) const
Decode the cell number from an lchan.
lchan encodeLChan(int detId, plane_t plane, cell_t cell) const
static DAQChannelMap * getInstance(int detID)
Near Detector in the NuMI cavern.
OStream cout
Definition: OStream.cxx:6
std::vector< DCM > dcm
Definition: RunHistory.h:311
void geom(int which=0)
Definition: geom.C:163
plane_t getPlane(lchan logicalchan) const
Decode the plane number from an lchan.
assert(nhit_max >=nhit_nbins)
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
void chaninfo::BadChanValidate::beginRun ( art::Run const &  r)
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 111 of file BadChanValidate_module.cc.

References geo::GeometryBase::DetId(), fDetID, and fGeom.

112 {
113  fDetID = fGeom->DetId();
114 }
art::ServiceHandle< geo::Geometry > fGeom
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
Definition: GeometryBase.h:243
void chaninfo::BadChanValidate::beginSubRun ( art::SubRun const &  sr)
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 118 of file BadChanValidate_module.cc.

References fDBMaskHist, fGeom, fOMMaskHist, fRun, fSubrun, art::TFileDirectory::make(), geo::PlaneGeo::Ncells(), ncells, nplanes, geo::GeometryBase::NPlanes(), geo::GeometryBase::Plane(), art::SubRun::run(), and art::SubRun::subRun().

119 {
120 
121  fRun = sr.run();
122  fSubrun = sr.subRun();
123 
125 
126  char *htitledb = new char[100];
127  sprintf(htitledb, "DB Channel Map For Run %d, Subrun %d;Plane;Cell",
128  fRun, fSubrun);
129 
130  char *htitleom = new char[100];
131  sprintf(htitleom, "Onmon Channel Map For Run %d, Subrun %d;Plane;Cell",
132  fRun, fSubrun);
133 
134  int nplanes = fGeom->NPlanes();
135  int ncells = fGeom->Plane(0)->Ncells();
136 
137  char *hnamedb = new char[100];
138  sprintf(hnamedb, "db_mask_%d_%d", fRun, fSubrun);
139 
140  char *hnameom = new char[100];
141  sprintf(hnameom, "om_mask_%d_%d", fRun, fSubrun);
142 
143  fDBMaskHist = tfs->make<TH2F>(hnamedb, htitledb,
144  nplanes+1, -1, nplanes,
145  ncells +1, -1, ncells);
146 
147  fOMMaskHist = tfs->make<TH2F>(hnameom, htitleom,
148  nplanes+1, -1, nplanes,
149  ncells +1, -1, ncells);
150 
151 }
art::ServiceHandle< geo::Geometry > fGeom
unsigned int Ncells() const
Number of cells in this plane.
Definition: PlaneGeo.h:43
const PlaneGeo * Plane(unsigned int i) const
caf::StandardRecord * sr
int nplanes
Definition: geom.C:145
T * make(ARGS...args) const
int ncells
Definition: geom.C:124
unsigned int NPlanes() const
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

80  {
81  return selectors_;
82  }
detail::CachedProducts selectors_
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

147 {
148  if (!moduleContext_)
149  return ProductToken<T>::invalid();
150 
151  consumables_[BT].emplace_back(ConsumableType::Product,
152  TypeID{typeid(T)},
153  it.label(),
154  it.instance(),
155  it.process());
156  return ProductToken<T>{it};
157 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDAnalyzer::currentContext ( ) const
protectedinherited
void chaninfo::BadChanValidate::endSubRun ( art::SubRun const &  sr)
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 308 of file BadChanValidate_module.cc.

References om::cerr, om::cout, DEFINE_ART_MODULE(), fDBMaskHist, fDBMinusOM, art::TFileService::file(), fOMMaskHist, fRun, fSubrun, MECModelEnuComparisons::i, and nbins.

309 {
310 
311 
312  //---------------------------------------------------
313  // New addition - Assuming same number for onmon hist
314  int binsX = fDBMaskHist->GetNbinsX();
315  int binsY = fDBMaskHist->GetNbinsY();
316 
317  // counters
318  int dbYes_omNo = 0;
319  int dbNo_omYes = 0;
320 
321  for(int iplane = 0; iplane < binsX; ++iplane){
322  for(int icell = 0; icell < binsY; ++icell){
323 
324  if ( (fDBMaskHist->GetBinContent(iplane,icell) == 1) &&
325  (fOMMaskHist->GetBinContent(iplane,icell) == 0) ){
326  // Do something smart here
327  dbYes_omNo += 1;
328  }
329  else if ( (fDBMaskHist->GetBinContent(iplane,icell) == 0) &&
330  (fOMMaskHist->GetBinContent(iplane,icell) == 1) ){
331  // Do something smart here
332  dbNo_omYes += 1;
333  }
334  else
335  continue;
336 
337  } // end icell
338  } // end iplane
339  //---------------------------------------------------
340 
341  fDBMinusOM = (TH2F*)fDBMaskHist->Clone("fDBMinusOM");
342  fDBMinusOM->Add(fOMMaskHist,-1);
343  fDBMinusOM->GetZaxis()->SetRangeUser(-1,1);
344 
345  char *hnamedf = new char[100];
346  sprintf(hnamedf, "diff_mask_%d_%d", fRun, fSubrun);
347  fDBMinusOM->SetName(hnamedf);
348 
349  char *htitledf = new char[100];
350  sprintf(htitledf, "DB minus Onmon Channel Map For Run %d, Subrun %d;Plane;Cell",
351  fRun, fSubrun);
352  fDBMinusOM->SetTitle(htitledf);
353 
355  tfs->file().cd();
356  fDBMinusOM->Write();
357 
358  int nbins = fDBMinusOM->GetSize();
359  int nfill = 0;
360  for(int i = 0; i < nbins ; i++){
361  if(fDBMinusOM->GetBinContent(i) != 0 )
362  nfill+=1;
363  }
364 
365  //double nfill = fDBMinusOM->GetEntries();
366  double perc = nfill*100/(double)nbins;
367 
368  // New fractions
369  double fracDBgood = dbYes_omNo*100/(double)nbins;
370  double fracOMgood = dbNo_omYes*100/(double)nbins;
371 
372  std::cout<<"\n";
373  std::cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
374  std::cout<<"\n";
375  std::cout<<" === Numbers as percentage (%) ===";
376  std::cerr<<"Difference between DB and OnMon masks : "<< std::setprecision(2) << std::fixed << perc << "\n";
377  std::cerr<<"Fraction DB sees good, OnMon sees bad : "<< std::setprecision(4) << std::fixed << fracDBgood << "\n";
378  std::cerr<<"Fraction DB sees bad, OnMon sees good : "<< std::setprecision(4) << std::fixed << fracOMgood << "\n";
379  std::cout<<"\n";
380  std::cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
381  std::cout<<"\n";
382 
383 }
OStream cerr
Definition: OStream.cxx:7
TFile & file() const
Definition: TFileService.h:63
const int nbins
Definition: cellShifts.C:15
OStream cout
Definition: OStream.cxx:6
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:35
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

190 {
191  if (!moduleContext_)
192  return ProductToken<T>::invalid();
193 
194  consumables_[BT].emplace_back(ConsumableType::Product,
195  TypeID{typeid(T)},
196  it.label(),
197  it.instance(),
198  it.process());
199  return ProductToken<T>{it};
200 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

215 {
216  if (!moduleContext_)
217  return ViewToken<T>::invalid();
218 
219  consumables_[BT].emplace_back(ConsumableType::ViewElement,
220  TypeID{typeid(T)},
221  it.label(),
222  it.instance(),
223  it.process());
224  return ViewToken<T>{it};
225 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
bool art::EventObserverBase::modifiesEvent ( ) const
inlineinherited

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
void chaninfo::BadChanValidate::OnmonNameFor ( std::string  fname)
private
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void chaninfo::BadChanValidate::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 101 of file BadChanValidate_module.cc.

References fADCHighCut, fADCLowCut, fOnmonFilename, fRawDigitLabel, fhicl::ParameterSet::get(), and string.

Referenced by BadChanValidate().

102 {
103  fADCLowCut = p.get<int>("ADCLowCut");
104  fADCHighCut = p.get<int>("ADCHighCut");
105  fOnmonFilename = p.get<std::string>("OnmonFilename");
106  fRawDigitLabel = p.get<std::string>("RawDigitLabel");
107 }
const char * p
Definition: xmltok.h:285
enum BeamMode string
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

References string.

36  {}
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

57  {
58  return selector_config_id_;
59  }
fhicl::ParameterSetID selector_config_id_
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

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

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited

Definition at line 46 of file EventObserverBase.h.

References art::EventObserverBase::wantAllEvents_.

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

47  {
48  return wantAllEvents_;
49  }
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited

Definition at line 51 of file EventObserverBase.h.

References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().

52  {
53  return selectors_.wantEvent(e);
54  }
detail::CachedProducts selectors_
Float_t e
Definition: plot.C:35
bool wantEvent(Event const &)
std::string art::EDAnalyzer::workerType ( ) const
inlineinherited

Definition at line 109 of file EDAnalyzer.h.

References art::EDAnalyzer::currentContext().

110  {
111  return "WorkerT<EDAnalyzer>";
112  }

Member Data Documentation

int chaninfo::BadChanValidate::fADCHighCut
private

Definition at line 67 of file BadChanValidate_module.cc.

Referenced by reconfigure().

int chaninfo::BadChanValidate::fADCLowCut
private

Definition at line 66 of file BadChanValidate_module.cc.

Referenced by reconfigure().

TH2F* chaninfo::BadChanValidate::fDBMaskHist
private

Definition at line 77 of file BadChanValidate_module.cc.

Referenced by BadChansFromDB(), beginSubRun(), and endSubRun().

TH2F* chaninfo::BadChanValidate::fDBMinusOM
private

Definition at line 79 of file BadChanValidate_module.cc.

Referenced by endSubRun().

novadaq::cnv::DetId chaninfo::BadChanValidate::fDetID
private

Definition at line 85 of file BadChanValidate_module.cc.

Referenced by BadChansFromOM(), and beginRun().

art::ServiceHandle<geo::Geometry> chaninfo::BadChanValidate::fGeom
private

Definition at line 86 of file BadChanValidate_module.cc.

Referenced by BadChansFromDB(), beginRun(), and beginSubRun().

int chaninfo::BadChanValidate::fNOnmonReleases
private

Definition at line 68 of file BadChanValidate_module.cc.

int chaninfo::BadChanValidate::fNpass = 0
private

Definition at line 73 of file BadChanValidate_module.cc.

Referenced by analyze().

TH2F* chaninfo::BadChanValidate::fOMMaskHist
private

Definition at line 78 of file BadChanValidate_module.cc.

Referenced by BadChansFromOM(), beginSubRun(), and endSubRun().

std::string chaninfo::BadChanValidate::fOnmonFilename
private

Definition at line 74 of file BadChanValidate_module.cc.

Referenced by BadChansFromOM(), and reconfigure().

std::string chaninfo::BadChanValidate::fRawDigitLabel
private

Definition at line 75 of file BadChanValidate_module.cc.

Referenced by analyze(), and reconfigure().

unsigned int chaninfo::BadChanValidate::fRun
private

Definition at line 70 of file BadChanValidate_module.cc.

Referenced by BadChansFromOM(), beginSubRun(), and endSubRun().

unsigned int chaninfo::BadChanValidate::fSubrun
private

Definition at line 71 of file BadChanValidate_module.cc.

Referenced by BadChansFromOM(), beginSubRun(), and endSubRun().


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