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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 PEResponse (fhicl::ParameterSet const &p)
 < Constructor More...
 
virtual ~PEResponse ()
 < Destructor More...
 
void analyze (art::Event const &e)
 < analyze function More...
 
void reconfigure (fhicl::ParameterSet const &p)
 < Reconfigure parameter set More...
 
void beginJob ()
 < beginJob function More...
 
void beginRun (art::Run const &r)
 
void endSubRun (art::SubRun const &sr)
 
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 SetDefault ()
 

Private Attributes

std::string fCellHitLabel
 
std::string fTrkLabel
 Track module label. More...
 
std::string fPCHitLabel
 PCHit module label. More...
 
std::string fQualXYLabel
 Instance label for hits with xz quality. More...
 
std::string fQualZLabel
 Instance label for hits with z quality. More...
 
std::string fQualAvgLabel
 Instance label for hits with avg quality. More...
 
std::string fQualBadLabel
 Instance label for hits with bad track quality. More...
 
std::string fExpLabel
 Cosmic exposure module label name. More...
 
TTree * fHitTree
 Tree to save hit information. More...
 
std::vector< TH2F * > fThreshHists
 
TH1F * hx [15]
 
TH1F * hy [15]
 
TH2F * hthresh
 
TH1F * hall
 
TH1F * hexp
 
float fPe
 
float fW
 
float fPath
 
float fTns
 
float fReadDist
 
float fFlightDist
 
bool fIsBad
 
bool fIsXYAdj
 
bool fIsZAdj
 
bool fIsAvg
 
bool fIsBadTrk
 
int fEvent
 
int fRun
 
int fSubRun
 
int fPlane
 
int fCell
 
int fDcm
 
int fDiblock
 
int fApd
 
int fPixel
 
int fView
 
int fTrkPlanes
 
bool fFillHitTree
 
art::ServiceHandle< geo::GeometryfGeom
 
nova::dbi::RunHistory fRunHist
 

Detailed Description

Definition at line 51 of file PEResponse_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

calib::PEResponse::PEResponse ( fhicl::ParameterSet const &  p)
explicit

< Constructor

Definition at line 120 of file PEResponse_module.cc.

References reconfigure().

121  :EDAnalyzer( pset )
122  {
123  this->reconfigure(pset);
124  }
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
void reconfigure(fhicl::ParameterSet const &p)
< Reconfigure parameter set
calib::PEResponse::~PEResponse ( )
virtual

< Destructor

Definition at line 131 of file PEResponse_module.cc.

132  {
133 
134  }

Member Function Documentation

void calib::PEResponse::analyze ( art::Event const &  e)
virtual

< analyze function

Implements art::EDAnalyzer.

Definition at line 276 of file PEResponse_module.cc.

References visualisationForPaperMasterPlot::cmap, art::Event::event(), rb::Cluster::ExtentPlane(), fApd, fCell, fDcm, fDiblock, fEvent, fFlightDist, fHitTree, fIsAvg, fIsBad, fIsBadTrk, fIsXYAdj, fIsZAdj, fPath, fPCHitLabel, fPe, fPixel, fPlane, fQualAvgLabel, fQualBadLabel, fQualXYLabel, fQualZLabel, fReadDist, fRun, fSubRun, fTns, fTrkLabel, fTrkPlanes, fView, fW, art::DataViewImpl::getByLabel(), hall, hx, hy, chaninfo::BadChanList::IsBad(), geo::kX, geo::kY, rb::Cluster::NXCell(), rb::Cluster::NYCell(), PandAna.reco_validation.add_data::offset, art::Event::run(), SetDefault(), art::Event::subRun(), and track.

