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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 NDRockMuon (fhicl::ParameterSet const &pset)
 
virtual ~NDRockMuon ()
 
void beginJob ()
 
void analyze (const art::Event &evt)
 
void reconfigure (const fhicl::ParameterSet &p)
 
void endJob ()
 
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 ()
 

Public Attributes

int Nevts_percell [214][96]
 

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 Attributes

std::string fSliceLabel
 
std::string fKTrackLabel
 label for slices More...
 
std::string fCellHitLabel
 label for kalman tracks More...
 
std::string fVertexLabel
 label for cell hits More...
 
int fMinHit
 label for vertex More...
 
float fMinTrackLength
 
float fMinTrackCosTheta
 
float fMaxTrackStartZ
 
float fMaxVertexX
 
float fMaxVertexY
 
TH1F * vertexX
 
TH1F * vertexY
 
TH1F * vertexZ
 
TH1F * trackStartX
 
TH1F * trackStartY
 
TH1F * trackStartZ
 
TH1F * trackLength
 
TH1F * Ncells_track [6]
 
TH1F * Ecells_track [6]
 
TH1F * PECorr_track [6]
 
TH1F * PECorr_track_MCH
 
TH1F * PECorr_track_MCV
 
TH1F * Ecell_track [6]
 
TH1F * Ecell_track_MCH
 
TH1F * Ecell_track_MCV
 
TH1F * planeEnergy [214]
 
TH1F * moduleADC [214][3]
 
TH1F * modulePECorr [214][3]
 
TH1F * modulePE [214][3]
 
TH1F * moduleEnergy [214][3]
 

Detailed Description

Definition at line 60 of file NDRockMuon_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

rockmuon::NDRockMuon::NDRockMuon ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 120 of file NDRockMuon_module.cc.

References reconfigure().

121  : EDAnalyzer(pset)
122  {
123  mf::LogInfo("NDRockMuon")<<__PRETTY_FUNCTION__<<"\n";
124  reconfigure(pset);
125  }
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
void reconfigure(const fhicl::ParameterSet &p)
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
rockmuon::NDRockMuon::~NDRockMuon ( )
virtual

Definition at line 128 of file NDRockMuon_module.cc.

129  {
130  }

Member Function Documentation

void rockmuon::NDRockMuon::analyze ( const art::Event evt)

Definition at line 248 of file NDRockMuon_module.cc.

References rawdata::RawDigit::ADC(), rb::CellHit::Cell(), std::cos(), dir, Ecell_track, Ecell_track_MCH, Ecell_track_MCV, Ecells_track, stan::math::fabs(), fCellHitLabel, fKTrackLabel, fMaxTrackStartZ, fMaxVertexX, fMaxVertexY, fMinHit, fMinTrackCosTheta, fMinTrackLength, fSliceLabel, fVertexLabel, geom(), art::Ptr< T >::get(), art::DataViewImpl::getByLabel(), GetX(), GetY(), rb::Cluster::IsNoise(), calib::Calibrator::MakeRecoHit(), moduleADC, moduleEnergy, modulePE, modulePECorr, rb::Cluster::NCell(), Ncells_track, Nevts_percell, rb::CellHit::PE(), PECorr_track, PECorr_track_MCH, PECorr_track_MCV, rb::CellHit::Plane(), planeEnergy, febshutoff_auto::start, trackLength, trackStartX, trackStartY, trackStartZ, vertexX, vertexY, and vertexZ.

