Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
tbana::DetectorRateShutOff Class Reference
Inheritance diagram for tbana::DetectorRateShutOff:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 DetectorRateShutOff (const fhicl::ParameterSet &pset)
 
void reconfigure (const fhicl::ParameterSet &pset)
 
void analyze (const art::Event &evt)
 
void beginJob ()
 
void endJob ()
 
void StartSpill ()
 
void EndSpill ()
 
std::string workerType () const
 
void doBeginJob ()
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
Handle< TriggerResults > getTriggerResults (Event const &e) const
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< TconsumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< TmayConsumeView (InputTag const &tag)
 

Protected Member Functions

detail::ProcessAndEventSelectors & processAndEventSelectors ()
 
ConsumesCollector & consumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

Private Attributes

std::string fRawDataLabel
 
std::string fSpillInfoLabel
 
std::string fSpillCountersLabel
 
std::string fHoughModuleLabel
 
int fSpillNumber
 
int fPreviousTriggerMaster
 
float fTimeBin
 
double fMC6IC
 
double fMC6Col
 
std::vector< std::vector< unsigned long long > > fHitTimes
 
std::vector< std::vector< unsigned long long > > fShutOffTimes
 
std::vector< double > fMuonCounters
 
std::vector< std::pair< double, double > > fHoughX
 
std::vector< std::pair< double, double > > fHoughY
 
TH1F * hMC6IC
 
TH1F * hMC6Col
 
TH1I * hShutOffProxyDiff
 
TH1I * hWestShutOffProxyDiff
 
TH1I * hEastShutOffProxyDiff
 
TH1I * hTopShutOffProxyDiff
 
TH1I * hBottomShutOffProxyDiff
 
TH1D * hHoughRate
 
TH1D * hEastHoughRate
 
TH1D * hWestHoughRate
 
TH1D * hTopHoughRate
 
TH1D * hBottomHoughRate
 
TGraph * hHoughRateMC6IC
 
TGraph * hEastHoughRateMC6IC
 
TGraph * hWestHoughRateMC6IC
 
TGraph * hTopHoughRateMC6IC
 
TGraph * hBottomHoughRateMC6IC
 
TGraph * hHoughRateMC6Col
 
TGraph * hEastHoughRateMC6Col
 
TGraph * hWestHoughRateMC6Col
 
TGraph * hTopHoughRateMC6Col
 
TGraph * hBottomHoughRateMC6Col
 
TGraph * hShutOffsMC6IC
 
TGraph * hWestShutOffsMC6IC
 
TGraph * hEastShutOffsMC6IC
 
TGraph * hTopShutOffsMC6IC
 
TGraph * hBottomShutOffsMC6IC
 
TGraph * hProxyShutOffsMC6IC
 
TGraph * hWestProxyShutOffsMC6IC
 
TGraph * hEastProxyShutOffsMC6IC
 
TGraph * hTopProxyShutOffsMC6IC
 
TGraph * hBottomProxyShutOffsMC6IC
 
TGraph * hShutOffsMuonCounters
 
TGraph * hWestCountersShutOffs
 
TGraph * hEastCountersShutOffs
 
TGraph * hTopCountersShutOffs
 
TGraph * hBottomCountersShutOffs
 
TGraph * hShutOffsHoughTracks
 
TGraph * hWestHoughsShutOffs
 
TGraph * hEastHoughsShutOffs
 
TGraph * hTopHoughsShutOffs
 
TGraph * hBottomHoughsShutOffs
 
TGraph * hShutOffsRelHoughTracks
 
TGraph * hWestRelHoughsShutOffs
 
TGraph * hEastRelHoughsShutOffs
 
TGraph * hTopRelHoughsShutOffs
 
TGraph * hBottomRelHoughsShutOffs
 
TGraph * hProxyShutOffsHoughTracks
 
TGraph * hWestHoughsProxyShutOffs
 
TGraph * hEastHoughsProxyShutOffs
 
TGraph * hTopHoughsProxyShutOffs
 
TGraph * hBottomHoughsProxyShutOffs
 
TGraph * hProxyShutOffsRelHoughTracks
 
TGraph * hWestRelHoughsProxyShutOffs
 
TGraph * hEastRelHoughsProxyShutOffs
 
TGraph * hTopRelHoughsProxyShutOffs
 
TGraph * hBottomRelHoughsProxyShutOffs
 
TH1I * hShutOffTimes
 
std::map< unsigned int, TH1I * > hFEBSpillProfile
 
TMultiGraph * hBenfordLaw
 
TMultiGraph * hBenfordLawNoShutOff
 
TMultiGraph * hBenfordLawShutOff
 
TH1F * hBenfordLawExpoConstNoShutOff
 
TH1F * hBenfordLawExpoConstShutOff
 
art::ServiceHandle< geo::GeometryfGeo
 
art::ServiceHandle< cmap::CMapfChannelMap
 
art::ServiceHandle< art::TFileService > fFileService
 

Detailed Description

Definition at line 61 of file DetectorRateShutOff_module.cc.

Member Typedef Documentation

Definition at line 25 of file EDAnalyzer.h.

using art::EDAnalyzer::WorkerType = WorkerT<EDAnalyzer>
inherited

Definition at line 24 of file EDAnalyzer.h.

Constructor & Destructor Documentation

tbana::DetectorRateShutOff::DetectorRateShutOff ( const fhicl::ParameterSet pset)
explicit

Definition at line 195 of file DetectorRateShutOff_module.cc.

References reconfigure().

195  : EDAnalyzer(pset) {
196  this->reconfigure(pset);
197 }
void reconfigure(const fhicl::ParameterSet &pset)
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27

Member Function Documentation

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

Definition at line 366 of file DetectorRateShutOff_module.cc.

References b, plot_validation_datamc::c, getBrightness::cell, geo::GeometryBase::CellInfo(), std::cos(), febshutoff_auto::dcm, EndSpill(), fChannelMap, APDHVSetting::feb, fGeo, fHitTimes, fHoughModuleLabel, fHoughX, fHoughY, art::fill_ptr_vector(), fMC6Col, fMC6IC, fPreviousTriggerMaster, fRawDataLabel, fShutOffTimes, fSpillInfoLabel, fSpillNumber, rawdata::RawTrigger::fTriggerHeader_MasterTriggerNumber, rawdata::RawTrigger::fTriggerHeader_TriggerNumber, rawdata::RawTrigger::fTriggerRange_TriggerLength, art::DataViewImpl::getByLabel(), cmap::dataprov::CMap::GetCell(), cmap::dataprov::CMap::getDCM(), cmap::dataprov::CMap::getFEB(), cmap::dataprov::CMap::GetPlane(), geo::kX, geo::kY, m, make_pair(), sumdata::MCenterData::mc6col, sumdata::MCenterData::mc6int, NDAPDHVSetting::plane, elec2geo::pos, std::sin(), StartSpill(), fabricate::status, chisquared::theta, and POTSpillRate::view.

