ATLAS Offline Software
LArTimePhysPrediction.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 //01/2009: T. Guillemin
6 //This algorithm predicts the relative times of the physics pulses
7 //from the calibration pulses and the complete readout path
8 #ifndef LARCALIBUTILS_LARTIMEPHYSPREDICTION_H
9 #define LARCALIBUTILS_LARTIMEPHYSPREDICTION_H
10 
12 #include "GaudiKernel/INTupleSvc.h"
13 #include "GaudiKernel/NTuple.h"
14 #include "GaudiKernel/ITHistSvc.h"
19 
20 class CaloDepthTool;
21 class ITHistSvc;
22 
24 {
25 
26  public:
27 
28  LArTimePhysPrediction(const std::string & name, ISvcLocator * pSvcLocator);
30 
31  //standard algorithm methods
33  StatusCode execute() { return StatusCode::SUCCESS ; }
34  StatusCode stop();
35  StatusCode finalize() { return StatusCode::SUCCESS ; }
36 
37  private:
38 
39  ITHistSvc * m_thistSvc;
40  std::string m_keyoutput;
41  std::string m_keyinput;
42  std::string m_groupingType;
43  std::string m_CaloDepth;
45  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
46  SG::ReadCondHandleKey<LArCalibLineMapping> m_calibMapKey{this,"CalibMapKey","LArCalibLineMap","SG Key of calib line mapping object"};
48  , "CaloDetDescrManager"
49  , "CaloDetDescrManager"
50  , "SG Key for CaloDetDescrManager in the Condition Store" };
51 
53  std::vector<std::vector<double> > m_vLCalib_EMB;
54  std::vector<double> m_vEtaMin_EMB;
55  std::vector<double> m_vEtaMax_EMB;
57  double m_vLCalib_HEC;
58  std::vector<std::vector<double> > m_vLSignal_EMB;
61  std::vector<double> m_vLSignal_FCAL;
62  std::vector<std::vector<double> > m_vDeltaTTC_EMB;
63  std::vector<std::vector<double> > m_vDeltaTTC_EC;
64  std::vector<std::vector<double> > m_vDeltaTTC_ECC_SPEC;
65  std::vector<std::vector<double> > m_vDeltaTTC_ECA_SPEC;
66  double m_sCalib;
67  double m_sSignal;
68  double m_sPig;
69  double m_sLTP;
70 
71  //Ntuple pointer
73  //Ntuple variables
74  NTuple::Item<long> m_Chid;
75  NTuple::Item<long> m_Channel;
76  NTuple::Item<long> m_CalibLine;
77  NTuple::Item<long> m_is_lar_em;
78  NTuple::Item<long> m_is_lar_hec;
79  NTuple::Item<long> m_is_lar_fcal;
80  NTuple::Item<long> m_pos_neg;
81  NTuple::Item<long> m_barrel_ec;
82  NTuple::Item<long> m_FT;
83  NTuple::Item<long> m_slot;
84  NTuple::Item<long> m_FEBid;
85  NTuple::Item<long> m_eta;
86  NTuple::Item<long> m_phi;
87  NTuple::Item<long> m_layer;
88  NTuple::Item<double> m_real_eta;
89  NTuple::Item<double> m_real_phi;
90  NTuple::Item<double> m_t0;
91  NTuple::Item<double> m_tcali;
92  NTuple::Item<double> m_tCalibPredicted;
93  NTuple::Item<double> m_CalibCables;
94  NTuple::Item<double> m_SignalCables;
95  NTuple::Item<double> m_TOF;
96  NTuple::Item<double> m_DeltaTTC;
97  NTuple::Item<double> m_tPhysPredicted;
98 };
99 
100 #endif
LArTimePhysPrediction::m_Channel
NTuple::Item< long > m_Channel
Definition: LArTimePhysPrediction.h:75
CaloDepthTool
Implementation of the ICaloDepthTool interface.Given a Track direction, checks if it is in the Calori...
Definition: CaloDepthTool.h:47
LArTimePhysPrediction::m_t0
NTuple::Item< double > m_t0
Definition: LArTimePhysPrediction.h:90
LArTimePhysPrediction::m_FT
NTuple::Item< long > m_FT
Definition: LArTimePhysPrediction.h:82
LArTimePhysPrediction::finalize
StatusCode finalize()
Definition: LArTimePhysPrediction.h:35
LArTimePhysPrediction::m_TOF
NTuple::Item< double > m_TOF
Definition: LArTimePhysPrediction.h:95
LArTimePhysPrediction::m_CalibLine
NTuple::Item< long > m_CalibLine
Definition: LArTimePhysPrediction.h:76
LArTimePhysPrediction::m_DeltaTTC
NTuple::Item< double > m_DeltaTTC
Definition: LArTimePhysPrediction.h:96
LArTimePhysPrediction::m_vLSignal_EMB
std::vector< std::vector< double > > m_vLSignal_EMB
Definition: LArTimePhysPrediction.h:58
LArTimePhysPrediction::LArTimePhysPrediction
LArTimePhysPrediction(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArTimePhysPrediction.cxx:29
LArTimePhysPrediction::m_vDeltaTTC_EC
std::vector< std::vector< double > > m_vDeltaTTC_EC
Definition: LArTimePhysPrediction.h:63
LArTimePhysPrediction::m_sLTP
double m_sLTP
Definition: LArTimePhysPrediction.h:69
LArTimePhysPrediction::m_FEBid
NTuple::Item< long > m_FEBid
Definition: LArTimePhysPrediction.h:84
LArTimePhysPrediction::m_real_phi
NTuple::Item< double > m_real_phi
Definition: LArTimePhysPrediction.h:89
LArTimePhysPrediction::m_vLSignal_FCAL
std::vector< double > m_vLSignal_FCAL
Definition: LArTimePhysPrediction.h:61
LArTimePhysPrediction::m_is_lar_hec
NTuple::Item< long > m_is_lar_hec
Definition: LArTimePhysPrediction.h:78
LArTimePhysPrediction::initialize
StatusCode initialize()
Definition: LArTimePhysPrediction.cxx:61
LArTimePhysPrediction::m_layer
NTuple::Item< long > m_layer
Definition: LArTimePhysPrediction.h:87
LArTimePhysPrediction::m_slot
NTuple::Item< long > m_slot
Definition: LArTimePhysPrediction.h:83
LArTimePhysPrediction::m_sSignal
double m_sSignal
Definition: LArTimePhysPrediction.h:67
LArTimePhysPrediction::m_vLCalib_EMEC
double m_vLCalib_EMEC
Definition: LArTimePhysPrediction.h:56
LArTimePhysPrediction::m_tCalibPredicted
NTuple::Item< double > m_tCalibPredicted
Definition: LArTimePhysPrediction.h:92
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArTimePhysPrediction::m_vEtaMin_EMB
std::vector< double > m_vEtaMin_EMB
Definition: LArTimePhysPrediction.h:54
LArTimePhysPrediction::m_tPhysPredicted
NTuple::Item< double > m_tPhysPredicted
Definition: LArTimePhysPrediction.h:97
LArTimePhysPrediction::m_vDeltaTTC_ECA_SPEC
std::vector< std::vector< double > > m_vDeltaTTC_ECA_SPEC
Definition: LArTimePhysPrediction.h:65
LArTimePhysPrediction::m_keyoutput
std::string m_keyoutput
Definition: LArTimePhysPrediction.h:40
LArTimePhysPrediction::m_pos_neg
NTuple::Item< long > m_pos_neg
Definition: LArTimePhysPrediction.h:80
AthAlgorithm.h
LArTimePhysPrediction::m_eta
NTuple::Item< long > m_eta
Definition: LArTimePhysPrediction.h:85
LArTimePhysPrediction::m_CalibCables
NTuple::Item< double > m_CalibCables
Definition: LArTimePhysPrediction.h:93
LArOnOffIdMapping.h
LArTimePhysPrediction::m_calibMapKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibMapKey
Definition: LArTimePhysPrediction.h:46
LArTimePhysPrediction::m_thistSvc
ITHistSvc * m_thistSvc
Definition: LArTimePhysPrediction.h:39
LArTimePhysPrediction
Definition: LArTimePhysPrediction.h:24
LArTimePhysPrediction::m_phi
NTuple::Item< long > m_phi
Definition: LArTimePhysPrediction.h:86
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArTimePhysPrediction::m_vLSignal_EMEC
double m_vLSignal_EMEC
Definition: LArTimePhysPrediction.h:59
LArTimePhysPrediction::m_CaloDepthTool
CaloDepthTool * m_CaloDepthTool
Definition: LArTimePhysPrediction.h:44
LArTimePhysPrediction::m_is_lar_fcal
NTuple::Item< long > m_is_lar_fcal
Definition: LArTimePhysPrediction.h:79
LArTimePhysPrediction::m_vLCalib_HEC
double m_vLCalib_HEC
Definition: LArTimePhysPrediction.h:57
LArTimePhysPrediction::m_vLCalib_EMB
std::vector< std::vector< double > > m_vLCalib_EMB
Definition: LArTimePhysPrediction.h:53
LArTimePhysPrediction::m_SignalCables
NTuple::Item< double > m_SignalCables
Definition: LArTimePhysPrediction.h:94
LArTimePhysPrediction::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArTimePhysPrediction.h:45
LArTimePhysPrediction::~LArTimePhysPrediction
~LArTimePhysPrediction()
LArTimePhysPrediction::m_vLSignal_HEC
double m_vLSignal_HEC
Definition: LArTimePhysPrediction.h:60
LArTimePhysPrediction::m_keyinput
std::string m_keyinput
Definition: LArTimePhysPrediction.h:41
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArTimePhysPrediction::m_vDeltaTTC_ECC_SPEC
std::vector< std::vector< double > > m_vDeltaTTC_ECC_SPEC
Definition: LArTimePhysPrediction.h:64
LArTimePhysPrediction::m_CaloDepth
std::string m_CaloDepth
Definition: LArTimePhysPrediction.h:43
LArTimePhysPrediction::m_real_eta
NTuple::Item< double > m_real_eta
Definition: LArTimePhysPrediction.h:88
LArTimePhysPrediction::stop
StatusCode stop()
Definition: LArTimePhysPrediction.cxx:116
LArTimePhysPrediction::m_barrel_ec
NTuple::Item< long > m_barrel_ec
Definition: LArTimePhysPrediction.h:81
LArTimePhysPrediction::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArTimePhysPrediction.h:47
LArTimePhysPrediction::m_nt
NTuple::Tuple * m_nt
Definition: LArTimePhysPrediction.h:72
LArTimePhysPrediction::m_nchannels_max
int m_nchannels_max
Definition: LArTimePhysPrediction.h:52
LArTimePhysPrediction::m_vDeltaTTC_EMB
std::vector< std::vector< double > > m_vDeltaTTC_EMB
Definition: LArTimePhysPrediction.h:62
LArTimePhysPrediction::m_tcali
NTuple::Item< double > m_tcali
Definition: LArTimePhysPrediction.h:91
LArTimePhysPrediction::m_is_lar_em
NTuple::Item< long > m_is_lar_em
Definition: LArTimePhysPrediction.h:77
LArTimePhysPrediction::m_sPig
double m_sPig
Definition: LArTimePhysPrediction.h:68
LArTimePhysPrediction::m_vEtaMax_EMB
std::vector< double > m_vEtaMax_EMB
Definition: LArTimePhysPrediction.h:55
LArTimePhysPrediction::m_sCalib
double m_sCalib
Definition: LArTimePhysPrediction.h:66
LArCalibLineMapping.h
LArTimePhysPrediction::execute
StatusCode execute()
Definition: LArTimePhysPrediction.h:33
LArTimePhysPrediction::m_Chid
NTuple::Item< long > m_Chid
Definition: LArTimePhysPrediction.h:74
LArTimePhysPrediction::m_groupingType
std::string m_groupingType
Definition: LArTimePhysPrediction.h:42
Tuple
PerfMon::Tuple Tuple
Definition: PerfMonSvc.cxx:91