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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 BeamStructureAna (const fhicl::ParameterSet &pset)
 
void reconfigure (const fhicl::ParameterSet &pset)
 
void analyze (const art::Event &evt)
 
void beginJob ()
 
void endJob ()
 
void beginSubRun (const art::SubRun &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 Attributes

std::string fRawWCDataLabel
 
std::string fRecoTCDigitLabel
 
std::string fRecoWCDigitLabel
 
std::string fRecoToFDigitLabel
 
std::string fRecoToFLabel
 
std::string fRecoWCTrackLabel
 
TH1I * hNumTCHits
 
TH1I * hNumBLDetHits
 
TH1I * hCumulativeBLDetHits
 
TH1I * hBLReco
 
std::vector< std::vector< TH1I * > > hWCProfiles
 
std::vector< std::vector< TH1I * > > hCumulativeWCProfiles
 
unsigned int fTotSpills
 
unsigned int fTotTriggers
 
TFile * fOutFile
 

Detailed Description

Definition at line 44 of file BeamStructureAna_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

tbana::BeamStructureAna::BeamStructureAna ( const fhicl::ParameterSet pset)

Definition at line 84 of file BeamStructureAna_module.cc.

References reconfigure().

84  : EDAnalyzer(pset) {
85  this->reconfigure(pset);
86 }
void reconfigure(const fhicl::ParameterSet &pset)
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100

Member Function Documentation

void tbana::BeamStructureAna::analyze ( const art::Event evt)

Definition at line 186 of file BeamStructureAna_module.cc.

References DEFINE_ART_MODULE(), beamlinegeo::DS, Fill(), art::fill_ptr_vector(), fRawWCDataLabel, fRecoTCDigitLabel, fRecoToFDigitLabel, fRecoToFLabel, fRecoWCDigitLabel, fRecoWCTrackLabel, fTotTriggers, art::DataViewImpl::getByLabel(), hBLReco, hCumulativeBLDetHits, hCumulativeWCProfiles, hNumBLDetHits, hNumTCHits, hWCProfiles, and beamlinegeo::US.

186  {
187 
188  ++fTotTriggers;
189 
190  // Get the raw WC data
192  std::vector<art::Ptr<rawdata::RawBeamlineWC> > wcs;
193  if (evt.getByLabel(fRawWCDataLabel, wcHandle))
194  art::fill_ptr_vector(wcs, wcHandle);
195 
196  // Get the reconstructed digits for the target counter
198  std::vector<art::Ptr<brb::BeamlineDigit> > scDigits;
199  if (evt.getByLabel(fRecoTCDigitLabel, scDigitHandle))
200  art::fill_ptr_vector(scDigits, scDigitHandle);
201 
202  // Get the reconstructed wc digits
204  std::vector<art::Ptr<brb::BeamlineDigit> > wcDigits;
205  if (evt.getByLabel(fRecoWCDigitLabel, wcDigitHandle))
206  art::fill_ptr_vector(wcDigits, wcDigitHandle);
207 
208  // Get reco ToF
210  std::vector<art::Ptr<brb::ToF> > tofs;
211  if (evt.getByLabel(fRecoToFLabel, tofHandle))
212  art::fill_ptr_vector(tofs, tofHandle);
213 
214  // Get reco WCTrack
216  std::vector<art::Ptr<brb::WCTrack> > wcTracks;
217  if (evt.getByLabel(fRecoWCTrackLabel, wcTrackHandle))
218  art::fill_ptr_vector(wcTracks, wcTrackHandle);
219 
220  // Get the reconstructed ToF digits
222  std::vector<art::Ptr<brb::BeamlineDigit> > tofDigits;
223  if (evt.getByLabel(fRecoToFDigitLabel, tofDigitHandle))
224  art::fill_ptr_vector(tofDigits, tofDigitHandle);
225 
226  // Fill wire chamber profiles
227  std::vector<std::vector<rawdata::RawBeamlineWC::WCPulse> > x_pulses;
228  std::vector<std::vector<rawdata::RawBeamlineWC::WCPulse> > y_pulses;
229  for (unsigned int wc = 0; wc < wcs.size(); ++wc) {
230  x_pulses.push_back(wcs[wc]->XPulses());
231  y_pulses.push_back(wcs[wc]->YPulses());
232  }
233  for (unsigned int wc = 0; wc < wcs.size(); ++wc) {
234  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator xPulseIt = x_pulses[wc].begin();
235  xPulseIt != x_pulses[wc].end(); ++xPulseIt)
236  hWCProfiles[wc][0]->Fill(xPulseIt->Channel);
237  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator yPulseIt = y_pulses[wc].begin();
238  yPulseIt != y_pulses[wc].end(); ++yPulseIt)
239  hWCProfiles[wc][1]->Fill(yPulseIt->Channel);
240  }
241 
242  // Get the number of hits on each SC
243  // 0 is the TC, 1-4 are the paddles
244  std::map<unsigned int, unsigned int> scDigitHits;
245  for (std::vector<art::Ptr<brb::BeamlineDigit> >::const_iterator scDigitIt = scDigits.begin();
246  scDigitIt != scDigits.end(); ++scDigitIt)
247  ++scDigitHits[(*scDigitIt)->ChannelID().Channel];
248 
249  // Get the number of hits on each WC digit
250  std::map<unsigned int, unsigned int> wcDigitHits;
251  for (std::vector<art::Ptr<brb::BeamlineDigit> >::const_iterator wcDigitIt = wcDigits.begin();
252  wcDigitIt != wcDigits.end(); ++wcDigitIt)
253  ++wcDigitHits[(*wcDigitIt)->ChannelID().Channel];
254 
255  // Get the number of hits on each ToF channel
256  std::map<unsigned int, unsigned int> usToFHits, dsToFHits;
257  for (std::vector<art::Ptr<brb::BeamlineDigit> >::const_iterator tofDigitIt = tofDigits.begin();
258  tofDigitIt != tofDigits.end(); ++tofDigitIt) {
259  if ((*tofDigitIt)->ChannelID().Detector == beamlinegeo::ToFCounter::US)
260  ++usToFHits[(*tofDigitIt)->ChannelID().Channel];
261  if ((*tofDigitIt)->ChannelID().Detector == beamlinegeo::ToFCounter::DS)
262  ++dsToFHits[(*tofDigitIt)->ChannelID().Channel];
263  }
264 
265  hNumTCHits->Fill(scDigitHits[0]);
266 
267  hNumBLDetHits->Fill("TC", scDigitHits[0]);
268  hNumBLDetHits->Fill("ToF-US-1", usToFHits[0]);
269  hNumBLDetHits->Fill("ToF-US-2", usToFHits[1]);
270  hNumBLDetHits->Fill("ToF-US-3", usToFHits[2]);
271  hNumBLDetHits->Fill("ToF-US-4", usToFHits[3]);
272  hNumBLDetHits->Fill("PAD1", scDigitHits[1]);
273  hNumBLDetHits->Fill("WC1", wcDigitHits[0]);
274  hNumBLDetHits->Fill("PAD2", scDigitHits[2]);
275  hNumBLDetHits->Fill("PAD3", scDigitHits[3]);
276  hNumBLDetHits->Fill("PAD4", scDigitHits[4]);
277  hNumBLDetHits->Fill("ToF-DS-1", dsToFHits[0]);
278  hNumBLDetHits->Fill("ToF-DS-2", dsToFHits[1]);
279  hNumBLDetHits->Fill("ToF-DS-3", dsToFHits[2]);
280  hNumBLDetHits->Fill("ToF-DS-4", dsToFHits[3]);
281 
282  if (scDigitHits[0]) {
283  hCumulativeBLDetHits->Fill("TC", 1);
284  if (usToFHits[0] and usToFHits[1] and usToFHits[2] and usToFHits[3]) {
285  hCumulativeBLDetHits->Fill("+ToF-US", 1);
286  if (scDigitHits[1]) {
287  hCumulativeBLDetHits->Fill("+PAD1", 1);
288  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator xPulseIt = x_pulses[0].begin();
289  xPulseIt != x_pulses[0].end(); ++xPulseIt)
290  hCumulativeWCProfiles[0][0]->Fill(xPulseIt->Channel);
291  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator yPulseIt = y_pulses[0].begin();
292  yPulseIt != y_pulses[0].end(); ++yPulseIt)
293  hCumulativeWCProfiles[0][1]->Fill(yPulseIt->Channel);
294  if (wcDigitHits[0]) {
295  hCumulativeBLDetHits->Fill("+WC1", 1);
296  if (scDigitHits[2]) {
297  hCumulativeBLDetHits->Fill("+PAD2", 1);
298  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator xPulseIt = x_pulses[1].begin();
299  xPulseIt != x_pulses[1].end(); ++xPulseIt)
300  hCumulativeWCProfiles[1][0]->Fill(xPulseIt->Channel);
301  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator yPulseIt = y_pulses[1].begin();
302  yPulseIt != y_pulses[1].end(); ++yPulseIt)
303  hCumulativeWCProfiles[1][1]->Fill(yPulseIt->Channel);
304  if (scDigitHits[3]) {
305  hCumulativeBLDetHits->Fill("+PAD3", 1);
306  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator xPulseIt = x_pulses[2].begin();
307  xPulseIt != x_pulses[2].end(); ++xPulseIt)
308  hCumulativeWCProfiles[2][1]->Fill(xPulseIt->Channel);
309  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator yPulseIt = y_pulses[2].begin();
310  yPulseIt != y_pulses[2].end(); ++yPulseIt)
311  hCumulativeWCProfiles[2][1]->Fill(yPulseIt->Channel);
312  if (scDigitHits[4]) {
313  hCumulativeBLDetHits->Fill("+PAD4", 1);
314  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator xPulseIt = x_pulses[3].begin();
315  xPulseIt != x_pulses[3].end(); ++xPulseIt)
316  hCumulativeWCProfiles[3][1]->Fill(xPulseIt->Channel);
317  for (std::vector<rawdata::RawBeamlineWC::WCPulse>::const_iterator yPulseIt = y_pulses[3].begin();
318  yPulseIt != y_pulses[3].end(); ++yPulseIt)
319  hCumulativeWCProfiles[3][1]->Fill(yPulseIt->Channel);
320  if (dsToFHits[0] and dsToFHits[1] and dsToFHits[2] and dsToFHits[3])
321  hCumulativeBLDetHits->Fill("+ToF-DS", 1);
322  }
323  }
324  }
325  }
326  }
327  }
328  }
329 
330  if (!tofs.size() and !wcTracks.size())
331  hBLReco->Fill("None", 1);
332  else if (tofs.size() and !wcTracks.size())
333  hBLReco->Fill("ToF", 1);
334  else if (!tofs.size() and wcTracks.size())
335  hBLReco->Fill("WCTrack", 1);
336  else if (tofs.size() and wcTracks.size())
337  hBLReco->Fill("Both", 1);
338 
339  return;
340 
341 }
std::vector< std::vector< TH1I * > > hCumulativeWCProfiles
correl_yv Fill(-(dy[iP-1][iC-1]), hyv->GetBinContent(iP, iC))
std::vector< std::vector< TH1I * > > hWCProfiles
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Definition: Ptr.h:464
Definition: fwd.h:28
void tbana::BeamStructureAna::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 99 of file BeamStructureAna_module.cc.