366  {
367 
368  // Get ifdb info
369  art::Handle<sumdata::MCenterData> spillInfoHandle;
370  if (evt.getByLabel(fSpillInfoLabel, spillInfoHandle)) {
371  fMC6IC = spillInfoHandle->mc6int;
372  fMC6Col = spillInfoHandle->mc6col;
373  }
374  // art::Handle<sumdata::TBSpillCounters> spillCountersHandle;
375  // sumdata::TBSpillCounters spillCounters;
376  // if (evt.getByLabel(fSpillCountersLabel, spillCountersHandle))
377  // spillCounters = *spillCountersHandle;
378 
379  // Get hits
381  std::vector<art::Ptr<rawdata::RawDigit> > digits;
382  if (evt.getByLabel(fRawDataLabel, digitHandle))
383  art::fill_ptr_vector(digits, digitHandle);
384 
385  // Get trigger information
387  std::vector<art::Ptr<rawdata::RawTrigger> > triggers;
388  if (evt.getByLabel(fRawDataLabel, triggerHandle))
389  art::fill_ptr_vector(triggers, triggerHandle);
390  const art::Ptr<rawdata::RawTrigger> trigger = triggers.at(0);
391 
392  // Get Hough tracks
394  std::vector<art::Ptr<rb::HoughResult> > houghs;
395  if (evt.getByLabel(fHoughModuleLabel, houghHandle))
396  art::fill_ptr_vector(houghs, houghHandle);
397 
398  long long int trigger_master = trigger->fTriggerHeader_MasterTriggerNumber;
399  unsigned long long trigger_number = trigger->fTriggerHeader_TriggerNumber;
400  unsigned long long trigger_seq = trigger_number - trigger_master;
401  uint32_t trigger_len = trigger->fTriggerRange_TriggerLength;
402  // unsigned long long trigger_time = trigger->fTriggerTimingMarker_TimeStart; // subtrigger time in NOvA
403 
404  // Time of this subtrigger wrt the start of the spill
405  unsigned long long subtrigger_time = trigger_len * trigger_seq * 500; // ns
406 
407  // New spill
408  if (trigger_master != fPreviousTriggerMaster) {
409  if (fSpillNumber >= 0)
410  this->EndSpill();
411  ++fSpillNumber;
412  fPreviousTriggerMaster = trigger_master;
413  this->StartSpill();
414  }
415 
416  // // Muon counters
417  // if (fMuonCounters[0] < 0 and spillCounters.detface1 > 0)
418  // fMuonCounters = {spillCounters.detface1, spillCounters.detface2, spillCounters.detface3, spillCounters.detface4};
419 
420  // Look at hits
421  for (std::vector<art::Ptr<rawdata::RawDigit> >::const_iterator digitIt = digits.begin();
422  digitIt != digits.end(); ++digitIt) {
423 
424  // geometry
426  double pos[3], dpos[3];
427  uint plane = fChannelMap->GetPlane(digitIt->get());
428  uint cell = fChannelMap->GetCell(digitIt->get());
429  fGeo->CellInfo(plane, cell, &view, pos, dpos);
430 
431  // channel mapping
432  uint32_t dchan = (*digitIt)->DaqChannel();
433  uint8_t status = (*digitIt)->fFEBStatus;
434  int feb = fChannelMap->getFEB(dchan);
435  int dcm = fChannelMap->getDCM(dchan);
436  int feb_det = feb+(64*(dcm-1));
437 
438  // time
439  int32_t hit_time = (*digitIt)->TDC() * 15.625; // ns
440  unsigned long long hit_time_spill = hit_time + subtrigger_time; // ns
441 
442  fHitTimes.at(feb_det).push_back(hit_time_spill);
443  if (status == 32)
444  fShutOffTimes.at(feb_det).push_back(hit_time_spill);
445 
446  }
447 
448  // Look at Hough lines
449  for (std::vector<art::Ptr<rb::HoughResult> >::const_iterator houghIt = houghs.begin();
450  houghIt != houghs.end(); ++houghIt) {
451 
452  geo::View_t view = (*houghIt)->fView;
453  double time = (*houghIt)->fTNSlo + subtrigger_time; // ns
454 
455  double Z0 = (*houghIt)->fZ0;
456  double XY0 = (*houghIt)->fXY0;
457 
458  // get the peaks
459  const std::vector<rb::HoughPeak> peaks = (*houghIt)->fPeak;
460  for (std::vector<rb::HoughPeak>::const_iterator peakIt = peaks.begin(); peakIt != peaks.end(); ++peakIt) {
461 
462  double rho = peakIt->fRho;
463  double theta = peakIt->fTheta;
464 
465  // calculate slope and intercept
466  double c = cos(theta);
467  double s = sin(theta);
468  if(s == 0) s = 1.0E-9;
469  double m = -c/s;
470  double b = rho/s - m*Z0 + XY0;
471 
472  if (view == geo::kX)
473  fHoughX.push_back(std::make_pair(time, b));
474  if(view == geo::kY)
475  fHoughY.push_back(std::make_pair(time, b));
476 
477  }
478  }
479 
480  return;
481 
482 }
int status
Definition: fabricate.py:1613
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Vertical planes which measure X.
Definition: PlaneGeo.h:28
std::pair< Spectrum *, CheatDecomp * > make_pair(SpectrumLoaderBase &loader_data, SpectrumLoaderBase &loader_mc, HistAxis *axis, Cut *cut, const SystShifts &shift, const Var &wei)
Definition: DataMCLoad.C:336
Horizontal planes which measure Y.
Definition: PlaneGeo.h:29
void CellInfo(unsigned int ip, unsigned int ic, View_t *view=0, double *pos=0, double *dpos=0) const
double mc6int
MC6 intensity [ppp].
Definition: MCenterData.h:25
const XML_Char * s
Definition: expat.h:262
unsigned long long fTriggerHeader_MasterTriggerNumber
Definition: RawTrigger.h:35
art::ServiceHandle< geo::Geometry > fGeo
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
Definition: DataViewImpl.h:446
double mc6col
MC6 vertical collimator opening [mm].
Definition: MCenterData.h:26
unsigned short GetPlane(const rawdata::RawDigit *dig)
Definition: CMap.cxx:285
std::vector< std::vector< unsigned long long > > fShutOffTimes
int getDCM(daqchannelmap::dchan)
Definition: CMap.cxx:191
int getFEB(daqchannelmap::dchan)
Definition: CMap.cxx:206
T sin(T number)
Definition: d0nt_math.hpp:132
unsigned long long fTriggerHeader_TriggerNumber
Definition: RawTrigger.h:34
std::vector< std::pair< double, double > > fHoughY
std::vector< std::pair< double, double > > fHoughX
const hit & b
Definition: hits.cxx:21
T cos(T number)
Definition: d0nt_math.hpp:78
unsigned short GetCell(const rawdata::RawDigit *dig)
Definition: CMap.cxx:327
uint32_t fTriggerRange_TriggerLength
Definition: RawTrigger.h:40
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Definition: Ptr.h:291
uint32_t dchan
< DAQ Channel Map Package
std::vector< std::vector< unsigned long long > > fHitTimes
Definition: fwd.h:29
art::ServiceHandle< cmap::CMap > fChannelMap
unsigned int uint
void tbana::DetectorRateShutOff::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 213 of file DetectorRateShutOff_module.cc.

References APDHVSetting::feb, fFileService, fPreviousTriggerMaster, fSpillNumber, fTimeBin, hBenfordLaw, hBenfordLawExpoConstNoShutOff, hBenfordLawExpoConstShutOff, hBenfordLawNoShutOff, hBenfordLawShutOff, hBottomCountersShutOffs, hBottomHoughRate, hBottomHoughRateMC6Col, hBottomHoughRateMC6IC, hBottomHoughsProxyShutOffs, hBottomHoughsShutOffs, hBottomProxyShutOffsMC6IC, hBottomRelHoughsProxyShutOffs, hBottomRelHoughsShutOffs, hBottomShutOffProxyDiff, hBottomShutOffsMC6IC, hEastCountersShutOffs, hEastHoughRate, hEastHoughRateMC6Col, hEastHoughRateMC6IC, hEastHoughsProxyShutOffs, hEastHoughsShutOffs, hEastProxyShutOffsMC6IC, hEastRelHoughsProxyShutOffs, hEastRelHoughsShutOffs, hEastShutOffProxyDiff, hEastShutOffsMC6IC, hFEBSpillProfile, hHoughRate, hHoughRateMC6Col, hHoughRateMC6IC, hMC6Col, hMC6IC, hProxyShutOffsHoughTracks, hProxyShutOffsMC6IC, hProxyShutOffsRelHoughTracks, hShutOffProxyDiff, hShutOffsHoughTracks, hShutOffsMC6IC, hShutOffsMuonCounters, hShutOffsRelHoughTracks, hShutOffTimes, hTopCountersShutOffs, hTopHoughRate, hTopHoughRateMC6Col, hTopHoughRateMC6IC, hTopHoughsProxyShutOffs, hTopHoughsShutOffs, hTopProxyShutOffsMC6IC, hTopRelHoughsProxyShutOffs, hTopRelHoughsShutOffs, hTopShutOffProxyDiff, hTopShutOffsMC6IC, hWestCountersShutOffs, hWestHoughRate, hWestHoughRateMC6Col, hWestHoughRateMC6IC, hWestHoughsProxyShutOffs, hWestHoughsShutOffs, hWestProxyShutOffsMC6IC, hWestRelHoughsProxyShutOffs, hWestRelHoughsShutOffs, hWestShutOffProxyDiff, and hWestShutOffsMC6IC.