249  {
252 
253  //get all hits info
255  evt.getByLabel(fCellHitLabel, chits);
256 
257  //get reco slicer info
259  evt.getByLabel(fSliceLabel, slices);
260 
261  //get kalman track
262  art::FindManyP<rb::Track> fmKTrack(slices, evt, fKTrackLabel);
263 
264  //get reco vertex
265  art::FindManyP<rb::Vertex> fmVertex(slices, evt, fVertexLabel);
266 
267  for(unsigned int sliceIdx = 0; sliceIdx < slices->size(); ++sliceIdx){
268 
269  const rb::Cluster& slice = (*slices)[sliceIdx];
270  if(slice.IsNoise()) continue; //veto noise slice
271  double nCells = slice.NCell();
272  if( nCells<fMinHit ) continue; //minimum cells associated to slice
273 
274  //select reco vertex
275  if (!(fmVertex.isValid())) continue;
276  std::vector<art::Ptr<rb::Vertex>> vert = fmVertex.at(sliceIdx);
277  if (vert.size() != 1) continue;
278  if( fabs(vert[0]->GetX())>fMaxVertexX ) continue;
279  if( fabs(vert[0]->GetY())>fMaxVertexY ) continue;
280 
281  //select the kalman track
282  std::vector<art::Ptr<rb::Track>> Ktracks = fmKTrack.at(sliceIdx);
283  if( !(fmKTrack.isValid()) ) continue;
284 
285  //require there is only one track in the slice
286  if( Ktracks.size() != 1 ) continue;
287 
288  double Ltrack = Ktracks[0]->TotalLength();
289  if( Ltrack<fMinTrackLength ) continue; //track go through the full active detector
290 
291  TVector3 dir = Ktracks[0]->Dir();
292  double track_theta=dir.Theta();
293  if( cos(track_theta)<fMinTrackCosTheta ) continue;//track point forward
294 
295  TVector3 start = Ktracks[0]->Start();
296  double track_startz = start.Z();
297  if( track_startz>fMaxTrackStartZ ) continue;//track starts within first 4 planes
298 
299  vertexX->Fill(vert[0]->GetX());
300  vertexY->Fill(vert[0]->GetY());
301  vertexZ->Fill(vert[0]->GetZ());
302  trackLength->Fill(Ltrack);
303  trackStartX->Fill(start.X());
304  trackStartY->Fill(start.Y());
305  trackStartZ->Fill(start.Z());
306 
307  //save track associated cell information to vectors
308  std::vector<float> trkcellE;
309  std::vector<int> trkcellPlane;
310  std::vector<int> trkcellCell;
311  std::vector<int> trkcellADC;
312  std::vector<float> trkcellPECorr;
313  std::vector<float> trkcellPE;
314 
315  for( unsigned int icell=0; icell<Ktracks[0]->NCell(); ++ icell){
316  const art::Ptr<rb::CellHit>& chit = Ktracks[0]->Cell(icell);
317  const rb::RecoHit rhit(cal->MakeRecoHit(*chit, Ktracks[0]->W(chit.get())));
318 
319  if( !rhit.IsCalibrated() ) continue;
320 
321  trkcellE.push_back(rhit.GeV());
322  trkcellADC.push_back(chit->ADC());
323  trkcellPlane.push_back(chit->Plane());
324  trkcellCell.push_back(chit->Cell());
325  trkcellPECorr.push_back(rhit.PECorr());
326  trkcellPE.push_back(chit->PE());
327  }
328 
329  int ncells_track[6]={0};
330  double ecells_track[6]={0};
331  for( unsigned int ic=0; ic<trkcellE.size(); ++ic ){
332  ncells_track[0]++;
333  ecells_track[0] += trkcellE[ic];
334 
335  planeEnergy[trkcellPlane[ic]]->Fill(trkcellE[ic]);
336  Nevts_percell[trkcellPlane[ic]][trkcellCell[ic]]++;
337 
338  if(trkcellCell[ic]<32 ){
339  modulePE[trkcellPlane[ic]][0]->Fill(trkcellPE[ic]);
340  modulePECorr[trkcellPlane[ic]][0]->Fill(trkcellPECorr[ic]);
341  moduleADC[trkcellPlane[ic]][0]->Fill(trkcellADC[ic]);
342  moduleEnergy[trkcellPlane[ic]][0]->Fill(trkcellE[ic]);
343  }//H bottom or V east
344  else if( trkcellCell[ic]<64 ){
345  modulePE[trkcellPlane[ic]][1]->Fill(trkcellPE[ic]);
346  modulePECorr[trkcellPlane[ic]][1]->Fill(trkcellPECorr[ic]);
347  moduleADC[trkcellPlane[ic]][1]->Fill(trkcellADC[ic]);
348  moduleEnergy[trkcellPlane[ic]][1]->Fill(trkcellE[ic]);
349  }//middle
350  else{
351  modulePE[trkcellPlane[ic]][2]->Fill(trkcellPE[ic]);
352  modulePECorr[trkcellPlane[ic]][2]->Fill(trkcellPECorr[ic]);
353  moduleADC[trkcellPlane[ic]][2]->Fill(trkcellADC[ic]);
354  moduleEnergy[trkcellPlane[ic]][2]->Fill(trkcellE[ic]);
355  }//H top or V west
356 
357  PECorr_track[0]->Fill(trkcellPECorr[ic]);
358  Ecell_track[0]->Fill(trkcellE[ic]);
359 
360  if( trkcellPlane[ic]<192 ){
361  ncells_track[1]++;
362  ecells_track[1] += trkcellE[ic];
363  PECorr_track[1]->Fill(trkcellPECorr[ic]);
364  Ecell_track[1]->Fill(trkcellE[ic]);
365 
366  if( trkcellPlane[ic]<64 ){
367  ncells_track[2]++;
368  ecells_track[2] += trkcellE[ic];
369  PECorr_track[2]->Fill(trkcellPECorr[ic]);
370  Ecell_track[2]->Fill(trkcellE[ic]);
371  }//DB1
372  else if( trkcellPlane[ic]<128 ){
373  ncells_track[3]++;
374  ecells_track[3] += trkcellE[ic];
375  PECorr_track[3]->Fill(trkcellPECorr[ic]);
376  Ecell_track[3]->Fill(trkcellE[ic]);
377  }//DB2
378  else {
379  ncells_track[4]++;
380  ecells_track[4] += trkcellE[ic];
381  PECorr_track[4]->Fill(trkcellPECorr[ic]);
382  Ecell_track[4]->Fill(trkcellE[ic]);
383  }//DB3
384  }//DB1,2,3
385  else{
386  ncells_track[5]++;
387  ecells_track[5] += trkcellE[ic];
388  PECorr_track[5]->Fill(trkcellPECorr[ic]);
389  Ecell_track[5]->Fill(trkcellE[ic]);
390 
391  if( trkcellPlane[ic]%2==0 ){
392  PECorr_track_MCH->Fill(trkcellPECorr[ic]);
393  Ecell_track_MCH->Fill(trkcellE[ic]);
394  }
395  else{
396  PECorr_track_MCV->Fill(trkcellPECorr[ic]);
397  Ecell_track_MCV->Fill(trkcellE[ic]);
398  }
399 
400  }//muon catcher
401  }//end loop of track associated cells
402 
403  for( int id=0; id<6; ++id ){
404  Ncells_track[id]->Fill(ncells_track[id]);
405  Ecells_track[id]->Fill(ecells_track[id]);
406  }
407 
408  }//end loop of slice
409 
410  return;
411  }//end analyze
::xsd::cxx::tree::id< char, ncname > id
Definition: Database.h:165
std::string fKTrackLabel
label for slices
TH1F * moduleEnergy[214][3]
unsigned int NCell(geo::View_t view) const
Number of cells in view view.
Definition: Cluster.cxx:134
fvar< T > fabs(const fvar< T > &x)
Definition: fabs.hpp:15
std::string fVertexLabel
label for cell hits
unsigned short Plane() const
Definition: CellHit.h:39
rb::RecoHit MakeRecoHit(rb::CellHit const &cellhit, double w)
A collection of associated CellHits.
Definition: Cluster.h:47
Calibrated quantities relying on position in the orthogonal view. To generate a rb::CellHit from a rb...
Definition: RecoHit.h:19
unsigned short Cell() const
Definition: CellHit.h:40
TH1F * modulePECorr[214][3]
float PE() const
Definition: CellHit.h:42
double GetY(int dcm=1, int feb=0, int pix=0)
Definition: PlotOnMon.C:119
std::string fCellHitLabel
label for kalman tracks
int16_t ADC(uint32_t i) const
Definition: RawDigit.cxx:58
T const * get() const
Definition: Ptr.h:321
TDirectory * dir
Definition: macro.C:5
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
void geom(int which=0)
Definition: geom.C:163
T cos(T number)
Definition: d0nt_math.hpp:78
int fMinHit
label for vertex
bool IsNoise() const
Is the noise flag set?
Definition: Cluster.h:163
double GetX(int ndb=14, int db=1, int feb=0, int pix=0)
Definition: PlotOnMon.C:111
void rockmuon::NDRockMuon::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 151 of file NDRockMuon_module.cc.