References fOutFile, fTotSpills, fTotTriggers, hBLReco, hCumulativeBLDetHits, hCumulativeWCProfiles, hNumBLDetHits, hNumTCHits, hWCProfiles, and NDAPDHVSetting::plane.

99  {
100  gStyle->SetOptStat(0);
101  fTotSpills = 0;
102  fTotTriggers = 0;
103  fOutFile = new TFile("BeamStructureAna.root", "RECREATE");
104  hNumTCHits = new TH1I("NumTCHits", ";Number of Target Counter Hits;", 10, 0, 10);
105  hNumTCHits->GetXaxis()->SetNdivisions(10);
106  hNumTCHits->GetXaxis()->CenterLabels();
107  hNumTCHits->SetMinimum(0);
108  hNumBLDetHits = new TH1I("NumBLDetHits", ";Beamline Detector;Number of Hits;", 14, 0, 14);
109  hNumBLDetHits->GetXaxis()->SetBinLabel(1, "TC");
110  hNumBLDetHits->GetXaxis()->SetBinLabel(2, "ToF-US-1");
111  hNumBLDetHits->GetXaxis()->SetBinLabel(3, "ToF-US-2");
112  hNumBLDetHits->GetXaxis()->SetBinLabel(4, "ToF-US-3");
113  hNumBLDetHits->GetXaxis()->SetBinLabel(5, "ToF-US-4");
114  hNumBLDetHits->GetXaxis()->SetBinLabel(6, "PAD1");
115  hNumBLDetHits->GetXaxis()->SetBinLabel(7, "WC1");
116  hNumBLDetHits->GetXaxis()->SetBinLabel(8, "PAD2");
117  hNumBLDetHits->GetXaxis()->SetBinLabel(9, "PAD3");
118  hNumBLDetHits->GetXaxis()->SetBinLabel(10, "PAD4");
119  hNumBLDetHits->GetXaxis()->SetBinLabel(11, "ToF-DS-1");
120  hNumBLDetHits->GetXaxis()->SetBinLabel(12, "ToF-DS-2");
121  hNumBLDetHits->GetXaxis()->SetBinLabel(13, "ToF-DS-3");
122  hNumBLDetHits->GetXaxis()->SetBinLabel(14, "ToF-DS-4");
123  //hNumBLDetHits->SetMinimum(0);
124  hCumulativeBLDetHits = new TH1I("CumulativeBLDetHits", ";Cumulative Detectors;Number of Triggers;", 8, 0, 8);
125  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(1, "TC");
126  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(2, "+ToF-US");
127  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(3, "+PAD1");
128  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(4, "+WC1");
129  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(5, "+PAD2");
130  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(6, "+PAD3");
131  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(7, "+PAD4");
132  hCumulativeBLDetHits->GetXaxis()->SetBinLabel(8, "+ToF-DS");
133  //hCumulativeBLDetHits->SetMinimum(0);
134  hBLReco = new TH1I("BLReco", ";Beamline Reco;", 4, 0, 4);
135  hBLReco->GetXaxis()->SetBinLabel(1, "None");
136  hBLReco->GetXaxis()->SetBinLabel(2, "ToF");
137  hBLReco->GetXaxis()->SetBinLabel(3, "WCTrack");
138  hBLReco->GetXaxis()->SetBinLabel(4, "Both");
139  for (unsigned int wc = 0; wc < 4; ++wc) {
140  std::vector<TH1I*> wcProfiles, cumulativeWCProfiles;
141  for (unsigned int plane = 0; plane < 2; ++plane) {
142  wcProfiles.push_back(new TH1I(Form("WC%dPlane%dProfile", wc, plane), Form(";WC %d, Plane %d", wc, plane), 128, 0, 128));
143  cumulativeWCProfiles.push_back(new TH1I(Form("WC%dPlane%dCumulativeProfile", wc, plane), Form(";WC %d, Plane %d", wc, plane), 128, 0, 128));
144  }
145  hWCProfiles.push_back(wcProfiles);
146  hCumulativeWCProfiles.push_back(cumulativeWCProfiles);
147  }
148 }
std::vector< std::vector< TH1I * > > hCumulativeWCProfiles
std::vector< std::vector< TH1I * > > hWCProfiles
void tbana::BeamStructureAna::beginSubRun ( const art::SubRun sr)

