ATLAS Offline Software
LArCond2NtupleBaseEB.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 //Dear emacs, this is -*-c++-*-
6 #ifndef LARCALIBTOOLS_LARCOND2NTUPLEBASEEB_H
7 #define LARCALIBTOOLS_LARCOND2NTUPLEBASEEB_H
8 
9 //#include "GaudiKernel/Algorithm.h"
11 #include "GaudiKernel/NTuple.h"
12 #include "GaudiKernel/ToolHandle.h"
13 
15 
21 
22 class HWIdentifier;
23 class LArOnlineID_Base;
24 class CaloCell_Base_ID;
25 class StoreGateSvc;
26 class LArEM_Base_ID;
27 class LArHEC_Base_ID;
28 class LArFCAL_Base_ID;
29 class MsgStream;
31 
33 
34  public:
35  LArCond2NtupleBaseEB(const std::string & name, ISvcLocator * pSvcLocator);
36  ~LArCond2NtupleBaseEB() = default;
37 
38  //Standard algo methods
40  StatusCode execute() {return StatusCode::SUCCESS;}
41 
42  bool fillFromIdentifier(const HWIdentifier& id, int C); //returns true if connected
43 
45 
46  private:
48 
49 
50  protected:
51  Gaudi::Property< bool > m_addBC{this, "AddBadChannelInfo", true, "dump BadChan info ?"};
52  Gaudi::Property< bool > m_addFEBTemp{this, "AddFEBTempInfo", false, "dump FEB temperature info ?"};
53  Gaudi::Property< bool > m_isSC{this, "isSC", false, "are we working with SC?"};
54  Gaudi::Property< bool > m_isFlat{this, "isFlat", false, "are we working with Flat conditions ?"};
55  Gaudi::Property< bool > m_OffId{this, "OffId", false, "dump also offline ID ?"};
56  Gaudi::Property< bool > m_addHash{this, "AddHash", false, "add also ID hash info ?"};
57  Gaudi::Property< bool > m_addCalib{this, "AddCalib", false, "add also calib line info info ?"};
58  Gaudi::Property< bool > m_realgeom{this, "RealGeometry", false, "add real geometry values ?"};
59  Gaudi::Property< bool > m_expandId{this,"ExpandId", true ,"add online Id decoded fields ?"};
60 
61  enum {NOT_VALID = -999};
62 
63  std::string m_ntpath, m_ntTitle;
64 
65  //Ntuple pointer
66  NTuple::Tuple* m_nt;
67 
68  //Ntuple variables:
70  NTuple::Array<double> m_pos_neg, m_barrel_ec, m_FT, m_slot, m_channel;
71  NTuple::Array<double> m_calibLine,m_badChanWord;
72  NTuple::Array<double> m_isConnected;
73  NTuple::Array<double> m_chanHash, m_febHash, m_oflHash;
74 
75  NTuple::Array<float> m_reta, m_rphi;
76  NTuple::Array<float> m_FEBTemp1, m_FEBTemp2;
77 
78 
79 
80  const int m_SC= 34048;
81 
88  ToolHandle<ILArFEBTempTool> m_FEBTempTool;
89 
90  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
91  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingSCKey{this,"CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
92 
93  SG::ReadCondHandleKey<LArBadChannelCont> m_BCKey{this, "BadChanKey", "LArBadChannel", "SG bad channels key"};
94  SG::ReadCondHandleKey<LArCalibLineMapping> m_calibMapKey{this,"CalibMapKey","LArCalibLineMap","SG Key of calib line mapping object"};
95  SG::ReadCondHandleKey<LArCalibLineMapping> m_calibMapSCKey{this,"CalibMapSCKey","LArCalibIdMapSC","SG Key of calib line mapping object"};
96 
97  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store"};
99  , "CaloSuperCellDetDescrManager"
100  , "CaloSuperCellDetDescrManager"
101  , "SG key of the resulting CaloSuperCellDetDescrManager" };
102 
103 };
104 #endif
LArCond2NtupleBaseEB::m_phi
NTuple::Array< double > m_phi
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::m_ntTitle
std::string m_ntTitle
Definition: LArCond2NtupleBaseEB.h:63
LArCond2NtupleBaseEB::m_region
NTuple::Array< double > m_region
Definition: LArCond2NtupleBaseEB.h:69
LArFCAL_Base_ID
Definition: LArFCAL_Base_ID.h:19
LArCond2NtupleBaseEB::m_layer
NTuple::Array< double > m_layer
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::m_detStore
StoreGateSvc * m_detStore
Definition: LArCond2NtupleBaseEB.h:82
LArCond2NtupleBaseEB::m_fcalId
const LArFCAL_Base_ID * m_fcalId
Definition: LArCond2NtupleBaseEB.h:85
LArCond2NtupleBaseEB::m_oflHash
NTuple::Array< double > m_oflHash
Definition: LArCond2NtupleBaseEB.h:73
LArCond2NtupleBaseEB::m_chanHash
NTuple::Array< double > m_chanHash
Definition: LArCond2NtupleBaseEB.h:73
LArHEC_Base_ID
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
Definition: LArHEC_Base_ID.h:44
LArEM_Base_ID
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
Definition: LArEM_Base_ID.h:38
LArCond2NtupleBaseEB::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCond2NtupleBaseEB.h:90
LArCond2NtupleBaseEB::m_slot
NTuple::Array< double > m_slot
Definition: LArCond2NtupleBaseEB.h:70
LArCond2NtupleBaseEB::m_FT
NTuple::Array< double > m_FT
Definition: LArCond2NtupleBaseEB.h:70
LArCond2NtupleBaseEB::m_OffId
Gaudi::Property< bool > m_OffId
Definition: LArCond2NtupleBaseEB.h:55
LArCond2NtupleBaseEB::~LArCond2NtupleBaseEB
~LArCond2NtupleBaseEB()=default
DMTest::C
C_v1 C
Definition: C.h:26
LArCond2NtupleBaseEB::m_eta
NTuple::Array< double > m_eta
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::initialize
StatusCode initialize()
Definition: LArCond2NtupleBaseEB.cxx:29
LArCond2NtupleBaseEB::m_SC
const int m_SC
Definition: LArCond2NtupleBaseEB.h:80
CaloDetDescrManager_Base
Definition: CaloDetDescrManager.h:147
LArCond2NtupleBaseEB::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Definition: LArCond2NtupleBaseEB.h:98
LArCond2NtupleBaseEB::m_ntpath
std::string m_ntpath
Definition: LArCond2NtupleBaseEB.h:63
HWIdentifier
Definition: HWIdentifier.h:13
LArCond2NtupleBaseEB::m_rphi
NTuple::Array< float > m_rphi
Definition: LArCond2NtupleBaseEB.h:75
LArCond2NtupleBaseEB::m_badChanWord
NTuple::Array< double > m_badChanWord
Definition: LArCond2NtupleBaseEB.h:71
LArCond2NtupleBaseEB::m_expandId
Gaudi::Property< bool > m_expandId
Definition: LArCond2NtupleBaseEB.h:59
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArCond2NtupleBaseEB::m_calibMapSCKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibMapSCKey
Definition: LArCond2NtupleBaseEB.h:95
AthAlgorithm.h
LArBadChannelCont.h
LArCond2NtupleBaseEB::m_addBC
Gaudi::Property< bool > m_addBC
Definition: LArCond2NtupleBaseEB.h:51
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
LArCond2NtupleBaseEB::m_cablingSCKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingSCKey
Definition: LArCond2NtupleBaseEB.h:91
LArOnOffIdMapping.h
LArCond2NtupleBaseEB::m_FEBTempTool
ToolHandle< ILArFEBTempTool > m_FEBTempTool
Definition: LArCond2NtupleBaseEB.h:88
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArCond2NtupleBaseEB::m_onlineId
const LArOnlineID_Base * m_onlineId
Definition: LArCond2NtupleBaseEB.h:86
LArCond2NtupleBaseEB::m_febHash
NTuple::Array< double > m_febHash
Definition: LArCond2NtupleBaseEB.h:73
LArCond2NtupleBaseEB::m_FEBTemp2
NTuple::Array< float > m_FEBTemp2
Definition: LArCond2NtupleBaseEB.h:76
LArCond2NtupleBaseEB::m_detector
NTuple::Array< double > m_detector
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::m_channel
NTuple::Array< double > m_channel
Definition: LArCond2NtupleBaseEB.h:70
LArCond2NtupleBaseEB::fillFromIdentifier
bool fillFromIdentifier(const HWIdentifier &id, int C)
Definition: LArCond2NtupleBaseEB.cxx:280
LArCond2NtupleBaseEB
Definition: LArCond2NtupleBaseEB.h:32
AthAlgorithm
Definition: AthAlgorithm.h:47
LArCond2NtupleBaseEB::m_addFEBTemp
Gaudi::Property< bool > m_addFEBTemp
Definition: LArCond2NtupleBaseEB.h:52
LArCond2NtupleBaseEB::NOT_VALID
@ NOT_VALID
Definition: LArCond2NtupleBaseEB.h:61
ReadCondHandleKey.h
LArCond2NtupleBaseEB::cablingKey
const SG::ReadCondHandleKey< LArOnOffIdMapping > & cablingKey() const
Definition: LArCond2NtupleBaseEB.cxx:441
LArCond2NtupleBaseEB::m_nt
NTuple::Tuple * m_nt
Definition: LArCond2NtupleBaseEB.h:66
LArCond2NtupleBaseEB::execute
StatusCode execute()
Definition: LArCond2NtupleBaseEB.h:40
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
LArCond2NtupleBaseEB::m_barrel_ec
NTuple::Array< double > m_barrel_ec
Definition: LArCond2NtupleBaseEB.h:70
LArCond2NtupleBaseEB::m_BCKey
SG::ReadCondHandleKey< LArBadChannelCont > m_BCKey
Definition: LArCond2NtupleBaseEB.h:93
LArCond2NtupleBaseEB::m_FEBTemp1
NTuple::Array< float > m_FEBTemp1
Definition: LArCond2NtupleBaseEB.h:76
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArCond2NtupleBaseEB::LArCond2NtupleBaseEB
LArCond2NtupleBaseEB(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArCond2NtupleBaseEB.cxx:15
LArCond2NtupleBaseEB::m_oflChanId
NTuple::Array< double > m_oflChanId
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::m_emId
const LArEM_Base_ID * m_emId
Definition: LArCond2NtupleBaseEB.h:83
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArCond2NtupleBaseEB::m_isFlat
Gaudi::Property< bool > m_isFlat
Definition: LArCond2NtupleBaseEB.h:54
LArCond2NtupleBaseEB::m_initialized
bool m_initialized
Definition: LArCond2NtupleBaseEB.h:47
LArCond2NtupleBaseEB::m_caloId
const CaloCell_Base_ID * m_caloId
Definition: LArCond2NtupleBaseEB.h:87
LArCond2NtupleBaseEB::m_reta
NTuple::Array< float > m_reta
Definition: LArCond2NtupleBaseEB.h:75
LArCond2NtupleBaseEB::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArCond2NtupleBaseEB.h:97
LArCond2NtupleBaseEB::m_onlChanId
NTuple::Array< double > m_onlChanId
Definition: LArCond2NtupleBaseEB.h:69
LArCond2NtupleBaseEB::m_calibLine
NTuple::Array< double > m_calibLine
Definition: LArCond2NtupleBaseEB.h:71
LArCond2NtupleBaseEB::m_isConnected
NTuple::Array< double > m_isConnected
Definition: LArCond2NtupleBaseEB.h:72
LArCond2NtupleBaseEB::m_addCalib
Gaudi::Property< bool > m_addCalib
Definition: LArCond2NtupleBaseEB.h:57
LArCalibLineMapping.h
CaloCell_Base_ID
Helper base class for offline cell identifiers.
Definition: CaloCell_Base_ID.h:41
LArCond2NtupleBaseEB::m_realgeom
Gaudi::Property< bool > m_realgeom
Definition: LArCond2NtupleBaseEB.h:58
LArCond2NtupleBaseEB::m_pos_neg
NTuple::Array< double > m_pos_neg
Definition: LArCond2NtupleBaseEB.h:70
LArCond2NtupleBaseEB::m_hecId
const LArHEC_Base_ID * m_hecId
Definition: LArCond2NtupleBaseEB.h:84
LArCond2NtupleBaseEB::m_addHash
Gaudi::Property< bool > m_addHash
Definition: LArCond2NtupleBaseEB.h:56
ILArFEBTempTool.h
LArCond2NtupleBaseEB::m_calibMapKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibMapKey
Definition: LArCond2NtupleBaseEB.h:94
LArCond2NtupleBaseEB::m_isSC
Gaudi::Property< bool > m_isSC
Definition: LArCond2NtupleBaseEB.h:53