References getGoodRuns4SAM::detname, Ecell_track, Ecell_track_MCH, Ecell_track_MCV, Ecells_track, MECModelEnuComparisons::i, ip, art::TFileDirectory::make(), moduleADC, moduleEnergy, modulePE, modulePECorr, Ncells_track, Nevts_percell, PECorr_track, PECorr_track_MCH, PECorr_track_MCV, planeEnergy, string, trackLength, trackStartX, trackStartY, trackStartZ, vertexX, vertexY, and vertexZ.

152  {
154 
155  for( int ip=0; ip<214; ++ip ){
156  for( int ic=0; ic<96; ++ic ){
157  Nevts_percell[ip][ic]=0;
158  }
159  }
160 
161  vertexX=tfs->make<TH1F>("vertexX","",40,-200,200);
162  vertexY=tfs->make<TH1F>("vertexY","",40,-200,200);
163  vertexZ=tfs->make<TH1F>("vertexZ","",100,0,100);
164  vertexX->Sumw2();
165  vertexY->Sumw2();
166  vertexZ->Sumw2();
167 
168  trackStartX=tfs->make<TH1F>("trackStartX","",40,-200,200);
169  trackStartY=tfs->make<TH1F>("trackStartY","",40,-200,200);
170  trackStartZ=tfs->make<TH1F>("trackStartZ","",100,0,100);
171  trackStartX->Sumw2();
172  trackStartY->Sumw2();
173  trackStartZ->Sumw2();
174 
175  trackLength=tfs->make<TH1F>("trackLength","",160,0,1600);
176  trackLength->Sumw2();
177 
178  TString detname[6]={"all","DB123","DB1","DB2","DB3","MC"};
179  for( int i=0; i<6; ++i ){
180  TString name1="Ncells_track_"+detname[i];
181  Ncells_track[i]=tfs->make<TH1F>(name1,"",300,0,300);
182  Ncells_track[i]->Sumw2();
183 
184  TString name2="Ecells_track_"+detname[i];
185  Ecells_track[i]=tfs->make<TH1F>(name2,"",300,0,3);
186  Ecells_track[i]->Sumw2();
187 
188  TString name3="PECorr_track_"+detname[i];
189  PECorr_track[i]=tfs->make<TH1F>(name3,"",5000,0,5000);
190  PECorr_track[i]->Sumw2();
191 
192  TString name4="Ecell_track_"+detname[i];
193  Ecell_track[i]=tfs->make<TH1F>(name4,"",1000,0,0.1);
194  Ecell_track[i]->Sumw2();
195  }//loop det parts
196 
197  PECorr_track_MCH=tfs->make<TH1F>("PECorr_track_MCH","",5000,0,5000);
198  PECorr_track_MCH->Sumw2();
199  PECorr_track_MCV=tfs->make<TH1F>("PECorr_track_MCV","",5000,0,5000);
200  PECorr_track_MCV->Sumw2();
201 
202  Ecell_track_MCH=tfs->make<TH1F>("Ecell_track_MCH","",1000,0,0.1);
203  Ecell_track_MCH->Sumw2();
204  Ecell_track_MCV=tfs->make<TH1F>("Ecell_track_MCV","",1000,0,0.1);
205  Ecell_track_MCV->Sumw2();
206 
207  for( int i=0; i<214; ++i){
208  TString perplaneEnergy=Form("Ecells_plane%i",i);
209  planeEnergy[i]=tfs->make<TH1F>(perplaneEnergy,"",1000,0,0.1);
210  planeEnergy[i]->Sumw2();
211  }
212 
213  for( int ip=0; ip<214; ++ip ){
214  std::stringstream planenumber;
215  planenumber << ip;
216  std::string str_planenumber=planenumber.str();
217 
218  for( int ic=0; ic<3; ++ic ){
219  std::stringstream modulenumber;
220  modulenumber << ic;
221  std::string str_modulenumber=modulenumber.str();
222 
223  std::string namePECorr="modulePECorr_plane"+str_planenumber+"_module"+str_modulenumber;
224  TString str_namePECorr=namePECorr;
225  modulePECorr[ip][ic]=tfs->make<TH1F>(str_namePECorr,"",5000,0,5000);
226  modulePECorr[ip][ic]->Sumw2();
227 
228  std::string namePE="modulePE_plane"+str_planenumber+"_module"+str_modulenumber;
229  TString str_namePE=namePE;
230  modulePE[ip][ic]=tfs->make<TH1F>(str_namePE,"",5000,0,5000);
231  modulePE[ip][ic]->Sumw2();
232 
233  std::string nameADC="moduleADC_plane"+str_planenumber+"_module"+str_modulenumber;
234  TString str_nameADC=nameADC;
235  moduleADC[ip][ic]=tfs->make<TH1F>(str_nameADC,"",5000,0,5000);
236  moduleADC[ip][ic]->Sumw2();
237 
238  std::string nameEnergy="moduleEnergy_plane"+str_planenumber+"_module"+str_modulenumber;
239  TString str_nameEnergy=nameEnergy;
240  moduleEnergy[ip][ic]=tfs->make<TH1F>(str_nameEnergy,"",1000,0,0.1);
241  moduleEnergy[ip][ic]->Sumw2();
242  }//loop module index
243  }//loop plane index
244 
245  }
TH1F * moduleEnergy[214][3]
TString ip
Definition: loadincs.C:5
TH1F * modulePECorr[214][3]
T * make(ARGS...args) const
enum BeamMode string
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 rockmuon::NDRockMuon::endJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 413 of file NDRockMuon_module.cc.