277  {
278  SetDefault();
279  fSubRun = evt.subRun();
280  fEvent = evt.event();
281  fRun = evt.run();
282 
283 
286 
288  evt.getByLabel( fTrkLabel, trkCol );
289 
290 
295 
296  int nTrks = trkCol->size();
297 
298 
299  for( int iTrk = 0; iTrk < nTrks; ++iTrk){
300 
301  art::Ptr< rb::Track > track(trkCol, iTrk);
302  // grab the pc hits associated with this track
303  if ((track->NXCell()==0) || (track->NYCell()==0)) continue;
304 
305  // get the pc hits associated with the cosmic track
306  std::vector<art::Ptr<caldp::PCHit> > pcxy = fmpcxy.at(iTrk);
307  std::vector<art::Ptr<caldp::PCHit> > pcz = fmpcz.at(iTrk);
308  std::vector<art::Ptr<caldp::PCHit> > pcav = fmpcav.at(iTrk);
309  std::vector<art::Ptr<caldp::PCHit> > pcbt = fmpcbt.at(iTrk);
310 
311  fTrkPlanes = track->ExtentPlane();
312  // Now we will loop over all the pchits of different types
313  fIsXYAdj = true;
314  fIsZAdj = false;
315  fIsAvg = false;
316  fIsBadTrk = false;
317 
318 
319  for( auto const& iPc: pcxy ){
320  fW = iPc->W();
321  fPath = iPc->Path();
322  fTns = iPc->TNS();
323  fReadDist = iPc->ReadDist();
324  fFlightDist= iPc->FlightLen();
325  fPlane = iPc->Plane();
326  fCell = iPc->Cell();
327  fDcm = iPc->DCM();
328  fDiblock = iPc->Diblock();
329  fApd = iPc->APD();
330  fPixel = iPc->Pixel();
331  fView = iPc->View();
332  fIsBad = badc->IsBad( fPlane, fCell);
333  fPe = iPc->PE();
334 
335  int offset = -750;
336  if( fPlane < 128 && fIsXYAdj && fTrkPlanes > 20){
337 
338  for( int iH = 0; iH < 15; ++iH){
339  hall->Fill(fPe);
340  if( fW > offset+(iH*100) && fW < offset+(100+(iH*100)) ){
341  if( fView== geo::kX )
342  hx[iH]->Fill( fPe);
343  if( fView== geo::kY )
344  hy[iH]->Fill(fPe);
345  }
346  }// end loop over iH
347  }
348 
349  fHitTree->Fill();
350  }// end loop over pcxy
351 
352 
353  fIsXYAdj = false;
354  fIsZAdj = true;
355  fIsAvg = false;
356  fIsBadTrk = false;
357  for( auto const& iPc: pcz ){
358  fW = iPc->W();
359  fPath = iPc->Path();
360  fTns = iPc->TNS();
361  fReadDist = iPc->ReadDist();
362  fFlightDist= iPc->FlightLen();
363  fPlane = iPc->Plane();
364  fCell = iPc->Cell();
365  fDcm = iPc->DCM();
366  fDiblock = iPc->Diblock();
367  fApd = iPc->APD();
368  fPixel = iPc->Pixel();
369  fView = iPc->View();
370  fIsBad = badc->IsBad( fPlane, fCell);
371  fPe = iPc->PE();
372  fHitTree->Fill();
373  }// end loop over pcz
374 
375 
376  fIsXYAdj = false;
377  fIsZAdj = false;
378  fIsAvg = true;
379  fIsBadTrk = false;
380  for( auto const& iPc: pcav ){
381  fW = iPc->W();
382  fPath = iPc->Path();
383  fTns = iPc->TNS();
384  fReadDist = iPc->ReadDist();
385  fFlightDist= iPc->FlightLen();
386  fPlane = iPc->Plane();
387  fCell = iPc->Cell();
388  fDcm = iPc->DCM();
389  fDiblock = iPc->Diblock();
390  fApd = iPc->APD();
391  fPixel = iPc->Pixel();
392  fView = iPc->View();
393  fIsBad = badc->IsBad( fPlane, fCell);
394  fPe = iPc->PE();
395  fHitTree->Fill();
396  }// end loop over pcav
397 
398 
399  fIsXYAdj = false;
400  fIsZAdj = false;
401  fIsAvg = false;
402  fIsBadTrk = true;
403  for( auto const& iPc: pcbt ){
404  fW = iPc->W();
405  fPath = iPc->Path();
406  fTns = iPc->TNS();
407  fReadDist = iPc->ReadDist();
408  fFlightDist= iPc->FlightLen();
409  fPlane = iPc->Plane();
410  fCell = iPc->Cell();
411  fDcm = iPc->DCM();
412  fDiblock = iPc->Diblock();
413  fApd = iPc->APD();
414  fPixel = iPc->Pixel();
415  fView = iPc->View();
416  fIsBad = badc->IsBad( fPlane, fCell);
417  fPe = iPc->PE();
418  fHitTree->Fill();
419  }// end loop over pcbt
420 
421  }// end loop over tracks
422 
423  }// end of analyze
std::string fQualBadLabel
Instance label for hits with bad track quality.
Vertical planes which measure X.
Definition: PlaneGeo.h:28
Definition: event.h:19
Horizontal planes which measure Y.
Definition: PlaneGeo.h:29
std::string fQualZLabel
Instance label for hits with z quality.
int evt
std::string fPCHitLabel
PCHit module label.
std::string fTrkLabel
Track module label.
std::string fQualAvgLabel
Instance label for hits with avg quality.
bool IsBad(int plane, int cell)
Float_t track
Definition: plot.C:35
std::string fQualXYLabel
Instance label for hits with xz quality.
TTree * fHitTree
Tree to save hit information.
void calib::PEResponse::beginJob ( )
virtual