Definition at line 151 of file BeamStructureAna_module.cc.

References fTotSpills.

151  {
152  ++fTotSpills;
153  return;
154 }
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 tbana::BeamStructureAna::endJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 157 of file BeamStructureAna_module.cc.

References bin, canv, om::cout, allTimeWatchdog::endl, fOutFile, fTotSpills, fTotTriggers, hBLReco, hCumulativeBLDetHits, hCumulativeWCProfiles, hNumBLDetHits, hNumTCHits, hWCProfiles, and NDAPDHVSetting::plane.

157  {
158  fOutFile->cd();
159  hNumTCHits->Write();
160  hNumBLDetHits->Write();
161  hCumulativeBLDetHits->Write();
162  hBLReco->Write();
163  for (unsigned int wc = 0; wc < 4; ++wc) {
164  for (unsigned int plane = 0; plane < 2; ++plane) {
165  hWCProfiles[wc][plane]->Write();
166  hCumulativeWCProfiles[wc][plane]->Write();
167  TCanvas* canv = new TCanvas(Form("WC%dPlane%d", wc, plane), Form("WC %d, Plane %d", wc, plane), 1600, 600);
168  canv->Divide(2,1);
169  canv->cd(1);
170  hWCProfiles[wc][plane]->Draw("hist");
171  canv->cd(2);
172  hCumulativeWCProfiles[wc][plane]->Draw("hist");
173  canv->Write();
174  delete canv;
175  }
176  }
177  fOutFile->Close();
178  delete fOutFile;
179 
180  std::cout << "Total spills: " << fTotSpills << "; total triggers: " << fTotTriggers << std::endl;
181  for (int bin = 1; bin <= hNumTCHits->GetNbinsX(); ++bin)
182  std::cout << " Triggers with " << hNumTCHits->GetBinLowEdge(bin) << " TC hits: " << hNumTCHits->GetBinContent(bin) << std::endl;
183 }
std::vector< std::vector< TH1I * > > hCumulativeWCProfiles
TCanvas * canv
std::vector< std::vector< TH1I * > > hWCProfiles
float bin[41]
Definition: plottest35.C:14
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 art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void tbana::BeamStructureAna::reconfigure ( const fhicl::ParameterSet pset)