References DEFINE_ART_MODULE(), MECModelEnuComparisons::i, ip, art::TFileDirectory::make(), and Nevts_percell.

414  {
416  TH1F *Nevts_incell_perplane[214];//# of events in each cell per each plane
417  for( int i=0; i<214; ++i ){
418  TString perplaneEvts=Form("Nevts_plane%i",i);
419  Nevts_incell_perplane[i]=tfs->make<TH1F>(perplaneEvts,"",96,-0.5,95.5);
420  }
421 
422  for( int ip=0; ip<214; ++ip ){
423  for( int ic=0; ic<96; ++ic ){
424  Nevts_incell_perplane[ip]->SetBinContent(ic+1,Nevts_percell[ip][ic]);
425  }//loop cell number
426  }//loop plane number
427 
428  }
TString ip
Definition: loadincs.C:5
T * make(ARGS...args) const
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 rockmuon::NDRockMuon::reconfigure ( const fhicl::ParameterSet p)

Definition at line 133 of file NDRockMuon_module.cc.

References SET, and string.

Referenced by NDRockMuon().

134  {
135  #define SET(T,N) { f##N = pset.get<T>(#N); }
136  SET(std::string, SliceLabel);
137  SET(std::string, CellHitLabel);
138  SET(std::string, KTrackLabel);
139  SET(std::string, VertexLabel);
140 
141  SET(int, MinHit);
142  SET(float, MinTrackLength);
143  SET(float, MinTrackCosTheta);
144  SET(float, MaxTrackStartZ);
145  SET(float, MaxVertexX);
146  SET(float, MaxVertexY);
147  #undef SET
148  }
#define SET(T, N)
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