213  {
215  fSpillNumber = -1;
216 
217  // general
218  hMC6IC = fFileService->make<TH1F>("MC6IC", ";MC6IC;", 100, 1e8, 1e11);
219  hMC6Col = fFileService->make<TH1F>("MC6Col", ";MC6 Collimator Aperture (mm);", 30, 0, 30);
220 
221  // shut-off proxy
222  hShutOffProxyDiff = fFileService->make<TH1I>
223  ("ShutOffProxyDiff", ";Shut-Off - Proxy Shut-Off;", 20, -10, 10);
224  hShutOffProxyDiff->GetXaxis()->SetNdivisions(20);
225  hShutOffProxyDiff->GetXaxis()->CenterLabels();
226  hWestShutOffProxyDiff = fFileService->make<TH1I>
227  ("WestShutOffProxyDiff", ";Shut-Off - Proxy Shut-Off;", 20, -10, 10);
228  hWestShutOffProxyDiff->GetXaxis()->SetNdivisions(20);
229  hWestShutOffProxyDiff->GetXaxis()->CenterLabels();
230  hEastShutOffProxyDiff = fFileService->make<TH1I>
231  ("EastShutOffProxyDiff", ";Shut-Off - Proxy Shut-Off;", 20, -10, 10);
232  hEastShutOffProxyDiff->GetXaxis()->SetNdivisions(20);
233  hEastShutOffProxyDiff->GetXaxis()->CenterLabels();
234  hTopShutOffProxyDiff = fFileService->make<TH1I>
235  ("TopShutOffProxyDiff", ";Shut-Off - Proxy Shut-Off;", 20, -10, 10);
236  hTopShutOffProxyDiff->GetXaxis()->SetNdivisions(20);
237  hTopShutOffProxyDiff->GetXaxis()->CenterLabels();
239  ("BottomShutOffProxyDiff", ";Shut-Off - Proxy Shut-Off;", 20, -10, 10);
240  hBottomShutOffProxyDiff->GetXaxis()->SetNdivisions(20);
241  hBottomShutOffProxyDiff->GetXaxis()->CenterLabels();
242 
243  // hough rates
244  hHoughRate = fFileService->make<TH1D>("HoughRate",";Hough Rate;", 100, 0, 150000);
245  hEastHoughRate = fFileService->make<TH1D>("EastHoughRate",";Hough Rate (East);", 100, 0, 70000);
246  hWestHoughRate = fFileService->make<TH1D>("WestHoughRate",";Hough Rate (West);", 100, 0, 150000);
247  hTopHoughRate = fFileService->make<TH1D>("TopHoughRate",";Hough Rate (Top);", 100, 0, 150000);
248  hBottomHoughRate = fFileService->make<TH1D>("BottomHoughRate",";Hough Rate (Bottom);", 100, 0, 100000);
249  hHoughRateMC6IC = fFileService->makeAndRegister<TGraph>("HoughRateMC6IC",";MC6IC;Hough Rate;");
250  hEastHoughRateMC6IC = fFileService->makeAndRegister<TGraph>("EastHoughRateMC6IC",";MC6IC;Hough Rate (East);");
251  hWestHoughRateMC6IC = fFileService->makeAndRegister<TGraph>("WestHoughRateMC6IC",";MC6IC;Hough Rate (West);");
252  hTopHoughRateMC6IC = fFileService->makeAndRegister<TGraph>("TopHoughRateMC6IC",";MC6IC;Hough Rate (Top);");
253  hBottomHoughRateMC6IC = fFileService->makeAndRegister<TGraph>("BottomHoughRateMC6IC",";MC6IC;Hough Rate (Bottom);");
254  hHoughRateMC6Col = fFileService->makeAndRegister<TGraph>("HoughRateMC6Col",";MC6 Collimator Aperature (mm);Hough Rate;");
255  hEastHoughRateMC6Col = fFileService->makeAndRegister<TGraph>("EastHoughRateMC6Col",";MC6 Collimator Aperature (mm);Hough Rate (East);");
256  hWestHoughRateMC6Col = fFileService->makeAndRegister<TGraph>("WestHoughRateMC6Col",";MC6 Collimator Aperature (mm);Hough Rate (West);");
257  hTopHoughRateMC6Col = fFileService->makeAndRegister<TGraph>("TopHoughRateMC6Col",";MC6 Collimator Aperature (mm);Hough Rate (Top);");
258  hBottomHoughRateMC6Col = fFileService->makeAndRegister<TGraph>("BottomHoughRateMC6Col",";MC6 Collimator Aperature (mm);Hough Rate (Bottom);");
259 
260  // shut-offs mc6ic
261  hShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
262  ("ShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
263  hWestShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
264  ("WestShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
265  hEastShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
266  ("EastShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
267  hTopShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
268  ("TopShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
269  hBottomShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
270  ("BottomShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
271  hProxyShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
272  ("ProxyShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
273  hWestProxyShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
274  ("WestProxyShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
275  hEastProxyShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
276  ("EastProxyShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
277  hTopProxyShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
278  ("TopProxyShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
279  hBottomProxyShutOffsMC6IC = fFileService->makeAndRegister<TGraph>
280  ("BottomProxyShutOffsMC6IC", ";MC6IC;Number of Shut-Offs;");
281 
282  // counter shut-offs
283  hShutOffsMuonCounters = fFileService->makeAndRegister<TGraph>
284  ("ShutOffsMuonCounters", ";Counts on Front Face (Multiple of East Side Counters);Number of Shut-Offs;");
285  hWestCountersShutOffs = fFileService->makeAndRegister<TGraph>
286  ("WestCountersShutOffs", ";Counts on Front Face (West) (Multiple of East Side Counters);Number of Shut-Offs;");
287  hEastCountersShutOffs = fFileService->makeAndRegister<TGraph>
288  ("EastCountersShutOffs", ";Counts on Front Face (East) (Multiple of East Side Counters);Number of Shut-Offs;");
289  hTopCountersShutOffs = fFileService->makeAndRegister<TGraph>
290  ("TopCountersShutOffs", ";Counts on Front Face (Top) (Multiple of East Side Counters);Number of Shut-Offs;");
291  hBottomCountersShutOffs = fFileService->makeAndRegister<TGraph>
292  ("BottomCountersShutOffs", ";Counts on Front Face (Bottom) (Multiple of East Side Counters);Number of Shut-Offs;");
293 
294  // hough shut-offs
295  // shut-offs
296  hShutOffsHoughTracks = fFileService->makeAndRegister<TGraph>
297  ("ShutOffsHoughTracks", ";Hough Tracks;Number of Shut-Offs;");
298  hWestHoughsShutOffs = fFileService->makeAndRegister<TGraph>
299  ("WestHoughsShutOffs", ";Hough Tracks (West);Number of Shut-Offs;");
300  hEastHoughsShutOffs = fFileService->makeAndRegister<TGraph>
301  ("EastHoughsShutOffs", ";Hough Tracks (East);Number of Shut-Offs;");
302  hTopHoughsShutOffs = fFileService->makeAndRegister<TGraph>
303  ("TopHoughsShutOffs", ";Hough Tracks (Top);Number of Shut-Offs;");
304  hBottomHoughsShutOffs = fFileService->makeAndRegister<TGraph>
305  ("BottomHoughsShutOffs", ";Hough Tracks (Bottom);Number of Shut-Offs;");
306  hShutOffsRelHoughTracks = fFileService->makeAndRegister<TGraph>
307  ("ShutOffsRelHoughTracks", ";Hough Tracks (Multiple of East Quadrant);Number of Shut-Offs;");
308  hWestRelHoughsShutOffs = fFileService->makeAndRegister<TGraph>
309  ("WestRelHoughsShutOffs", ";Hough Tracks (West) (Multiple of East Quadrant);Number of Shut-Offs;");
310  hEastRelHoughsShutOffs = fFileService->makeAndRegister<TGraph>
311  ("EastRelHoughsShutOffs", ";Hough Tracks (East) (Multiple of East Quadrant);Number of Shut-Offs;");
312  hTopRelHoughsShutOffs = fFileService->makeAndRegister<TGraph>
313  ("TopRelHoughsShutOffs", ";Hough Tracks (Top) (Multiple of East Quadrant);Number of Shut-Offs;");
314  hBottomRelHoughsShutOffs = fFileService->makeAndRegister<TGraph>
315  ("BottomRelHoughsShutOffs", ";Hough Tracks (Bottom) (Multiple of East Quadrant);Number of Shut-Offs;");
316  // proxy
317  hProxyShutOffsHoughTracks = fFileService->makeAndRegister<TGraph>
318  ("ProxyShutOffsHoughTracks", ";Hough Tracks;Number of Shut-Offs;");
319  hWestHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
320  ("WestHoughsProxyShutOffs", ";Hough Tracks (West);Number of Shut-Offs;");
321  hEastHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
322  ("EastHoughsProxyShutOffs", ";Hough Tracks (East);Number of Shut-Offs;");
323  hTopHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
324  ("TopHoughsProxyShutOffs", ";Hough Tracks (Top);Number of Shut-Offs;");
325  hBottomHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
326  ("BottomHoughsProxyShutOffs", ";Hough Tracks (Bottom);Number of Shut-Offs;");
327  hProxyShutOffsRelHoughTracks = fFileService->makeAndRegister<TGraph>
328  ("ProxyShutOffsRelHoughTracks", ";Hough Tracks (Multiple of East Quadrant);Number of Shut-Offs;");
329  hWestRelHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
330  ("WestRelHoughsProxyShutOffs", ";Hough Tracks (West) (Multiple of East Quadrant);Number of Shut-Offs;");
331  hEastRelHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
332  ("EastRelHoughsProxyShutOffs", ";Hough Tracks (East) (Multiple of East Quadrant);Number of Shut-Offs;");
333  hTopRelHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
334  ("TopRelHoughsProxyShutOffs", ";Hough Tracks (Top) (Multiple of East Quadrant);Number of Shut-Offs;");
335  hBottomRelHoughsProxyShutOffs = fFileService->makeAndRegister<TGraph>
336  ("BottomRelHoughsProxyShutOffs", ";Hough Tracks (Bottom) (Multiple of East Quadrant);Number of Shut-Offs;");
337 
338  // shut-off times
339  hShutOffTimes = fFileService->make<TH1I>("ShutOffTimes", ";Time in Spill (ns);", 500, 0, 5e9);
340 
341  // profiles
342  for (const unsigned int& feb : {0,16,32,48})
343  hFEBSpillProfile[feb] = fFileService->make<TH1I>
344  (Form("FEB%dSpillProfile", feb), Form(";Time in Spill (ns);Track Rate in FEB %2d (%f ms);", feb, fTimeBin), 5e9/(fTimeBin*1.e6), 0, 5e9);
345 
346  // benford
347  hBenfordLaw = fFileService->makeAndRegister<TMultiGraph>("BenfordLaw",";First Digit in Time Between Hits (ns);Frequency;");
348  hBenfordLawNoShutOff = fFileService->makeAndRegister<TMultiGraph>("BenfordLawNoShutOff",";First Digit in Time Between Hits (ns);Frequency;");
349  hBenfordLawShutOff = fFileService->makeAndRegister<TMultiGraph>("BenfordLawShutOff",";First Digit in Time Between Hits (ns);Frequency;");
350  hBenfordLawExpoConstNoShutOff = fFileService->make<TH1F>("BenfordLawExpoConstNoShutOff",";Exponential Constant;",100,7,10);
351  hBenfordLawExpoConstShutOff = fFileService->make<TH1F>("BenfordLawExpoConstShutOff",";Exponential Constant;",100,7,10);
352 }
art::ServiceHandle< art::TFileService > fFileService
std::map< unsigned int, TH1I * > hFEBSpillProfile
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::consumes ( InputTag const &  tag)
protectedinherited

Definition at line 55 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumes(), T, and getGoodRuns4SAM::tag.

56  {
57  return collector_.consumes<T, BT>(tag);
58  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ProductToken< T > consumes(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
ConsumesCollector& art::ModuleBase::consumesCollector ( )
protectedinherited
template<typename T , BranchType BT>
void art::ModuleBase::consumesMany ( )
protectedinherited

Definition at line 69 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumesMany(), and T.

70  {
71  collector_.consumesMany<T, BT>();
72  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::consumesView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::consumesView ( InputTag const &  tag)
inherited

Definition at line 62 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumesView(), T, and getGoodRuns4SAM::tag.

63  {
64  return collector_.consumesView<T, BT>(tag);
65  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ViewToken< Element > consumesView(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
void art::detail::Analyzer::doBeginJob ( )
inherited
bool art::detail::Analyzer::doBeginRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doBeginSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited
void art::detail::Analyzer::doEndJob ( )
inherited
bool art::detail::Analyzer::doEndRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doEndSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doEvent ( EventPrincipal ep,
ModuleContext const &  mc,
std::atomic< std::size_t > &  counts_run,
std::atomic< std::size_t > &  counts_passed,
std::atomic< std::size_t > &  counts_failed 
)
inherited
void art::detail::Analyzer::doRespondToCloseInputFile ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToCloseOutputFiles ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToOpenInputFile ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToOpenOutputFiles ( FileBlock const &  fb)
inherited
void tbana::DetectorRateShutOff::endJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 355 of file DetectorRateShutOff_module.cc.

355  {
356  //this->EndSpill();
357  // TCanvas* canv = new TCanvas("canv2", "", 800, 600);
358  // hBenfordLaw->Draw("AP");
359  // canv->SaveAs("BenfordLaw.png");
360  // delete canv;
361 
362  return;
363 }
void tbana::DetectorRateShutOff::EndSpill ( )

Definition at line 500 of file DetectorRateShutOff_module.cc.

References om::cout, release_diff::diff, allTimeWatchdog::endl, APDHVSetting::feb, fHitTimes, fHoughX, fHoughY, Fill(), fMC6Col, fMC6IC, fShutOffTimes, hBenfordLaw, hBenfordLawExpoConstNoShutOff, hBenfordLawExpoConstShutOff, hBenfordLawNoShutOff, hBenfordLawShutOff, hBottomHoughRate, hBottomHoughRateMC6Col, hBottomHoughRateMC6IC, hBottomHoughsProxyShutOffs, hBottomHoughsShutOffs, hBottomProxyShutOffsMC6IC, hBottomRelHoughsProxyShutOffs, hBottomRelHoughsShutOffs, hBottomShutOffProxyDiff, hBottomShutOffsMC6IC, hEastHoughRate, hEastHoughRateMC6Col, hEastHoughRateMC6IC, hEastHoughsProxyShutOffs, hEastHoughsShutOffs, hEastProxyShutOffsMC6IC, hEastRelHoughsProxyShutOffs, hEastRelHoughsShutOffs, hEastShutOffProxyDiff, hEastShutOffsMC6IC, hFEBSpillProfile, hHoughRate, hHoughRateMC6Col, hHoughRateMC6IC, hMC6Col, hMC6IC, hProxyShutOffsHoughTracks, hProxyShutOffsMC6IC, hProxyShutOffsRelHoughTracks, hShutOffProxyDiff, hShutOffsHoughTracks, hShutOffsMC6IC, hShutOffsRelHoughTracks, hShutOffTimes, hTopHoughRate, hTopHoughRateMC6Col, hTopHoughRateMC6IC, hTopHoughsProxyShutOffs, hTopHoughsShutOffs, hTopProxyShutOffsMC6IC, hTopRelHoughsProxyShutOffs, hTopRelHoughsShutOffs, hTopShutOffProxyDiff, hTopShutOffsMC6IC, hWestHoughRate, hWestHoughRateMC6Col, hWestHoughRateMC6IC, hWestHoughsProxyShutOffs, hWestHoughsShutOffs, hWestProxyShutOffsMC6IC, hWestRelHoughsProxyShutOffs, hWestRelHoughsShutOffs, hWestShutOffProxyDiff, hWestShutOffsMC6IC, and kRed.

Referenced by analyze().

500  {
501 
502  std::cout << "End of spill" << std::endl;
503 
504  hMC6IC->Fill(fMC6IC);
505  hMC6Col->Fill(fMC6Col);
506 
507  // determine a rough number of total FEB shut-offs (combining hits from multiple cells)
508  std::vector<std::vector<unsigned long long> > shutOffs(136);
509  for (unsigned int feb = 0; feb < 136; ++feb) {
510  std::sort(fShutOffTimes.at(feb).begin(), fShutOffTimes.at(feb).end());
511  for (std::vector<unsigned long long>::const_iterator hittimeIt = fShutOffTimes.at(feb).begin();
512  hittimeIt != fShutOffTimes.at(feb).end(); ++hittimeIt) {
513  bool newshutoff = true;
514  for (std::vector<unsigned long long>::const_iterator prevShutOffTimeIt = shutOffs.at(feb).begin();
515  prevShutOffTimeIt != shutOffs.at(feb).end(); ++prevShutOffTimeIt)
516  if (*hittimeIt-*prevShutOffTimeIt < 1e6) // 1ms
517  newshutoff = false;
518  if (newshutoff)
519  shutOffs.at(feb).push_back(*hittimeIt);
520  }
521  std::cout << "FEB " << feb << " had " << shutOffs.at(feb).size() << " shutoffs" << std::endl;
522  }
523 
524  // shut-off times
525  for (unsigned int feb = 0; feb < 136; ++feb)
526  for (unsigned int time = 0; time < shutOffs.at(feb).size(); ++time)
527  hShutOffTimes->Fill(shutOffs.at(feb).at(time));
528 
529  // sum up all shut-offs in each FEB region
530  std::vector<unsigned int> west_febs = {16};
531  std::vector<unsigned int> east_febs = {0};
532  std::vector<unsigned int> top_febs = {32};
533  std::vector<unsigned int> bottom_febs = {48};
534  unsigned int west_shutoffs = 0, east_shutoffs = 0, top_shutoffs = 0, bottom_shutoffs = 0;
535  for (std::vector<unsigned int>::const_iterator feb = west_febs.begin(); feb != west_febs.end(); ++feb)
536  west_shutoffs += shutOffs.at(*feb).size();
537  for (std::vector<unsigned int>::const_iterator feb = east_febs.begin(); feb != east_febs.end(); ++feb)
538  east_shutoffs += shutOffs.at(*feb).size();
539  for (std::vector<unsigned int>::const_iterator feb = top_febs.begin(); feb != top_febs.end(); ++feb)
540  top_shutoffs += shutOffs.at(*feb).size();
541  for (std::vector<unsigned int>::const_iterator feb = bottom_febs.begin(); feb != bottom_febs.end(); ++feb)
542  bottom_shutoffs += shutOffs.at(*feb).size();
543 
544  // shut-offs vs MC6IC
545  hShutOffsMC6IC->SetPoint(hShutOffsMC6IC->GetN(), fMC6IC, west_shutoffs);
546  hShutOffsMC6IC->SetPoint(hShutOffsMC6IC->GetN(), fMC6IC, east_shutoffs);
547  hShutOffsMC6IC->SetPoint(hShutOffsMC6IC->GetN(), fMC6IC, top_shutoffs);
548  hShutOffsMC6IC->SetPoint(hShutOffsMC6IC->GetN(), fMC6IC, bottom_shutoffs);
549  hWestShutOffsMC6IC->SetPoint(hWestShutOffsMC6IC->GetN(), fMC6IC, west_shutoffs);
550  hEastShutOffsMC6IC->SetPoint(hEastShutOffsMC6IC->GetN(), fMC6IC, east_shutoffs);
551  hTopShutOffsMC6IC->SetPoint(hTopShutOffsMC6IC->GetN(), fMC6IC, top_shutoffs);
552  hBottomShutOffsMC6IC->SetPoint(hBottomShutOffsMC6IC->GetN(), fMC6IC, bottom_shutoffs);
553 
554  // get the Hough intercepts at the front face
555  std::vector<double> west_hough_times, east_hough_times, top_hough_times, bottom_hough_times;
556  for (std::vector<std::pair<double, double> >::const_iterator houghIt = fHoughX.begin();
557  houghIt != fHoughX.end(); ++houghIt) {
558  if (houghIt->second > 0)
559  west_hough_times.push_back(houghIt->first);
560  else
561  east_hough_times.push_back(houghIt->first);
562  }
563  for (std::vector<std::pair<double, double> >::const_iterator houghIt = fHoughY.begin();
564  houghIt != fHoughY.end(); ++houghIt) {
565  if (houghIt->second > 0)
566  top_hough_times.push_back(houghIt->first);
567  else
568  bottom_hough_times.push_back(houghIt->first);
569  }
570 
571  // fill spill profiles
572  for (std::vector<double>::const_iterator timeIt = west_hough_times.begin(); timeIt != west_hough_times.end(); ++timeIt)
573  hFEBSpillProfile[16]->Fill(*timeIt);
574  for (std::vector<double>::const_iterator timeIt = east_hough_times.begin(); timeIt != east_hough_times.end(); ++timeIt)
575  hFEBSpillProfile[0]->Fill(*timeIt);
576  for (std::vector<double>::const_iterator timeIt = top_hough_times.begin(); timeIt != top_hough_times.end(); ++timeIt)
577  hFEBSpillProfile[32]->Fill(*timeIt);
578  for (std::vector<double>::const_iterator timeIt = bottom_hough_times.begin(); timeIt != bottom_hough_times.end(); ++timeIt)
579  hFEBSpillProfile[48]->Fill(*timeIt);
580 
581  // // draw profiles with shut-offs
582  // TCanvas* canv = new TCanvas("canv", "", 800, 600);
583  // TLine line;
584  // line.SetLineColor(kRed);
585  // line.SetLineWidth(2);
586  // line.SetLineStyle(kDashed);
587  // for (const unsigned int& feb : {0,16,32,48}) {
588  // canv->cd();
589  // canv->Clear();
590  // hFEBSpillProfile[feb]->Draw("hist");
591  // canv->Modified(); canv->Update();
592  // for (std::vector<unsigned long long>::const_iterator shutOffIt = shutOffs.at(feb).begin();
593  // shutOffIt != shutOffs.at(feb).end(); ++shutOffIt)
594  // line.DrawLine(*shutOffIt, 0, *shutOffIt, canv->GetUymax());
595  // canv->SaveAs(Form("figs/Spill%dFEB%02dSpillProfile.png", fSpillNumber, feb));
596  // canv->cd();
597  // canv->Clear();
598  // TH1* scaled = (TH1*)hFEBSpillProfile[feb]->Clone(Form("%sScaled", hFEBSpillProfile[feb]->GetName()));
599  // scaled->Divide(hFEBSpillProfile[0]);
600  // scaled->GetYaxis()->SetTitle(Form("Hits on FEB %02d / Hits on FEB 00", feb));
601  // scaled->Draw("hist");
602  // canv->Modified(); canv->Update();
603  // for (std::vector<unsigned long long>::const_iterator shutOffIt = shutOffs.at(feb).begin();
604  // shutOffIt != shutOffs.at(feb).end(); ++shutOffIt)
605  // line.DrawLine(*shutOffIt, 0, *shutOffIt, canv->GetUymax());
606  // canv->SaveAs(Form("figs/Spill%dFEB%02dSpillProfileNorm.png", fSpillNumber, feb));
607  // delete scaled;
608  // }
609  // delete canv;
610 
611  float west_houghs = west_hough_times.size();
612  float east_houghs = east_hough_times.size();
613  float top_houghs = top_hough_times.size();
614  float bottom_houghs = bottom_hough_times.size();
615 
616  // hough rates
617  hHoughRate->Fill(east_houghs);
618  hHoughRate->Fill(west_houghs);
619  hHoughRate->Fill(top_houghs);
620  hHoughRate->Fill(bottom_houghs);
621  hEastHoughRate->Fill(east_houghs);
622  hWestHoughRate->Fill(west_houghs);
623  hTopHoughRate->Fill(top_houghs);
624  hBottomHoughRate->Fill(bottom_houghs);
625 
626  // hough rates mc6ic
627  hHoughRateMC6IC->SetPoint(hHoughRateMC6IC->GetN(), fMC6IC, east_houghs);
628  hHoughRateMC6IC->SetPoint(hHoughRateMC6IC->GetN(), fMC6IC, west_houghs);
629  hHoughRateMC6IC->SetPoint(hHoughRateMC6IC->GetN(), fMC6IC, top_houghs);
630  hHoughRateMC6IC->SetPoint(hHoughRateMC6IC->GetN(), fMC6IC, bottom_houghs);
631  hEastHoughRateMC6IC->SetPoint(hEastHoughRateMC6IC->GetN(), fMC6IC, east_houghs);
632  hWestHoughRateMC6IC->SetPoint(hEastHoughRateMC6IC->GetN(), fMC6IC, west_houghs);
633  hTopHoughRateMC6IC->SetPoint(hTopHoughRateMC6IC->GetN(), fMC6IC, top_houghs);
634  hBottomHoughRateMC6IC->SetPoint(hBottomHoughRateMC6IC->GetN(), fMC6IC, bottom_houghs);
635 
636  // hough rates mc6col
637  hHoughRateMC6Col->SetPoint(hHoughRateMC6Col->GetN(), fMC6Col, east_houghs);
638  hHoughRateMC6Col->SetPoint(hHoughRateMC6Col->GetN(), fMC6Col, west_houghs);
639  hHoughRateMC6Col->SetPoint(hHoughRateMC6Col->GetN(), fMC6Col, top_houghs);
640  hHoughRateMC6Col->SetPoint(hHoughRateMC6Col->GetN(), fMC6Col, bottom_houghs);
641  hEastHoughRateMC6Col->SetPoint(hEastHoughRateMC6Col->GetN(), fMC6Col, east_houghs);
642  hWestHoughRateMC6Col->SetPoint(hEastHoughRateMC6Col->GetN(), fMC6Col, west_houghs);
643  hTopHoughRateMC6Col->SetPoint(hTopHoughRateMC6Col->GetN(), fMC6Col, top_houghs);
644  hBottomHoughRateMC6Col->SetPoint(hBottomHoughRateMC6Col->GetN(), fMC6Col, bottom_houghs);
645 
646  // hough rates shut-offs
647  hShutOffsHoughTracks->SetPoint(hShutOffsHoughTracks->GetN(), west_houghs, west_shutoffs);
648  hShutOffsHoughTracks->SetPoint(hShutOffsHoughTracks->GetN(), east_houghs, east_shutoffs);
649  hShutOffsHoughTracks->SetPoint(hShutOffsHoughTracks->GetN(), top_houghs, top_shutoffs);
650  hShutOffsHoughTracks->SetPoint(hShutOffsHoughTracks->GetN(), bottom_houghs, bottom_shutoffs);
651  hWestHoughsShutOffs->SetPoint(hWestHoughsShutOffs->GetN(), west_houghs, west_shutoffs);
652  hEastHoughsShutOffs->SetPoint(hEastHoughsShutOffs->GetN(), east_houghs, east_shutoffs);
653  hTopHoughsShutOffs->SetPoint(hTopHoughsShutOffs->GetN(), top_houghs, top_shutoffs);
654  hBottomHoughsShutOffs->SetPoint(hBottomHoughsShutOffs->GetN(), bottom_houghs, bottom_shutoffs);
655 
656  float west_houghs_sc = west_houghs/east_houghs;
657  float east_houghs_sc = east_houghs/east_houghs;
658  float top_houghs_sc = top_houghs/east_houghs;
659  float bottom_houghs_sc = bottom_houghs/east_houghs;
660 
661  hShutOffsRelHoughTracks->SetPoint(hShutOffsRelHoughTracks->GetN(), west_houghs_sc, west_shutoffs);
662  hShutOffsRelHoughTracks->SetPoint(hShutOffsRelHoughTracks->GetN(), east_houghs_sc, east_shutoffs);
663  hShutOffsRelHoughTracks->SetPoint(hShutOffsRelHoughTracks->GetN(), top_houghs_sc, top_shutoffs);
664  hShutOffsRelHoughTracks->SetPoint(hShutOffsRelHoughTracks->GetN(), bottom_houghs_sc, bottom_shutoffs);
665  hWestRelHoughsShutOffs->SetPoint(hWestRelHoughsShutOffs->GetN(), west_houghs_sc, west_shutoffs);
666  hEastRelHoughsShutOffs->SetPoint(hEastRelHoughsShutOffs->GetN(), east_houghs_sc, east_shutoffs);
667  hTopRelHoughsShutOffs->SetPoint(hTopRelHoughsShutOffs->GetN(), top_houghs_sc, top_shutoffs);
668  hBottomRelHoughsShutOffs->SetPoint(hBottomRelHoughsShutOffs->GetN(), bottom_houghs_sc, bottom_shutoffs);
669 
670  // hit-level analysis
671  std::vector<std::vector<unsigned long long> > shutOffsProxy(136);
672  for (unsigned int feb = 0; feb < 136; ++feb) {
673  std::sort(fHitTimes.at(feb).begin(), fHitTimes.at(feb).end());
674  std::vector<unsigned int> firstDigits(10, 0);
675  for (unsigned int hit = 1; hit < fHitTimes.at(feb).size(); ++hit) {
676  unsigned long long diff = fHitTimes.at(feb).at(hit)-fHitTimes.at(feb).at(hit-1);
677  if (diff > 20e6)
678  shutOffsProxy.at(feb).push_back(fHitTimes.at(feb).at(hit-1));
679  while (diff >= 10)
680  diff = diff / 10;
681  ++firstDigits.at(diff);
682  }
683  // Benford's law
684  TGraph* gr = new TGraph(9);
685  for (unsigned int firstDigit = 1; firstDigit <= 9; ++firstDigit)
686  gr->SetPoint(firstDigit-0, firstDigit, firstDigits.at(firstDigit));
687  gr->Fit("expo", "q");
688  if (shutOffs.at(feb).size())
689  hBenfordLawExpoConstShutOff->Fill(gr->GetFunction("expo")->GetParameter(0));
690  else
691  hBenfordLawExpoConstNoShutOff->Fill(gr->GetFunction("expo")->GetParameter(0));
692  gr->SetMarkerStyle(8);
693  if (shutOffs.at(feb).size()) {
694  gr->SetMarkerColor(kRed);
695  gr->SetLineColor(kRed);
696  hBenfordLawShutOff->Add((TGraph*)gr->Clone());
697  }
698  else {
699  gr->SetMarkerColor(kBlack);
700  gr->SetLineColor(kBlack);
701  hBenfordLawNoShutOff->Add((TGraph*)gr->Clone());
702  }
703  hBenfordLaw->Add(gr);
704  gr = nullptr;
705  }
706 
707  // sum up proxy shut-offs in each FEB region
708  unsigned int west_proxy_shutoffs = 0, east_proxy_shutoffs = 0, top_proxy_shutoffs = 0, bottom_proxy_shutoffs = 0;
709  for (std::vector<unsigned int>::const_iterator feb = west_febs.begin(); feb != west_febs.end(); ++feb)
710  west_proxy_shutoffs += shutOffsProxy.at(*feb).size();
711  for (std::vector<unsigned int>::const_iterator feb = east_febs.begin(); feb != east_febs.end(); ++feb)
712  east_proxy_shutoffs += shutOffsProxy.at(*feb).size();
713  for (std::vector<unsigned int>::const_iterator feb = top_febs.begin(); feb != top_febs.end(); ++feb)
714  top_proxy_shutoffs += shutOffsProxy.at(*feb).size();
715  for (std::vector<unsigned int>::const_iterator feb = bottom_febs.begin(); feb != bottom_febs.end(); ++feb)
716  bottom_proxy_shutoffs += shutOffsProxy.at(*feb).size();
717 
718  // difference between real shut-offs
719  hShutOffProxyDiff->Fill(west_shutoffs-west_proxy_shutoffs);
720  hShutOffProxyDiff->Fill(east_shutoffs-east_proxy_shutoffs);
721  hShutOffProxyDiff->Fill(top_shutoffs-top_proxy_shutoffs);
722  hShutOffProxyDiff->Fill(bottom_shutoffs-bottom_proxy_shutoffs);
723  hWestShutOffProxyDiff->Fill(west_shutoffs-west_proxy_shutoffs);
724  hEastShutOffProxyDiff->Fill(east_shutoffs-east_proxy_shutoffs);
725  hTopShutOffProxyDiff->Fill(top_shutoffs-top_proxy_shutoffs);
726  hBottomShutOffProxyDiff->Fill(bottom_shutoffs-bottom_proxy_shutoffs);
727 
728  // shut-offs vs MC6IC
729  hProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, west_proxy_shutoffs);
730  hProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, east_proxy_shutoffs);
731  hProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, top_proxy_shutoffs);
732  hProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, bottom_proxy_shutoffs);
733  hWestProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, west_proxy_shutoffs);
734  hEastProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, east_proxy_shutoffs);
735  hTopProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, top_proxy_shutoffs);
736  hBottomProxyShutOffsMC6IC->SetPoint(hProxyShutOffsMC6IC->GetN(), fMC6IC, bottom_proxy_shutoffs);
737 
738  // shut-offs vs houghs
739  hProxyShutOffsHoughTracks->SetPoint(hProxyShutOffsHoughTracks->GetN(), west_houghs, west_proxy_shutoffs);
740  hProxyShutOffsHoughTracks->SetPoint(hProxyShutOffsHoughTracks->GetN(), east_houghs, east_proxy_shutoffs);
741  hProxyShutOffsHoughTracks->SetPoint(hProxyShutOffsHoughTracks->GetN(), top_houghs, top_proxy_shutoffs);
742  hProxyShutOffsHoughTracks->SetPoint(hProxyShutOffsHoughTracks->GetN(), bottom_houghs, bottom_proxy_shutoffs);
743  hWestHoughsProxyShutOffs->SetPoint(hWestHoughsProxyShutOffs->GetN(), west_houghs, west_proxy_shutoffs);
744  hEastHoughsProxyShutOffs->SetPoint(hEastHoughsProxyShutOffs->GetN(), east_houghs, east_proxy_shutoffs);
745  hTopHoughsProxyShutOffs->SetPoint(hTopHoughsProxyShutOffs->GetN(), top_houghs, top_proxy_shutoffs);
746  hBottomHoughsProxyShutOffs->SetPoint(hBottomHoughsProxyShutOffs->GetN(), bottom_houghs, bottom_proxy_shutoffs);
747 
748  hProxyShutOffsRelHoughTracks->SetPoint(hProxyShutOffsRelHoughTracks->GetN(), west_houghs_sc, west_proxy_shutoffs);
749  hProxyShutOffsRelHoughTracks->SetPoint(hProxyShutOffsRelHoughTracks->GetN(), east_houghs_sc, east_proxy_shutoffs);
750  hProxyShutOffsRelHoughTracks->SetPoint(hProxyShutOffsRelHoughTracks->GetN(), top_houghs_sc, top_proxy_shutoffs);
751  hProxyShutOffsRelHoughTracks->SetPoint(hProxyShutOffsRelHoughTracks->GetN(), bottom_houghs_sc, bottom_proxy_shutoffs);
752  hWestRelHoughsProxyShutOffs->SetPoint(hWestRelHoughsProxyShutOffs->GetN(), west_houghs_sc, west_proxy_shutoffs);
753  hEastRelHoughsProxyShutOffs->SetPoint(hEastRelHoughsProxyShutOffs->GetN(), east_houghs_sc, east_proxy_shutoffs);
754  hTopRelHoughsProxyShutOffs->SetPoint(hTopRelHoughsProxyShutOffs->GetN(), top_houghs_sc, top_proxy_shutoffs);
755  hBottomRelHoughsProxyShutOffs->SetPoint(hBottomRelHoughsProxyShutOffs->GetN(), bottom_houghs_sc, bottom_proxy_shutoffs);
756 
757  // // get the scintillator counts from the front face of the detector
758  // if (fMuonCounters.at(0) < 0)
759  // return;
760  // float west_counters = fMuonCounters.at(0)+fMuonCounters.at(1);
761  // float east_counters = fMuonCounters.at(2)+fMuonCounters.at(3);
762  // float top_counters = fMuonCounters.at(0)+fMuonCounters.at(2);
763  // float bottom_counters = fMuonCounters.at(1)+fMuonCounters.at(3);
764 
765  // float west_counters_sc = west_counters/east_counters;
766  // float east_counters_sc = east_counters/east_counters;
767  // float top_counters_sc = top_counters/east_counters;
768  // float bottom_counters_sc = bottom_counters/east_counters;
769 
770  // hShutOffsMuonCounters->SetPoint(hShutOffsMuonCounters->GetN(), west_counters_sc, west_shutoffs);
771  // hShutOffsMuonCounters->SetPoint(hShutOffsMuonCounters->GetN(), east_counters_sc, east_shutoffs);
772  // hShutOffsMuonCounters->SetPoint(hShutOffsMuonCounters->GetN(), top_counters_sc, top_shutoffs);
773  // hShutOffsMuonCounters->SetPoint(hShutOffsMuonCounters->GetN(), bottom_counters_sc, bottom_shutoffs);
774  // hWestCountersShutOffs->SetPoint(hWestCountersShutOffs->GetN(), west_counters_sc, west_shutoffs);
775  // hEastCountersShutOffs->SetPoint(hEastCountersShutOffs->GetN(), east_counters_sc, east_shutoffs);
776  // hTopCountersShutOffs->SetPoint(hTopCountersShutOffs->GetN(), top_counters_sc, top_shutoffs);
777  // hBottomCountersShutOffs->SetPoint(hBottomCountersShutOffs->GetN(), bottom_counters_sc, bottom_shutoffs);
778 
779  return;
780 }
enum BeamMode kRed
::xsd::cxx::tree::time< char, simple_type > time
Definition: Database.h:194
correl_yv Fill(-(dy[iP-1][iC-1]), hyv->GetBinContent(iP, iC))
OStream cout
Definition: OStream.cxx:6
std::vector< std::vector< unsigned long long > > fShutOffTimes
std::map< unsigned int, TH1I * > hFEBSpillProfile
std::vector< std::pair< double, double > > fHoughY
Definition: structs.h:12
std::vector< std::pair< double, double > > fHoughX
std::vector< std::vector< unsigned long long > > fHitTimes
void art::Observer::fillDescriptions ( ModuleDescription const &  )
inherited
std::array<std::vector<ProductInfo>, NumBranchTypes> const& art::ModuleBase::getConsumables ( ) const
inherited
Handle<TriggerResults> art::Observer::getTriggerResults ( Event const &  e) const
inherited
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::mayConsume ( InputTag const &  tag)
protectedinherited

Definition at line 76 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsume(), T, and getGoodRuns4SAM::tag.

77  {
78  return collector_.mayConsume<T, BT>(tag);
79  }
ProductToken< T > mayConsume(InputTag const &)
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename T , BranchType BT>
void art::ModuleBase::mayConsumeMany ( )
protectedinherited

Definition at line 90 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsumeMany(), and T.

91  {
93  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::mayConsumeView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::mayConsumeView ( InputTag const &  tag)
inherited

Definition at line 83 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsumeView(), T, and getGoodRuns4SAM::tag.

84  {
85  return collector_.mayConsumeView<T, BT>(tag);
86  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ViewToken< Element > mayConsumeView(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
ModuleDescription const& art::ModuleBase::moduleDescription ( ) const
inherited
detail::ProcessAndEventSelectors& art::Observer::processAndEventSelectors ( )
protectedinherited
std::string const& art::Observer::processName ( ) const
inherited
void tbana::DetectorRateShutOff::reconfigure ( const fhicl::ParameterSet pset)

Definition at line 204 of file DetectorRateShutOff_module.cc.

References fHoughModuleLabel, fRawDataLabel, fSpillCountersLabel, fSpillInfoLabel, fTimeBin, fhicl::ParameterSet::get(), and string.

Referenced by DetectorRateShutOff().

204  {
205  fRawDataLabel = pset.get<std::string>("RawDataLabel");
206  fSpillInfoLabel = pset.get<std::string>("SpillInfoLabel");
207  fSpillCountersLabel = pset.get<std::string>("SpillCountersLabel");
208  fHoughModuleLabel = pset.get<std::string>("HoughModuleLabel");
209  fTimeBin = pset.get<float>("TimeBin"); // ms
210 }
T get(std::string const &key) const
Definition: ParameterSet.h:231
enum BeamMode string
void art::Observer::registerProducts ( ProductDescriptions ,
ModuleDescription const &   
)
inherited
fhicl::ParameterSetID art::Observer::selectorConfig ( ) const
inherited
void art::ModuleBase::setModuleDescription ( ModuleDescription const &  )
inherited
void art::ModuleBase::sortConsumables ( std::string const &  current_process_name)
inherited
void tbana::DetectorRateShutOff::StartSpill ( )

Definition at line 485 of file DetectorRateShutOff_module.cc.

References fHitTimes, fHoughX, fHoughY, fMuonCounters, and fShutOffTimes.

Referenced by analyze().

485  {
486 
487  fHitTimes.clear();
488  fHitTimes.resize(136);
489  fShutOffTimes.clear();
490  fShutOffTimes.resize(136);
491  fMuonCounters.clear();
492  fMuonCounters.resize(4, -1);
493  fHoughX.clear();
494  fHoughY.clear();
495 
496  return;
497 }
std::vector< std::vector< unsigned long long > > fShutOffTimes
std::vector< std::pair< double, double > > fHoughY
std::vector< std::pair< double, double > > fHoughX
std::vector< std::vector< unsigned long long > > fHitTimes
bool art::Observer::wantAllEvents ( ) const
inherited
bool art::Observer::wantEvent ( Event const &  e)
inherited
std::string art::EDAnalyzer::workerType ( ) const
inherited

Member Data Documentation

art::ServiceHandle<cmap::CMap> tbana::DetectorRateShutOff::fChannelMap
private

Definition at line 186 of file DetectorRateShutOff_module.cc.

Referenced by analyze().

art::ServiceHandle<art::TFileService> tbana::DetectorRateShutOff::fFileService
private

Definition at line 187 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

art::ServiceHandle<geo::Geometry> tbana::DetectorRateShutOff::fGeo
private

Definition at line 185 of file DetectorRateShutOff_module.cc.

Referenced by analyze().

std::vector<std::vector<unsigned long long> > tbana::DetectorRateShutOff::fHitTimes
private

Definition at line 94 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), EndSpill(), and StartSpill().

std::string tbana::DetectorRateShutOff::fHoughModuleLabel
private

Definition at line 84 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and reconfigure().

std::vector<std::pair<double, double> > tbana::DetectorRateShutOff::fHoughX
private

Definition at line 97 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), EndSpill(), and StartSpill().

std::vector<std::pair<double, double> > tbana::DetectorRateShutOff::fHoughY
private

Definition at line 98 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), EndSpill(), and StartSpill().

double tbana::DetectorRateShutOff::fMC6Col
private

Definition at line 92 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and EndSpill().

double tbana::DetectorRateShutOff::fMC6IC
private

Definition at line 91 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and EndSpill().

std::vector<double> tbana::DetectorRateShutOff::fMuonCounters
private

Definition at line 96 of file DetectorRateShutOff_module.cc.

Referenced by StartSpill().

int tbana::DetectorRateShutOff::fPreviousTriggerMaster
private

Definition at line 88 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and beginJob().

std::string tbana::DetectorRateShutOff::fRawDataLabel
private

Definition at line 81 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and reconfigure().

std::vector<std::vector<unsigned long long> > tbana::DetectorRateShutOff::fShutOffTimes
private

Definition at line 95 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), EndSpill(), and StartSpill().

std::string tbana::DetectorRateShutOff::fSpillCountersLabel
private

Definition at line 83 of file DetectorRateShutOff_module.cc.

Referenced by reconfigure().

std::string tbana::DetectorRateShutOff::fSpillInfoLabel
private

Definition at line 82 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and reconfigure().

int tbana::DetectorRateShutOff::fSpillNumber
private

Definition at line 87 of file DetectorRateShutOff_module.cc.

Referenced by analyze(), and beginJob().

float tbana::DetectorRateShutOff::fTimeBin
private

Definition at line 89 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and reconfigure().

TMultiGraph* tbana::DetectorRateShutOff::hBenfordLaw
private

Definition at line 178 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1F* tbana::DetectorRateShutOff::hBenfordLawExpoConstNoShutOff
private

Definition at line 181 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1F* tbana::DetectorRateShutOff::hBenfordLawExpoConstShutOff
private

Definition at line 182 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TMultiGraph* tbana::DetectorRateShutOff::hBenfordLawNoShutOff
private

Definition at line 179 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TMultiGraph* tbana::DetectorRateShutOff::hBenfordLawShutOff
private

Definition at line 180 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomCountersShutOffs
private

Definition at line 147 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

TH1D* tbana::DetectorRateShutOff::hBottomHoughRate
private

Definition at line 118 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomHoughRateMC6Col
private

Definition at line 128 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomHoughRateMC6IC
private

Definition at line 123 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomHoughsProxyShutOffs
private

Definition at line 164 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomHoughsShutOffs
private

Definition at line 154 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomProxyShutOffsMC6IC
private

Definition at line 140 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomRelHoughsProxyShutOffs
private

Definition at line 169 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomRelHoughsShutOffs
private

Definition at line 159 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hBottomShutOffProxyDiff
private

Definition at line 111 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hBottomShutOffsMC6IC
private

Definition at line 135 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastCountersShutOffs
private

Definition at line 145 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

TH1D* tbana::DetectorRateShutOff::hEastHoughRate
private

Definition at line 115 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastHoughRateMC6Col
private

Definition at line 125 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastHoughRateMC6IC
private

Definition at line 120 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastHoughsProxyShutOffs
private

Definition at line 162 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastHoughsShutOffs
private

Definition at line 152 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastProxyShutOffsMC6IC
private

Definition at line 138 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastRelHoughsProxyShutOffs
private

Definition at line 167 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastRelHoughsShutOffs
private

Definition at line 157 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hEastShutOffProxyDiff
private

Definition at line 109 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hEastShutOffsMC6IC
private

Definition at line 133 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

std::map<unsigned int, TH1I*> tbana::DetectorRateShutOff::hFEBSpillProfile
private

Definition at line 175 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1D* tbana::DetectorRateShutOff::hHoughRate
private

Definition at line 114 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hHoughRateMC6Col
private

Definition at line 124 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hHoughRateMC6IC
private

Definition at line 119 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1F* tbana::DetectorRateShutOff::hMC6Col
private

Definition at line 104 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1F* tbana::DetectorRateShutOff::hMC6IC
private

Definition at line 103 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hProxyShutOffsHoughTracks
private

Definition at line 160 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hProxyShutOffsMC6IC
private

Definition at line 136 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hProxyShutOffsRelHoughTracks
private

Definition at line 165 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hShutOffProxyDiff
private

Definition at line 107 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hShutOffsHoughTracks
private

Definition at line 150 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hShutOffsMC6IC
private

Definition at line 131 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hShutOffsMuonCounters
private

Definition at line 143 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

TGraph* tbana::DetectorRateShutOff::hShutOffsRelHoughTracks
private

Definition at line 155 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hShutOffTimes
private

Definition at line 172 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopCountersShutOffs
private

Definition at line 146 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

TH1D* tbana::DetectorRateShutOff::hTopHoughRate
private

Definition at line 117 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopHoughRateMC6Col
private

Definition at line 127 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopHoughRateMC6IC
private

Definition at line 122 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopHoughsProxyShutOffs
private

Definition at line 163 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopHoughsShutOffs
private

Definition at line 153 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopProxyShutOffsMC6IC
private

Definition at line 139 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopRelHoughsProxyShutOffs
private

Definition at line 168 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopRelHoughsShutOffs
private

Definition at line 158 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hTopShutOffProxyDiff
private

Definition at line 110 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hTopShutOffsMC6IC
private

Definition at line 134 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestCountersShutOffs
private

Definition at line 144 of file DetectorRateShutOff_module.cc.

Referenced by beginJob().

TH1D* tbana::DetectorRateShutOff::hWestHoughRate
private

Definition at line 116 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestHoughRateMC6Col
private

Definition at line 126 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestHoughRateMC6IC
private

Definition at line 121 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestHoughsProxyShutOffs
private

Definition at line 161 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestHoughsShutOffs
private

Definition at line 151 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestProxyShutOffsMC6IC
private

Definition at line 137 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestRelHoughsProxyShutOffs
private

Definition at line 166 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestRelHoughsShutOffs
private

Definition at line 156 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TH1I* tbana::DetectorRateShutOff::hWestShutOffProxyDiff
private

Definition at line 108 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().

TGraph* tbana::DetectorRateShutOff::hWestShutOffsMC6IC
private

Definition at line 132 of file DetectorRateShutOff_module.cc.

Referenced by beginJob(), and EndSpill().


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