ATLAS Offline Software
Loading...
Searching...
No Matches
TBECLArRawChannelBuilder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBREC_TBECLARRAWCHANNELBUILDER_H
6#define TBREC_TBECLARRAWCHANNELBUILDER_H
7
9#include "GaudiKernel/ToolHandle.h"
13
15
17
22
23class CaloCell_ID;
24
26{
27public:
28 TBECLArRawChannelBuilder (const std::string& name, ISvcLocator* pSvcLocator);
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute() override;
31 virtual StatusCode finalize() override;
32
33private:
34 //Services & Tools
37
38 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey {this,"keyCabling", "LArOnOffIdMap", "Input key for Id mapping"} ;
39 SG::ReadCondHandleKey<ILArHVScaleCorr> m_offlineHVScaleCorrKey{this, "keyOfflineHVCorr", "LArHVScaleCorrRecomputed","Key for LArHVScaleCorr"};
40
41 //Algo-properties
45 float m_Ecut;
52 float m_ramp_max[3];
53
59 unsigned int m_iPedestal;
60 unsigned int m_shapeMode;
61
62 unsigned m_skipSaturCells; // 0 = no skip ; 1 = skip saturating cells ; 2 = skipp all event
63 short m_AdcMax;
64
65 //Counters for errors & warnings per job:
66 int m_noEnergy; // Number of events with at least completly failed channel
67 int m_noTime; // Number of events with at least one channel without time info
68 int m_noShape; // Number of events with at least one channel without Shape (=with not quality factor);
69 int m_noShapeDer; // Number of events with at least one channel without ShapeDerivative (=not taken into accout for quality factor);
70 int m_saturation; // Number of events with at least one saturating channel
71
72 //bool m_errorPrint;
73 int m_lastNoEnergy; // Number of completly failed channels in previous event
74 int m_lastNoTime; // Number of channels without time info in previous event
75 int m_lastNoShape; // Number of channels without Shape (=with not quality factor) in previous event
76 int m_lastNoShapeDer; // Number of channels without ShapeDerivative in previous event
77 //int m_lastSaturCells; // Number of saturating channels without in previous event (not used)
78
79 float m_aveNoEnergy; // Average number of completly failed channels per event
80 float m_aveNoTime; // Average number of channels without time info per event
81 float m_aveNoShape; // Average number of channels without Shape (=with not quality factor) per event
82 float m_aveNoShapeDer; // Average number of channels without ShapeDerivative per event
83 float m_aveSaturCells; // Average number of saturating channels per event
84
85 int m_nEvents; // Total number of processed events ;
86 float m_aveChannels; // Average number of readout channels per event
88
89 //Time ranges for OFC application
91
92 //Private Member functions:
93 //void sortChannels(LArRawChannelContainer* container) ;
94
95 // to be used for detailed DEBUG output only
97
98 // For useRamp = False
99 float m_adc2mev[30];
100
103 {this, "OFCKey", "LArOFC", "SG Key of OFC conditions object" };
104
106 { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" };
107};
108
109#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
virtual StatusCode execute() override
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_offlineHVScaleCorrKey
virtual StatusCode finalize() override
SG::ReadCondHandleKey< ILArOFC > m_ofcKey
Property: OFC coefficients (conditions input).
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
TBECLArRawChannelBuilder(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override