TH1F* rockmuon::NDRockMuon::Ecell_track[6]
private

Definition at line 105 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::Ecell_track_MCH
private

Definition at line 106 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::Ecell_track_MCV
private

Definition at line 107 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::Ecells_track[6]
private

Definition at line 99 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

std::string rockmuon::NDRockMuon::fCellHitLabel
private

label for kalman tracks

Definition at line 77 of file NDRockMuon_module.cc.

Referenced by analyze().

std::string rockmuon::NDRockMuon::fKTrackLabel
private

label for slices

Definition at line 76 of file NDRockMuon_module.cc.

Referenced by analyze().

float rockmuon::NDRockMuon::fMaxTrackStartZ
private

Definition at line 84 of file NDRockMuon_module.cc.

Referenced by analyze().

float rockmuon::NDRockMuon::fMaxVertexX
private

Definition at line 85 of file NDRockMuon_module.cc.

Referenced by analyze().

float rockmuon::NDRockMuon::fMaxVertexY
private

Definition at line 86 of file NDRockMuon_module.cc.

Referenced by analyze().

int rockmuon::NDRockMuon::fMinHit
private

label for vertex

Definition at line 81 of file NDRockMuon_module.cc.

Referenced by analyze().

float rockmuon::NDRockMuon::fMinTrackCosTheta
private

Definition at line 83 of file NDRockMuon_module.cc.

Referenced by analyze().

float rockmuon::NDRockMuon::fMinTrackLength
private

Definition at line 82 of file NDRockMuon_module.cc.

Referenced by analyze().

std::string rockmuon::NDRockMuon::fSliceLabel
private

Definition at line 75 of file NDRockMuon_module.cc.

Referenced by analyze().

std::string rockmuon::NDRockMuon::fVertexLabel
private

label for cell hits

Definition at line 78 of file NDRockMuon_module.cc.

Referenced by analyze().

TH1F* rockmuon::NDRockMuon::moduleADC[214][3]
private

Definition at line 110 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::moduleEnergy[214][3]
private

Definition at line 113 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::modulePE[214][3]
private

Definition at line 112 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::modulePECorr[214][3]
private

Definition at line 111 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::Ncells_track[6]
private

Definition at line 98 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

int rockmuon::NDRockMuon::Nevts_percell[214][96]

Definition at line 70 of file NDRockMuon_module.cc.

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

TH1F* rockmuon::NDRockMuon::PECorr_track[6]
private

Definition at line 101 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::PECorr_track_MCH
private

Definition at line 102 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::PECorr_track_MCV
private

Definition at line 103 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::planeEnergy[214]
private

Definition at line 109 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::trackLength
private

Definition at line 96 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::trackStartX
private

Definition at line 93 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::trackStartY
private

Definition at line 94 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::trackStartZ
private

Definition at line 95 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::vertexX
private

Definition at line 89 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::vertexY
private

Definition at line 90 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().

TH1F* rockmuon::NDRockMuon::vertexZ
private

Definition at line 91 of file NDRockMuon_module.cc.

Referenced by analyze(), and beginJob().


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