Definition at line 89 of file BeamStructureAna_module.cc.

References fRawWCDataLabel, fRecoTCDigitLabel, fRecoToFDigitLabel, fRecoToFLabel, fRecoWCDigitLabel, fRecoWCTrackLabel, fhicl::ParameterSet::get(), and string.

Referenced by BeamStructureAna().

89  {
90  fRawWCDataLabel = pset.get<std::string>("RawWCDataLabel");
91  fRecoTCDigitLabel = pset.get<std::string>("RecoTCDigitLabel");
92  fRecoWCDigitLabel = pset.get<std::string>("RecoWCDigitLabel");
93  fRecoToFDigitLabel = pset.get<std::string>("RecoToFDigitLabel");
94  fRecoToFLabel = pset.get<std::string>("RecoToFLabel");
95  fRecoWCTrackLabel = pset.get<std::string>("RecoWCTrackLabel");
96 }
T get(std::string const &key) const
Definition: ParameterSet.h:231
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

TFile* tbana::BeamStructureAna::fOutFile
private

Definition at line 77 of file BeamStructureAna_module.cc.

Referenced by beginJob(), and endJob().

std::string tbana::BeamStructureAna::fRawWCDataLabel
private

Definition at line 59 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

std::string tbana::BeamStructureAna::fRecoTCDigitLabel
private