< beginJob function

Reimplemented from art::EDAnalyzer.

Definition at line 159 of file PEResponse_module.cc.

References fApd, fCell, fDcm, fDiblock, fEvent, fFlightDist, fHitTree, fIsAvg, fIsBad, fIsBadTrk, fIsXYAdj, fIsZAdj, fPath, fPe, fPixel, fPlane, fReadDist, fRun, fSubRun, fTns, fView, fW, hall, hexp, hx, hy, MECModelEnuComparisons::i, art::TFileDirectory::make(), and PandAna.reco_validation.add_data::offset.

160  {
162 
163  // declare all the histogram necessary
164 
165  hall = tfs->make<TH1F>("hall", "All W; PE; Number of Hits", 1000, 0, 1000);
166  hexp = tfs->make<TH1F>("hexp", "Total Exposure;;",1,0,1);
167 
168 
169  for( int i = 0; i < 15; i++){
170 
171  char *hxname = new char[10];
172  sprintf(hxname, "hx%d", i);
173  char *hyname = new char[10];
174  sprintf(hyname, "hy%d", i);
175 
176  char *htitle = new char[100];
177  int offset = -750;
178  int lower = (offset+(i*100));
179  int upper = offset+(100+(i*100));
180  sprintf(htitle, "%d cm < W < %d cm ; PE; Number of Hits", lower, upper );
181 
182  hx[i] = tfs->make<TH1F>(hxname, htitle, 1000, 0, 1000);
183  hy[i] = tfs->make<TH1F>(hyname, htitle, 1000, 0, 1000);
184  }
185 
186 
187  fHitTree = tfs->make<TTree>("HitTree","Hit Tree");
188  // define branches of the tree
189  fHitTree->Branch("run", &fRun);
190  fHitTree->Branch("subrun", &fSubRun);
191  fHitTree->Branch("event", &fEvent);
192  fHitTree->Branch("plane", &fPlane);
193  fHitTree->Branch("cell", &fCell);
194  fHitTree->Branch("diblock", &fDiblock);
195  fHitTree->Branch("dcm", &fDcm);
196  fHitTree->Branch("apd", &fApd);
197  fHitTree->Branch("pixel", &fPixel);
198  fHitTree->Branch("view", &fView);
199  fHitTree->Branch("pe", &fPe);
200  fHitTree->Branch("w", &fW);
201  fHitTree->Branch("path", &fPath);
202  fHitTree->Branch("tns", &fTns);
203  fHitTree->Branch("readdist", &fReadDist);
204  fHitTree->Branch("flightdist", &fFlightDist);
205  fHitTree->Branch("isxyadj", &fIsXYAdj);
206  fHitTree->Branch("iszadj", &fIsZAdj);
207  fHitTree->Branch("isavg", &fIsAvg);
208  fHitTree->Branch("isbadtrk", &fIsBadTrk);
209  fHitTree->Branch("isbad", &fIsBad);
210 
211  }// end of beginJob
T * make(ARGS...args) const
TTree * fHitTree
Tree to save hit information.
void calib::PEResponse::beginRun ( art::Run const &  r)
virtual

