ATLAS Offline Software
TileLaserDefaultCalibTool.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 TILECALIBALG_TILELASERDEFAULTCALIBTOOL_H
6 #define TILECALIBALG_TILELASERDEFAULTCALIBTOOL_H
7 
8 // Tile includes
10 #include "TileEvent/TileDQstatus.h"
18 
19 
20 // Athena includes
23 
24 #include <string>
25 #include <map>
26 #include <cmath>
27 
28 
29 #define NDIODES 10
30 #define NDIODES_LASER1 4
31 #define NMONITORS 4
32 #define NPMTS 2
33 
34 #define NGAINS 2
35 #define NPARTITIONS 4
36 #define NDRAWERS 64
37 #define NCOUPLES 22
38 #define NCHANNELS 48
39 #define NSLICES 100
40 #define NFIBERS 2
41 
42 
44 class TileLaserObject;
45 class TileHWID;
46 class TFile;
47 class RunningStat;
48 
49 class TileLaserDefaultCalibTool : public AthAlgTool, virtual public ITileCalibTool
50 {
51 
52  public:
53  TileLaserDefaultCalibTool(const std::string& type, const std::string& name,const IInterface* pParent);
55 
56  virtual StatusCode initialize() override;
57  virtual StatusCode initNtuple(int runNumber, int runType, TFile * rootfile) override;
58  virtual StatusCode execute() override;
59  virtual StatusCode finalizeCalculations() override;
60  virtual StatusCode writeNtuple(int runNumber, int runType, TFile * rootfile) override;
61  virtual StatusCode finalize() override;
62 
63  private:
64 
65  // Name of ntuple of the Tool
66  std::string m_toolNtuple;
67 
69  std::string m_laserContainerName;
70 
73 
76  ToolHandle<TileCondToolEmscale> m_tileToolEmscale{this,
77  "TileCondToolEmscale", "TileCondToolEmscale", "Tile em scale tool"};
78  ToolHandle<ITileBadChanTool> m_tileBadChanTool{this,
79  "TileBadChanTool", "TileBadChanTool", "Tile bad channel tool"};
80  ToolHandle<ITileStuckBitsProbsTool> m_stuckBitsProbs{this,
81  "StuckBitsProbsTool", "", "Tile stuck bits probabilities tool"};
82 
85  "TileRawChannelContainer", "TileRawChannelOpt2", "Tile raw channel container"};
87  "TileLaserObject", "TileLaserObj", "Tile laser object"};
88 
89  ToolHandle<ITileDCSTool> m_tileDCS{this, "TileDCSTool", "TileDCSTool", "Tile DCS tool"};
90 
91  // Parameter which will end up in the ROOTuple
92  //
93  // Details concerning this parameters could be found on the LASER webpage :
94  //
95  // http://atlas-tile-laser.web.cern.ch/
96  //
97 
98  int m_toolRunNo; // The run number
99  int m_ADC_problem; // Expert tag for LastROD problem noticfication
100  int m_las_filter; // Filter wheel position
101  float m_las_requ_amp; // Requested amplitude
102  float m_hrate; // Humidity rate (in %)
103  float m_flow; // Gas flow in diodes box (in L/h)
104  float m_head_temp; // Temperature of the LASER head
105  float m_las_time; // Event time
106 
107  // LASERII
108  float (*m_ratio_LASERII)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]; // Calib coefficients computed for this run (for all diodes, PMTs, phocal, CIS)
110  float (*m_ratio_LASERII_good)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]; // Calib coefficients computed for this run (for all diodes, PMTs, phocal, CIS)
112 
113  RunningStat* (*m_rs_ratio_LASERII)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS];
114  RunningStat* (*m_rs_ratio_LASERII_good)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS];
115 
116  // FIRST PART OF DATA FRAGMENT
117  /* float m_chan_LAS[32]; // Mean value for monitoring diodes, PMTs, phocal, CIS in Laser runs
118  float m_chan_PED[32]; // Mean value for monitoring diodes, PMTs, phocal, CIS in Pedestal runs
119  float m_chan_LED[32]; // Mean value for monitoring diodes, PMTs, phocal, CIS in LED runs
120  float m_chan_APH[32]; // Mean value for monitoring diodes, PMTs, phocal, CIS in Alpha runs
121  float m_chan_LIN[32]; // Mean value for monitoring diodes, PMTs, phocal, CIS un Linearity runs
122  float m_chan_S_LAS[32]; // Corresponding RMS in Laser runs
123  float m_chan_S_PED[32]; // Corresponding RMS in Pedestal runs
124  float m_chan_S_LED[32]; // Corresponding RMS in LED runs
125  float m_chan_S_APH[32]; // Corresponding RMS in Alpha runs
126  float m_chan_S_LIN[32]; // Corresponding RMS in Linearity runs
127  */
128 
129  // SECOND PART OF DATA FRAGMENT
130  float (*m_PMT_LASERII)[NGAINS]; // Mean value for box PMTs
131  float (*m_PMT_S_LASERII)[NGAINS]; // Corresponding RMS
132  RunningStat* (*m_rs_PMT_signal_LASERII)[NGAINS];
133 
134  float (*m_diode_LASERII)[NGAINS]; // Mean value for box Photodiodes
135  float (*m_diode_S_LASERII)[NGAINS]; // Corresponding RMS
136  int (*m_entries_diode_LASERII)[NGAINS]; //Number of DIODE events collected for one diode (and a particular gain)
137 
138  RunningStat* (*m_rs_diode_signal_LASERII)[NGAINS];
139 
140 
141  float (*m_diode_Ped_LASERII)[NGAINS]; // Corresponding pedestal values
142  float (*m_diode_Ped_S_LASERII)[NGAINS]; // Sigma of pedestal values
143  float (*m_diode_Alpha_LASERII)[NGAINS]; // Corresponding pedestal values
144  float (*m_diode_Alpha_S_LASERII)[NGAINS]; // Sigma of pedestal values
145  float (*m_diode_Led_LASERII)[NGAINS]; // Corresponding pedestal values
146  float (*m_diode_Led_S_LASERII)[NGAINS]; // Sigma of pedestal values
147  // float m_diode_Lin_LASERII[NDIODES][NGAINS]; // Corresponding pedestal values
148  // float m_diode_Lin_S_LASERII[NDIODES][NGAINS]; // Sigma of pedestal values
149  // float m_diode_Las_LASERII[NDIODES][NGAINS]; // Corresponding pedestal values
150  // float m_diode_Las_S_LASERII[NDIODES][NGAINS]; // Sigma of pedestal values
151  float (*m_PMT_Ped_LASERII)[NGAINS]; // Corresponding pedestal values
152  float (*m_PMT_Ped_S_LASERII)[NGAINS]; // Sigma of pedestal values
153 
154 
155  // LASERI
156  float m_PMT[NPMTS]; // Mean value for box PMTs
157  float m_PMT_S[NPMTS]; // Corresponding RMS
158  float m_diode[NDIODES_LASER1]; // Mean value for box Photodiodes
159  float m_diode_S[NDIODES_LASER1]; // Corresponding RMS
160  float m_diode_Ped[NDIODES_LASER1]; // Corresponding pedestal values
161  float m_diode_Alpha[NDIODES_LASER1]; // Corresponding alpha peaks
162  float m_diode_SPed[NDIODES_LASER1]; // Sigma of pedestals
163  float m_diode_SAlpha[NDIODES_LASER1]; // RMS of alpha spectra
164  float (*m_ratio)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]; // Calib coefficients computed for this run (for all diodes)
165  float (*m_ratio_S)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]; // Corresponding RMS
166  float (*m_ratio_good)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]; // Calib coefficients computed for this run (for all diodes)
168  float (*m_pmt_ratios)[NDRAWERS][NCHANNELS][NGAINS]; // Calib coefficients computed for this run (for all diodes)
169  float (*m_pmt_S_ratios)[NDRAWERS][NCHANNELS][NGAINS]; // Corresponding RMS
170 
175 
176 
181  RunningStat* (*m_rs_pmt_ratios)[NDRAWERS][NCHANNELS][NGAINS];
182 
183  RunningStat* (*m_rs_diode_ratio_low)[NDIODES];
184  RunningStat* (*m_rs_diode_ratio_high)[NDIODES];
185 
186  float (*m_meantime)[NGAINS]; // Mean time computed for this run per partition (to remove 25ns jitter)
187  float (*m_time)[NDRAWERS][NCHANNELS][NGAINS]; // Mean time computed for this run
188  float (*m_time_S)[NDRAWERS][NCHANNELS][NGAINS]; // Corresponding RMS
189 
190  float (*m_mean)[NDRAWERS][NCHANNELS][NGAINS]; // Mean signal computed for this run
191  float (*m_mean_S)[NDRAWERS][NCHANNELS][NGAINS]; // Corresponding RMS
192  float (*m_raw_mean)[NDRAWERS][NCHANNELS][NGAINS]; // Mean signal computed for this run
193  float (*m_raw_mean_S)[NDRAWERS][NCHANNELS][NGAINS]; // Corresponding RMS
194  int (*m_entries)[NDRAWERS][NCHANNELS][NGAINS]; // Number of LASER events collected for one channel (and a particular gain)
195  float (*m_kappa)[NDRAWERS][NFIBERS][NGAINS]; // Kappa correction term
198  short (*m_status)[NDRAWERS][NCHANNELS][NGAINS]; // Status of the channel in the DB
201 
202  // Local results - not sent to ROOTuple
205 
206  bool m_LASERII;
207  long long m_evtNr;
209  int m_have_alpha{0};
210  int m_have_led{0};
212  int m_have_laser{0};
213 
214  RunningStat* (*m_rs_meantime)[NGAINS];
216  RunningStat* (*m_rs_signal)[NDRAWERS][NCHANNELS][NGAINS];
217  RunningStat* (*m_rs_raw_signal)[NDRAWERS][NCHANNELS][NGAINS];
218  RunningStat* (*m_rs_reducedKappa)[NDRAWERS][NCOUPLES-1][NCOUPLES][NGAINS][NFIBERS];
219 
220  // Functions
221  static std::pair<unsigned int, unsigned int> getCoupleOfPMT(int ros, int couple);
222  short isCellBad(int ros, int drawer, int channel, int gain);
223 
224  inline int chanIsConnected(int ros, int chan) {
225  if(m_cabling->channel2hole(ros,chan)<0) return 0; //negative means not connected
226  return 1;
227  }
228 };
229 
230 
231 // Small class to compute mean & variance in a efficient way
232 class RunningStat {
233 
234 public:
235  // Default constructor
236  RunningStat() : m_n(0), m_oldM(0), m_newM(0), m_oldS(0), m_newS(0), m_nTotEntries(0),
238 
239  void Clear() {
240  m_n = 0;
241  }
242 
243  // See Knuth TAOCP vol 2, 3rd edition, page 232
244  void Push(double x) {
245  m_n++;
246  m_n_slice++;
247  m_nTotEntries++;
248 
249  if (m_n == 1) {
250  m_oldM = m_newM = x;
251  m_oldS = 0.0;
252  } else {
253  m_newM = m_oldM + (x - m_oldM)/m_n;
254  m_newS = m_oldS + (x - m_oldM)*(x - m_newM);
255 
256  // set up for next iteration
257  m_oldM = m_newM;
258  m_oldS = m_newS;
259  }
260 
261  //--- for slicing
262  if (m_n_slice == 1) {
264  m_oldS_slice = 0.0;
265  } else {
270  }
271 
272  if( m_n_slice==m_eventsPerSlice ) {
273  m_vectMean.push_back( (m_n_slice > 0) ? m_newM_slice : 0.0 );
274  m_vectVar.push_back( (m_n_slice > 1) ? m_newS_slice/(m_n_slice - 1) : 0.0 );
275  m_n_slice=0;
276  }
277  }
278 
279  inline int NumDataValues() const { return m_nTotEntries;}
280  inline double Mean() const { return (m_n > 0) ? m_newM : 0.0; }
281  inline double Variance() const { return ( (m_n > 1) ? m_newS/(m_n - 1) : 0.0 ); }
282  inline double StandardDeviation() const { return sqrt( Variance() ); }
283  inline int EventsPerSlice() { return m_eventsPerSlice;}
284 
285  inline double Mean(unsigned int iSlice){
286  if ( iSlice<m_vectMean.size() ) return m_vectMean[iSlice];
287  return 0;
288  }
289 
290  inline double Variance(unsigned int iSlice){
291  if (iSlice<m_vectVar.size()) return m_vectVar[iSlice];
292  return 0;
293  }
294 
295  inline int GetNSlices(){
296  return m_vectVar.size();
297  }
298 
299 
300 private:
301  int m_n;
307  std::vector<double> m_vectMean, m_vectVar;
308 
309 };
310 
311 
312 
313 #endif // #ifndef TILECALIBALG_TILELASERDEFAULTCALIBTOOL_H
TileLaserDefaultCalibTool::m_diode
float m_diode[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:158
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileLaserDefaultCalibTool::m_PMT
float m_PMT[NPMTS]
Definition: TileLaserDefaultCalibTool.h:156
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
TileLaserDefaultCalibTool::m_time
float(* m_time)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:187
TileLaserDefaultCalibTool
Definition: TileLaserDefaultCalibTool.h:50
TileLaserDefaultCalibTool::m_diode_Led_LASERII
float(* m_diode_Led_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:145
TileLaserDefaultCalibTool::m_LASERII
bool m_LASERII
Definition: TileLaserDefaultCalibTool.h:206
TileLaserDefaultCalibTool::m_dqStatusKey
SG::ReadHandleKey< TileDQstatus > m_dqStatusKey
Definition: TileLaserDefaultCalibTool.h:83
TileLaserDefaultCalibTool::m_PMT_Ped_S_LASERII
float(* m_PMT_Ped_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:152
NPMTS
#define NPMTS
Definition: TileLaserDefaultCalibTool.h:32
xAOD::short
short
Definition: Vertex_v1.cxx:165
TileLaserDefaultCalibTool::m_diode_Alpha_LASERII
float(* m_diode_Alpha_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:143
TileLaserDefaultCalibTool::m_diode_SAlpha
float m_diode_SAlpha[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:163
NCOUPLES
#define NCOUPLES
Definition: TileLaserDefaultCalibTool.h:37
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileLaserDefaultCalibTool::m_PMT2_ADC_prev
int m_PMT2_ADC_prev
Definition: TileLaserDefaultCalibTool.h:204
TileLaserDefaultCalibTool::m_raw_mean
float(* m_raw_mean)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:192
TileLaserDefaultCalibTool::m_hrate
float m_hrate
Definition: TileLaserDefaultCalibTool.h:102
TileLaserDefaultCalibTool::m_laserContainerName
std::string m_laserContainerName
Definition: TileLaserDefaultCalibTool.h:69
TileLaserDefaultCalibTool::m_pisaMethod2
bool m_pisaMethod2
Definition: TileLaserDefaultCalibTool.h:71
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TileLaserDefaultCalibTool::m_entries
int(* m_entries)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:194
RunningStat::m_oldS
double m_oldS
Definition: TileLaserDefaultCalibTool.h:302
TileLaserDefaultCalibTool::m_have_pedestals
int m_have_pedestals
Definition: TileLaserDefaultCalibTool.h:208
TileLaserDefaultCalibTool::isCellBad
short isCellBad(int ros, int drawer, int channel, int gain)
TileLaserDefaultCalibTool::m_ratio_good_S
float(* m_ratio_good_S)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:167
TileLaserDefaultCalibTool::m_diode_ratio_sigma_low
float(* m_diode_ratio_sigma_low)[NDIODES]
Definition: TileLaserDefaultCalibTool.h:173
TileLaserDefaultCalibTool::m_pmt_S_ratios
float(* m_pmt_S_ratios)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:169
TileLaserDefaultCalibTool::m_head_temp
float m_head_temp
Definition: TileLaserDefaultCalibTool.h:104
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
TileLaserDefaultCalibTool::m_PMT_S_LASERII
float(* m_PMT_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:131
TileLaserDefaultCalibTool::m_diode_SPed
float m_diode_SPed[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:162
TileLaserDefaultCalibTool::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileLaserDefaultCalibTool.h:84
TileLaserDefaultCalibTool::writeNtuple
virtual StatusCode writeNtuple(int runNumber, int runType, TFile *rootfile) override
Definition: TileLaserDefaultCalibTool.cxx:1076
TileLaserDefaultCalibTool::m_evtNr
long long m_evtNr
Definition: TileLaserDefaultCalibTool.h:207
TileLaserDefaultCalibTool::m_ratio
float(* m_ratio)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:164
TileLaserDefaultCalibTool::m_diode_Alpha
float m_diode_Alpha[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:161
ITileCalibTool
Definition: ITileCalibTool.h:19
NDIODES_LASER1
#define NDIODES_LASER1
Definition: TileLaserDefaultCalibTool.h:30
RunningStat::Mean
double Mean(unsigned int iSlice)
Definition: TileLaserDefaultCalibTool.h:285
TileLaserDefaultCalibTool::m_ratio_LASERII_good
float(* m_ratio_LASERII_good)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:110
TileLaserDefaultCalibTool::m_ratio_good
float(* m_ratio_good)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:166
TileLaserDefaultCalibTool::m_mean_slice
float(* m_mean_slice)[NDRAWERS][NCHANNELS][NSLICES][NGAINS]
Definition: TileLaserDefaultCalibTool.h:196
TileLaserObject.h
SG::ReadHandleKey< TileDQstatus >
TileLaserDefaultCalibTool::m_diode_Ped
float m_diode_Ped[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:160
x
#define x
LArCalib_HVScale2NtupleConfig.rootfile
string rootfile
Definition: LArCalib_HVScale2NtupleConfig.py:74
RunningStat::m_newS_slice
double m_newS_slice
Definition: TileLaserDefaultCalibTool.h:305
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
TileLaserDefaultCalibTool::m_rs_diode_signal
RunningStat * m_rs_diode_signal[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:177
TileLaserDefaultCalibTool::execute
virtual StatusCode execute() override
Definition: TileLaserDefaultCalibTool.cxx:371
NGAINS
#define NGAINS
Definition: TileLaserDefaultCalibTool.h:34
RunningStat::m_newM
double m_newM
Definition: TileLaserDefaultCalibTool.h:302
RunningStat::GetNSlices
int GetNSlices()
Definition: TileLaserDefaultCalibTool.h:295
TileLaserDefaultCalibTool::m_flow
float m_flow
Definition: TileLaserDefaultCalibTool.h:103
TileLaserDefaultCalibTool::m_diode_Ped_LASERII
float(* m_diode_Ped_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:141
NFIBERS
#define NFIBERS
Definition: TileLaserDefaultCalibTool.h:40
TileLaserDefaultCalibTool::m_mean
float(* m_mean)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:190
TileLaserDefaultCalibTool::m_raw_mean_S
float(* m_raw_mean_S)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:193
TileLaserDefaultCalibTool::TileLaserDefaultCalibTool
TileLaserDefaultCalibTool(const std::string &type, const std::string &name, const IInterface *pParent)
Definition: TileLaserDefaultCalibTool.cxx:39
TileLaserDefaultCalibTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileLaserDefaultCalibTool.h:74
TileRawChannelContainer.h
TileLaserDefaultCalibTool::m_time_S
float(* m_time_S)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:188
TileLaserDefaultCalibTool::m_laserContainerKey
SG::ReadHandleKey< TileLaserObject > m_laserContainerKey
Definition: TileLaserDefaultCalibTool.h:86
ITileCalibTool.h
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
NPARTITIONS
#define NPARTITIONS
Definition: TileLaserDefaultCalibTool.h:35
TileLaserDefaultCalibTool::~TileLaserDefaultCalibTool
virtual ~TileLaserDefaultCalibTool()
Definition: TileLaserDefaultCalibTool.cxx:144
RunningStat
Definition: TileLaserDefaultCalibTool.h:232
NSLICES
#define NSLICES
Definition: TileLaserDefaultCalibTool.h:39
RunningStat::Variance
double Variance() const
Definition: TileLaserDefaultCalibTool.h:281
TileLaserDefaultCalibTool::m_toolRunNo
int m_toolRunNo
Definition: TileLaserDefaultCalibTool.h:98
TileLaserDefaultCalibTool::m_diode_Alpha_S_LASERII
float(* m_diode_Alpha_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:144
TileLaserDefaultCalibTool::m_ratio_S_LASERII
float(* m_ratio_S_LASERII)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:109
RunningStat::m_newS
double m_newS
Definition: TileLaserDefaultCalibTool.h:302
TileCablingService.h
TileCondToolEmscale.h
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
TileLaserDefaultCalibTool::m_diode_Led_S_LASERII
float(* m_diode_Led_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:146
TileLaserDefaultCalibTool::m_las_requ_amp
float m_las_requ_amp
Definition: TileLaserDefaultCalibTool.h:101
TileLaserDefaultCalibTool::m_diode_S
float m_diode_S[NDIODES_LASER1]
Definition: TileLaserDefaultCalibTool.h:159
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileLaserDefaultCalibTool::m_HV
float(* m_HV)[NDRAWERS][NCHANNELS]
Definition: TileLaserDefaultCalibTool.h:199
AthAlgTool.h
TileLaserDefaultCalibTool::initialize
virtual StatusCode initialize() override
Definition: TileLaserDefaultCalibTool.cxx:205
RunningStat::Push
void Push(double x)
Definition: TileLaserDefaultCalibTool.h:244
TileLaserDefaultCalibTool::m_ratio_S
float(* m_ratio_S)[NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:165
TileLaserDefaultCalibTool::m_ADC_problem
int m_ADC_problem
Definition: TileLaserDefaultCalibTool.h:99
TileLaserDefaultCalibTool::m_diode_LASERII
float(* m_diode_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:134
NCHANNELS
#define NCHANNELS
Definition: TileLaserDefaultCalibTool.h:38
TileLaserDefaultCalibTool::m_entries_diode_LASERII
int(* m_entries_diode_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:136
NDRAWERS
#define NDRAWERS
Definition: TileLaserDefaultCalibTool.h:36
TileLaserDefaultCalibTool::m_las_filter
int m_las_filter
Definition: TileLaserDefaultCalibTool.h:100
RunningStat::m_vectVar
std::vector< double > m_vectVar
Definition: TileLaserDefaultCalibTool.h:307
TileLaserDefaultCalibTool::m_diode_ratio_high
float(* m_diode_ratio_high)[NDIODES]
Definition: TileLaserDefaultCalibTool.h:172
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileCablingService
Definition: TileCablingService.h:23
TileLaserDefaultCalibTool::getCoupleOfPMT
static std::pair< unsigned int, unsigned int > getCoupleOfPMT(int ros, int couple)
Definition: TileLaserDefaultCalibTool.cxx:1185
TileLaserDefaultCalibTool::m_diode_ratio_low
float(* m_diode_ratio_low)[NDIODES]
Definition: TileLaserDefaultCalibTool.h:171
TileDQstatus.h
Information produced by TileDQstatusAlg (used to be done by TileBeamInfoProvider).
python.OnlineISConfiguration.runType
def runType
Definition: OnlineISConfiguration.py:112
TileLaserDefaultCalibTool::m_ratio_LASERII
float(* m_ratio_LASERII)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:108
RunningStat::m_n_slice
int m_n_slice
Definition: TileLaserDefaultCalibTool.h:304
ITileDCSTool.h
RunningStat::Mean
double Mean() const
Definition: TileLaserDefaultCalibTool.h:280
TileLaserDefaultCalibTool::m_toolNtuple
std::string m_toolNtuple
Definition: TileLaserDefaultCalibTool.h:66
RunningStat::m_oldM_slice
double m_oldM_slice
Definition: TileLaserDefaultCalibTool.h:305
TileLaserDefaultCalibTool::m_stuckBitsProbs
ToolHandle< ITileStuckBitsProbsTool > m_stuckBitsProbs
Definition: TileLaserDefaultCalibTool.h:80
RunningStat::m_vectMean
std::vector< double > m_vectMean
Definition: TileLaserDefaultCalibTool.h:307
TileLaserDefaultCalibTool::m_rawChannelContainerName
std::string m_rawChannelContainerName
Definition: TileLaserDefaultCalibTool.h:68
RunningStat::NumDataValues
int NumDataValues() const
Definition: TileLaserDefaultCalibTool.h:279
RunningStat::m_oldS_slice
double m_oldS_slice
Definition: TileLaserDefaultCalibTool.h:305
TileLaserDefaultCalibTool::m_tileBadChanTool
ToolHandle< ITileBadChanTool > m_tileBadChanTool
Definition: TileLaserDefaultCalibTool.h:78
RunningStat::Clear
void Clear()
Definition: TileLaserDefaultCalibTool.h:239
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TileLaserDefaultCalibTool::m_isLaserCalib
bool m_isLaserCalib
Definition: TileLaserDefaultCalibTool.h:72
TileLaserDefaultCalibTool::m_diode_S_LASERII
float(* m_diode_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:135
RunningStat::m_oldM
double m_oldM
Definition: TileLaserDefaultCalibTool.h:302
TileLaserDefaultCalibTool::finalize
virtual StatusCode finalize() override
Definition: TileLaserDefaultCalibTool.cxx:1179
TileLaserDefaultCalibTool::m_PMT_Ped_LASERII
float(* m_PMT_Ped_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:151
TileLaserDefaultCalibTool::m_tileToolEmscale
ToolHandle< TileCondToolEmscale > m_tileToolEmscale
Definition: TileLaserDefaultCalibTool.h:76
TileLaserDefaultCalibTool::m_PMT1_ADC_prev
int m_PMT1_ADC_prev
Definition: TileLaserDefaultCalibTool.h:203
RunningStat::m_n
int m_n
Definition: TileLaserDefaultCalibTool.h:301
TileLaserDefaultCalibTool::m_cabling
const TileCablingService * m_cabling
Definition: TileLaserDefaultCalibTool.h:75
TileLaserDefaultCalibTool::m_HVSet
float(* m_HVSet)[NDRAWERS][NCHANNELS]
Definition: TileLaserDefaultCalibTool.h:200
TileLaserDefaultCalibTool::m_ratio_S_LASERII_good
float(* m_ratio_S_LASERII_good)[NGAINS][NPARTITIONS][NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:111
TileLaserDefaultCalibTool::m_las_time
float m_las_time
Definition: TileLaserDefaultCalibTool.h:105
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
RunningStat::StandardDeviation
double StandardDeviation() const
Definition: TileLaserDefaultCalibTool.h:282
TileLaserDefaultCalibTool::m_status
short(* m_status)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:198
TileLaserDefaultCalibTool::m_have_led
int m_have_led
Definition: TileLaserDefaultCalibTool.h:210
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCablingService::channel2hole
static int channel2hole(int ros, int channel)
Definition: TileCablingService.cxx:1946
TileLaserDefaultCalibTool::m_tileDCS
ToolHandle< ITileDCSTool > m_tileDCS
Definition: TileLaserDefaultCalibTool.h:89
TileLaserDefaultCalibTool::m_diode_ratio_sigma_high
float(* m_diode_ratio_sigma_high)[NDIODES]
Definition: TileLaserDefaultCalibTool.h:174
RunningStat::m_nTotEntries
int m_nTotEntries
Definition: TileLaserDefaultCalibTool.h:303
ITileStuckBitsProbsTool.h
RunningStat::Variance
double Variance(unsigned int iSlice)
Definition: TileLaserDefaultCalibTool.h:290
NDIODES
#define NDIODES
Definition: TileLaserDefaultCalibTool.h:29
TileLaserDefaultCalibTool::m_variance_slice
float(* m_variance_slice)[NDRAWERS][NCHANNELS][NSLICES][NGAINS]
Definition: TileLaserDefaultCalibTool.h:197
TileLaserDefaultCalibTool::m_diode_Ped_S_LASERII
float(* m_diode_Ped_S_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:142
RunningStat::m_eventsPerSlice
int m_eventsPerSlice
Definition: TileLaserDefaultCalibTool.h:306
TileLaserDefaultCalibTool::m_PMT_LASERII
float(* m_PMT_LASERII)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:130
TileLaserDefaultCalibTool::m_kappa
float(* m_kappa)[NDRAWERS][NFIBERS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:195
TileLaserDefaultCalibTool::initNtuple
virtual StatusCode initNtuple(int runNumber, int runType, TFile *rootfile) override
Definition: TileLaserDefaultCalibTool.cxx:365
AthAlgTool
Definition: AthAlgTool.h:26
TileLaserDefaultCalibTool::m_have_alpha
int m_have_alpha
Definition: TileLaserDefaultCalibTool.h:209
ITileBadChanTool.h
TileLaserDefaultCalibTool::m_rs_PMT_signal
RunningStat * m_rs_PMT_signal[NPMTS]
Definition: TileLaserDefaultCalibTool.h:178
TileLaserDefaultCalibTool::m_have_laser
int m_have_laser
Definition: TileLaserDefaultCalibTool.h:212
RunningStat::m_newM_slice
double m_newM_slice
Definition: TileLaserDefaultCalibTool.h:305
TileLaserDefaultCalibTool::chanIsConnected
int chanIsConnected(int ros, int chan)
Definition: TileLaserDefaultCalibTool.h:224
RunningStat::RunningStat
RunningStat()
Definition: TileLaserDefaultCalibTool.h:236
RunningStat::EventsPerSlice
int EventsPerSlice()
Definition: TileLaserDefaultCalibTool.h:283
TileLaserObject
Definition: TileLaserObject.h:33
readCCLHist.float
float
Definition: readCCLHist.py:83
TileLaserDefaultCalibTool::m_PMT_S
float m_PMT_S[NPMTS]
Definition: TileLaserDefaultCalibTool.h:157
TileLaserDefaultCalibTool::m_pmt_ratios
float(* m_pmt_ratios)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:168
TileLaserDefaultCalibTool::m_have_linearity
int m_have_linearity
Definition: TileLaserDefaultCalibTool.h:211
TileLaserDefaultCalibTool::m_meantime
float(* m_meantime)[NGAINS]
Definition: TileLaserDefaultCalibTool.h:186
TileLaserDefaultCalibTool::m_mean_S
float(* m_mean_S)[NDRAWERS][NCHANNELS][NGAINS]
Definition: TileLaserDefaultCalibTool.h:191
TileLaserDefaultCalibTool::finalizeCalculations
virtual StatusCode finalizeCalculations() override
Definition: TileLaserDefaultCalibTool.cxx:820