Definition at line 60 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

std::string tbana::BeamStructureAna::fRecoToFDigitLabel
private

Definition at line 62 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

std::string tbana::BeamStructureAna::fRecoToFLabel
private

Definition at line 63 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

std::string tbana::BeamStructureAna::fRecoWCDigitLabel
private

Definition at line 61 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

std::string tbana::BeamStructureAna::fRecoWCTrackLabel
private

Definition at line 64 of file BeamStructureAna_module.cc.

Referenced by analyze(), and reconfigure().

unsigned int tbana::BeamStructureAna::fTotSpills
private

Definition at line 73 of file BeamStructureAna_module.cc.

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

unsigned int tbana::BeamStructureAna::fTotTriggers
private

Definition at line 74 of file BeamStructureAna_module.cc.

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

TH1I* tbana::BeamStructureAna::hBLReco
private

Definition at line 70 of file BeamStructureAna_module.cc.

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

TH1I* tbana::BeamStructureAna::hCumulativeBLDetHits
private

Definition at line 69 of file BeamStructureAna_module.cc.

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

std::vector<std::vector<TH1I*> > tbana::BeamStructureAna::hCumulativeWCProfiles
private

Definition at line 72 of file BeamStructureAna_module.cc.

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

TH1I* tbana::BeamStructureAna::hNumBLDetHits
private

Definition at line 68 of file BeamStructureAna_module.cc.

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

TH1I* tbana::BeamStructureAna::hNumTCHits
private

Definition at line 67 of file BeamStructureAna_module.cc.

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

std::vector<std::vector<TH1I*> > tbana::BeamStructureAna::hWCProfiles
private

Definition at line 71 of file BeamStructureAna_module.cc.

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


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