beginRun function

Reimplemented from art::EDAnalyzer.

Definition at line 217 of file PEResponse_module.cc.

References getBrightness::cell, nova::dbi::RunHistory::DiBlock::dcm, fillBadChanDBTables::det, geo::GeometryBase::DetId(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), nova::dbi::RunHistory::DCM::feb, fGeom, fRunHist, fThreshHists, daqchannelmap::DAQChannelMap::getCell(), nova::dbi::RunHistory::GetDiBlock(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPlane(), hthresh, nova::dbi::RunHistory::LoadPixelInfo(), art::TFileDirectory::make(), nova::dbi::RunHistory::NDiBlocks(), nova::dbi::RunHistory::DiBlock::num, nova::dbi::RunHistory::FEB::pixelThresh, NDAPDHVSetting::plane, and art::Run::run().

218  {
220  int run = r.run();
223  nova::dbi::RunHistory runhist(run,det);
224 
225  fRunHist = runhist;
227 
228  char *htitle = new char[100];
229  sprintf(htitle, "Threshold Map For Run %d;Plane;Cell", run);
230 
231  char *hname = new char[20];
232  sprintf(hname, "thresh-%d", run);
233  hthresh = tfs->make<TH2F>(hname, htitle, 1792, -0.5, 1791.5, 384, -0.5, 383.5);
234 
235  int ndb = fRunHist.NDiBlocks();
236 
237  for( int idb = 0; idb < ndb; ++idb){
239  std::vector< nova::dbi::RunHistory::DCM > dcms = thisdb.dcm;
240  int ndcm = dcms.size();
241 
242  for( int idcm = 0; idcm < ndcm; ++idcm){
243  nova::dbi::RunHistory::DCM thisdcm = dcms[ idcm];
244  std::vector< nova::dbi::RunHistory::FEB > febs = thisdcm.feb;
245  int nfeb = febs.size();
246 
247  for(int ifeb =0; ifeb < nfeb; ++ifeb){
248  nova::dbi::RunHistory::FEB thisfeb = febs[ ifeb];
249  std::vector< int16_t > thresh = thisfeb.pixelThresh;
250  int npix = thresh.size();
251 
252  for(int ipix = 0; ipix < npix; ++ipix){
253 
254  uint32_t daqchan = cmap->encodeDChan( det, thisdb.num, idcm+1, ifeb, ipix);
255  uint32_t logchan = cmap->encodeLChan(daqchan);
256  int cell = cmap->getCell( logchan );
257  int plane = cmap->getPlane( logchan );
258  // If threshold is 4095, the pixel was masked out
259  // Don't fill the histogram for it, otherwise
260  // it dominates the colz scale.
261  if (thresh[ipix] != 4095)
262  hthresh->Fill( plane, cell, thresh[ipix]);
263 
264  }// end loop over pixels
265  }// end loop over febs
266  }// end loop over dcms
267  }// end loop over diblocks
268 
269  fThreshHists.push_back( hthresh );
270  }// end of beginRun
int NDiBlocks()
gives number of active diblocks only, may be less than 14
Definition: RunHistory.h:394
bool LoadPixelInfo(int nAttempt=0)
Definition: RunHistory.cxx:903
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
std::vector< int16_t > pixelThresh
Definition: RunHistory.h:269
std::vector< FEB > feb
Definition: RunHistory.h:291
static DAQChannelMap * getInstance(int detID)
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
Definition: GeometryBase.h:243
nova::dbi::RunHistory fRunHist
Definition: run.py:1
std::vector< DCM > dcm
Definition: RunHistory.h:311
T * make(ARGS...args) const
std::vector< TH2F * > fThreshHists
art::ServiceHandle< geo::Geometry > fGeom
plane_t getPlane(lchan logicalchan) const
Decode the plane number from an lchan.
TRandom3 r(0)
cmap::CMap class source code
Definition: CMap.cxx:17
dchan encodeDChan(int detID, diblock_t diblock, dcm_id_t dcm, feb_t feb, pixel_t pixel) 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 calib::PEResponse::endSubRun ( art::SubRun const &  sr)
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 452 of file PEResponse_module.cc.

References DEFINE_ART_MODULE(), stan::math::exp(), art::Handle< T >::failedToGet(), fExpLabel, art::DataViewImpl::getByLabel(), hexp, and sumdata::CosmicExposure::totlivetime.

453  {
455  sr.getByLabel(fExpLabel, exp);
456  if( exp.failedToGet())
457  return;
458  hexp->Fill( 0.5, exp->totlivetime );
459  }
std::string fExpLabel
Cosmic exposure module label name.
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10
caf::StandardRecord * sr
bool failedToGet() const
Definition: Handle.h:196
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

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

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

Definition at line 189 of file Consumer.h.

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

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

Definition at line 204 of file Consumer.h.

References T.

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

Definition at line 214 of file Consumer.h.

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

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

Definition at line 25 of file EventObserverBase.h.

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

< Reconfigure parameter set

Definition at line 141 of file PEResponse_module.cc.

References fCellHitLabel, fExpLabel, fFillHitTree, fPCHitLabel, fQualAvgLabel, fQualBadLabel, fQualXYLabel, fQualZLabel, fTrkLabel, fhicl::ParameterSet::get(), and string.

Referenced by PEResponse().

142  {
143  fTrkLabel = pset.get< std::string >("TrkLabel");
144  fExpLabel = pset.get< std::string >("ExpLabel");
145  fCellHitLabel = pset.get< std::string >("CellHitLabel");
146  fPCHitLabel = pset.get< std::string >("PCHitLabel");
147  fQualXYLabel = pset.get< std::string >("QualXYLabel");
148  fQualZLabel = pset.get< std::string >("QualZLabel");
149  fQualAvgLabel = pset.get< std::string >("QualAvgLabel");
150  fQualBadLabel = pset.get< std::string >("QualBadLabel");
151  fFillHitTree = pset.get< bool >("FillHitTree");
152  }
std::string fExpLabel
Cosmic exposure module label name.
std::string fCellHitLabel
std::string fQualBadLabel
Instance label for hits with bad track quality.
std::string fQualZLabel
Instance label for hits with z quality.
std::string fPCHitLabel
PCHit module label.
std::string fTrkLabel
Track module label.
std::string fQualAvgLabel
Instance label for hits with avg quality.
std::string fQualXYLabel
Instance label for hits with xz quality.
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 calib::PEResponse::SetDefault ( )
private

Definition at line 425 of file PEResponse_module.cc.

References fApd, fCell, fDcm, fDiblock, fEvent, fFlightDist, fIsAvg, fIsBad, fIsBadTrk, fIsXYAdj, fIsZAdj, fPath, fPe, fPixel, fPlane, fReadDist, fRun, fSubRun, fTns, fTrkPlanes, fView, and fW.

Referenced by analyze().

425  {
426 
427  fIsBad = false;
428  fIsXYAdj = false;
429  fIsZAdj = false;
430  fIsAvg = false;
431  fIsBadTrk= false;
432  fPe = -5;
433  fW = -5;
434  fPath = -5;
435  fTns = -5;
436  fReadDist= -5;
437  fEvent = -5;
438  fRun = -5;
439  fSubRun = -5;
440  fPlane = -5;
441  fCell = -5;
442  fDcm = -5;
443  fDiblock = -5;
444  fApd = -5;
445  fPixel = -5;
446  fView = -5;
447  fFlightDist= -5;
448  fTrkPlanes = -5;
449  }// end of SetDefault
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 calib::PEResponse::fApd
private

Definition at line 104 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fCell
private

Definition at line 101 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::string calib::PEResponse::fCellHitLabel
private

Definition at line 65 of file PEResponse_module.cc.

Referenced by reconfigure().

int calib::PEResponse::fDcm
private

Definition at line 102 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fDiblock
private

Definition at line 103 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fEvent
private

Definition at line 97 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::string calib::PEResponse::fExpLabel
private

Cosmic exposure module label name.

Definition at line 72 of file PEResponse_module.cc.

Referenced by endSubRun(), and reconfigure().

bool calib::PEResponse::fFillHitTree
private

Definition at line 108 of file PEResponse_module.cc.

Referenced by reconfigure().

float calib::PEResponse::fFlightDist
private

Definition at line 89 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

art::ServiceHandle< geo::Geometry > calib::PEResponse::fGeom
private

Definition at line 110 of file PEResponse_module.cc.

Referenced by beginRun().

TTree* calib::PEResponse::fHitTree
private

Tree to save hit information.

Definition at line 74 of file PEResponse_module.cc.

Referenced by analyze(), and beginJob().

bool calib::PEResponse::fIsAvg
private

Definition at line 93 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

bool calib::PEResponse::fIsBad
private

Definition at line 90 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

bool calib::PEResponse::fIsBadTrk
private

Definition at line 94 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

bool calib::PEResponse::fIsXYAdj
private

Definition at line 91 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

bool calib::PEResponse::fIsZAdj
private

Definition at line 92 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

float calib::PEResponse::fPath
private

Definition at line 86 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::string calib::PEResponse::fPCHitLabel
private

PCHit module label.

Definition at line 67 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

float calib::PEResponse::fPe
private

Definition at line 84 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fPixel
private

Definition at line 105 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fPlane
private

Definition at line 100 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::string calib::PEResponse::fQualAvgLabel
private

Instance label for hits with avg quality.

Definition at line 70 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

std::string calib::PEResponse::fQualBadLabel
private

Instance label for hits with bad track quality.

Definition at line 71 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

std::string calib::PEResponse::fQualXYLabel
private

Instance label for hits with xz quality.

Definition at line 68 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

std::string calib::PEResponse::fQualZLabel
private

Instance label for hits with z quality.

Definition at line 69 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

float calib::PEResponse::fReadDist
private

Definition at line 88 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

int calib::PEResponse::fRun
private

Definition at line 98 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

nova::dbi::RunHistory calib::PEResponse::fRunHist
private

Definition at line 111 of file PEResponse_module.cc.

Referenced by beginRun().

int calib::PEResponse::fSubRun
private

Definition at line 99 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::vector<TH2F*> calib::PEResponse::fThreshHists
private

Definition at line 75 of file PEResponse_module.cc.

Referenced by beginRun().

float calib::PEResponse::fTns
private

Definition at line 87 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

std::string calib::PEResponse::fTrkLabel
private

Track module label.

Definition at line 66 of file PEResponse_module.cc.

Referenced by analyze(), and reconfigure().

int calib::PEResponse::fTrkPlanes
private

Definition at line 107 of file PEResponse_module.cc.

Referenced by analyze(), and SetDefault().

int calib::PEResponse::fView
private

Definition at line 106 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

float calib::PEResponse::fW
private

Definition at line 85 of file PEResponse_module.cc.

Referenced by analyze(), beginJob(), and SetDefault().

TH1F* calib::PEResponse::hall
private

Definition at line 81 of file PEResponse_module.cc.

Referenced by analyze(), and beginJob().

TH1F* calib::PEResponse::hexp
private

Definition at line 82 of file PEResponse_module.cc.

Referenced by beginJob(), and endSubRun().

TH2F* calib::PEResponse::hthresh
private

Definition at line 79 of file PEResponse_module.cc.

Referenced by beginRun().

TH1F* calib::PEResponse::hx[15]
private

Definition at line 76 of file PEResponse_module.cc.

Referenced by analyze(), and beginJob().

TH1F* calib::PEResponse::hy[15]
private

Definition at line 77 of file PEResponse_module.cc.

Referenced by analyze(), and beginJob().


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