ATLAS Offline Software
CscCalibMonToolPed.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCALIBMONITORING_CSCCALIBMONTOOLPED_H
6 #define MUONCALIBMONITORING_CSCCALIBMONTOOLPED_H
7 
8 #include "CscCalibMonToolBase.h"
9 
11 #include "StoreGate/StoreGateSvc.h"
12 #include "GaudiKernel/MsgStream.h"
13 
14 #include "TH1.h"
15 #include "TProfile.h"
16 
18 
36 // ^ modifying const histograms in StoreGate
37 {
38 
39  public:
41  CscCalibMonToolPed (const std::string & type, const std::string & name,
42  const IInterface* parent);
43 
46 
49 
52 
55 
56  private:
61  virtual StatusCode handleParameter(const CscCalibResultCollection* parVals);
62 
64  virtual StatusCode postProc();
65 
66  void genThreshold(HistCollection * pedColl, HistCollection * noiseColl, HistCollection * tholdColl, float multiplier) ;
67 
68 
69  void makeErrorReport();
70 
71  // CSC identifier helper
72  //const CscIdHelper * m_cscIdHelper;
73 
74 
75  private:
78 
80  float m_pedMaxDiff,m_noiseMaxDiff, m_rmsMaxDiff, m_f001MaxDiff, m_onlTHoldBreachMax;
81 
83  float m_chi2Max;
84 
87 
89  std::string m_allGoodFileName;
91  std::string m_statusReportName;
93  std::string m_statusReportPrefix;
96 
98  int m_pedBadBin, m_noiseBadBin, m_rmsBadBin, m_f001BadBin, m_nEntriesBadBin, m_chi2BadBin, m_missingBadBin, m_onlTHoldBreachBadBin;
99 
101  //int m_doPedSamples;
102 
104  std::string m_histKey;
105 
107  TH1I *m_h_numBad;
108 
110  HistCollection *m_pedNewColl, *m_pedOldColl, *m_pedDiffColl;
111  HistCollection *m_noiseNewColl, *m_noiseOldColl, *m_noiseDiffColl;
113  HistCollection *m_rmsNewColl, *m_rmsOldColl, *m_rmsDiffColl;
114  HistCollection *m_f001NewColl, *m_f001OldColl, *m_f001DiffColl;
116 
117 
119 
121 
123 
124 
125 
126  TH2I * m_h2_rmsVnoiseEta, * m_h2_rmsVnoisePhi;
127 
129 };
130 
131 
132 #endif
CscCalibMonToolPed::m_doRmsVNoise
bool m_doRmsVNoise
Definition: CscCalibMonToolPed.h:128
CscCalibMonToolBase
The CscCalibMonToolBase class.
Definition: CscCalibMonToolBase.h:56
CscCalibMonToolBase::bookHistograms
virtual StatusCode bookHistograms()
Standard function for a ManagedMonitorToolBase.
Definition: CscCalibMonToolBase.cxx:650
CscCalibMonToolPed::m_h_pedMissingChannels
TH1F * m_h_pedMissingChannels
Histograms that simply histogram all entries for a value.
Definition: CscCalibMonToolPed.h:77
CscCalibMonToolBase::handleParameter
virtual StatusCode handleParameter(const CscCalibResultCollection *parVals)
Should be written by user in derived class.
Definition: CscCalibMonToolBase.cxx:754
CscCalibMonToolBase::postProc
virtual StatusCode postProc()
Run after handleParameter.
Definition: CscCalibMonToolBase.cxx:734
CscCalibMonToolBase.h
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
CscCalibMonToolPed::m_nEntriesColl
HistCollection * m_nEntriesColl
Definition: CscCalibMonToolPed.h:118
CscCalibMonToolPed::~CscCalibMonToolPed
~CscCalibMonToolPed()
Destructor.
Definition: CscCalibMonToolPed.h:45
CscCalibMonToolPed::m_noiseOldColl
HistCollection * m_noiseOldColl
Definition: CscCalibMonToolPed.h:111
CscCalibMonToolPed::m_doBitCorrelations
bool m_doBitCorrelations
DO bit correlation plots?".
Definition: CscCalibMonToolPed.h:95
CscCalibMonToolPed::m_statusReportName
std::string m_statusReportName
Status report name.
Definition: CscCalibMonToolPed.h:91
CscCalibMonToolPed
Class for monitoring pedestal calibration results.
Definition: CscCalibMonToolPed.h:37
CscCalibMonToolPed::m_h_numBad
TH1I * m_h_numBad
Stores number of channels that are bad in several categories.
Definition: CscCalibMonToolPed.h:107
CscCalibMonToolPed::m_maxBitCorrColl
HistCollection * m_maxBitCorrColl
Definition: CscCalibMonToolPed.h:122
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CscCalibMonToolPed::m_rmsOldColl
HistCollection * m_rmsOldColl
Definition: CscCalibMonToolPed.h:113
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CscCalibMonToolBase::HistCollection
Contains an array with data on a per-channel basis, as well as various histograms that give different...
Definition: CscCalibMonToolBase.h:205
CscCalibMonToolPed::m_f001OldColl
HistCollection * m_f001OldColl
Definition: CscCalibMonToolPed.h:114
CscCalibMonToolPed::m_allGoodFileName
std::string m_allGoodFileName
name of file indicating all is well
Definition: CscCalibMonToolPed.h:89
CscCalibMonToolPed::m_onlTHoldBreachColl
HistCollection * m_onlTHoldBreachColl
Definition: CscCalibMonToolPed.h:115
CscCalibMonToolPed::m_h2_rmsVnoisePhi
TH2I * m_h2_rmsVnoisePhi
Definition: CscCalibMonToolPed.h:126
CscCalibMonToolBase::initialize
virtual StatusCode initialize()
initializes services, tools, etc.
Definition: CscCalibMonToolBase.cxx:61
CscCalibMonToolPed::m_chi2Coll
HistCollection * m_chi2Coll
Definition: CscCalibMonToolPed.h:112
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CscCalibMonToolPed::m_rmsBadBin
int m_rmsBadBin
Definition: CscCalibMonToolPed.h:98
CscCalibMonToolPed::m_chi2Max
float m_chi2Max
Allowed maximum values.
Definition: CscCalibMonToolPed.h:83
CscCalibMonToolPed::m_minAmpHistEntries
int m_minAmpHistEntries
Allowed number of entries.
Definition: CscCalibMonToolPed.h:86
CscCalibMonToolPed::m_rmsMaxDiff
float m_rmsMaxDiff
Definition: CscCalibMonToolPed.h:80
CscCalibResultCollection
Definition: CscCalibResultCollection.h:24
CscCalibMonToolPed::m_statusReportPrefix
std::string m_statusReportPrefix
Status report prefix.
Definition: CscCalibMonToolPed.h:93
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CscCalibMonToolPed::m_tholdDiffColl
HistCollection * m_tholdDiffColl
Definition: CscCalibMonToolPed.h:120
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
CscCalibMonToolPed::m_pedOldColl
HistCollection * m_pedOldColl
Definition: CscCalibMonToolPed.h:110
CscCalibMonToolBase::finalize
virtual StatusCode finalize()
deletes private members
Definition: CscCalibMonToolBase.cxx:130
checker_macros.h
Define macros for attributes used to control the static checker.
StoreGateSvc.h
CscCalibMonToolPed::m_histKey
std::string m_histKey
Samples.
Definition: CscCalibMonToolPed.h:104