ATLAS Offline Software
CaloAddCellPedShift.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // CaloAddCellPedShift.h
6 //
7 
8 #ifndef CALOCONDPHYSALGS_CALOADDCELLPEDSHIFT_H
9 #define CALOCONDPHYSALGS_CALOADDCELLPEDSHIFT_H
10 
11 #include <string>
12 
13 // Gaudi includes
14 
16 #include "GaudiKernel/ToolHandle.h"
20 #include "StoreGate/DataHandle.h"
25 
26 #include "GaudiKernel/ITHistSvc.h"
27 #include "TTree.h"
28 
30 
31 class CaloCondBlobFlt;
33 
34 
36 
37  public:
38  //Gaudi style constructor and execution methods
40  CaloAddCellPedShift(const std::string& name, ISvcLocator* pSvcLocator);
43 
45  virtual StatusCode initialize() override;
47  virtual StatusCode execute() override;
49  virtual StatusCode finalize() override;
51  virtual StatusCode stop() override;
52 
53  private:
54 
55  //---------------------------------------------------
56  // Member variables
57  //---------------------------------------------------
58  std::string m_fname;
59  std::string m_folderName;
60 
61  ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
62 
63  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
64  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" };
67 
68  virtual StatusCode updateMap(IOVSVC_CALLBACK_ARGS);
69  //=== blob storage
71  std::map<unsigned int, const CaloCondBlobFlt*> m_noiseBlobMap;
72 
73  ToolHandle<ICaloCoolIdTool> m_caloCoolIdTool;
74 
75  int m_iCool;
76  int m_SubHash;
77  int m_Hash;
78  int m_OffId;
79  float m_eta;
80  float m_phi;
81  int m_layer;
82  int m_Gain;
83  int m_bec;
84  int m_posneg;
85  int m_FT;
86  int m_slot;
87  int m_channel;
88  float m_ped1;
89  float m_ped1corr;
90  float m_ped2;
91 
92  TTree* m_tree;
93 
94 
95 };
96 #endif
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
CaloAddCellPedShift::m_layer
int m_layer
Definition: CaloAddCellPedShift.h:81
CaloAddCellPedShift::m_Hash
int m_Hash
Definition: CaloAddCellPedShift.h:77
CaloCondBlobFlt
Class for storing a number of floats (Flt) and functions on those.
Definition: CaloCondBlobFlt.h:29
CaloAddCellPedShift::m_posneg
int m_posneg
Definition: CaloAddCellPedShift.h:84
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
CaloAddCellPedShift::m_ped2
float m_ped2
Definition: CaloAddCellPedShift.h:90
initialize
void initialize()
Definition: run_EoverP.cxx:894
CaloAddCellPedShift::m_tree
TTree * m_tree
Definition: CaloAddCellPedShift.h:92
CaloAddCellPedShift::m_eta
float m_eta
Definition: CaloAddCellPedShift.h:79
PixelModuleFeMask_create_db.stop
int stop
Definition: PixelModuleFeMask_create_db.py:76
CaloAddCellPedShift::m_folderName
std::string m_folderName
Definition: CaloAddCellPedShift.h:59
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
IOVSVC_CALLBACK_ARGS
#define IOVSVC_CALLBACK_ARGS
short hand for IOVSvc call back argument list, to be used when no access to formal arguments is neede...
Definition: IOVSvcDefs.h:24
CaloAddCellPedShift::m_channel
int m_channel
Definition: CaloAddCellPedShift.h:87
CaloAddCellPedShift::m_OffId
int m_OffId
Definition: CaloAddCellPedShift.h:78
DataHandle.h
CaloAddCellPedShift::m_SubHash
int m_SubHash
Definition: CaloAddCellPedShift.h:76
CaloAddCellPedShift::m_bec
int m_bec
Definition: CaloAddCellPedShift.h:83
CaloAddCellPedShift::m_phi
float m_phi
Definition: CaloAddCellPedShift.h:80
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCell_ID.h
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
AthAlgorithm.h
CaloAddCellPedShift::m_ped1
float m_ped1
Definition: CaloAddCellPedShift.h:88
LArOnOffIdMapping.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloAddCellPedShift::m_noiseAttrListColl
const DataHandle< CondAttrListCollection > m_noiseAttrListColl
Definition: CaloAddCellPedShift.h:70
CaloAddCellPedShift::m_ped1corr
float m_ped1corr
Definition: CaloAddCellPedShift.h:89
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
CaloAddCellPedShift::m_noiseBlobMap
std::map< unsigned int, const CaloCondBlobFlt * > m_noiseBlobMap
Definition: CaloAddCellPedShift.h:71
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloAddCellPedShift
Definition: CaloAddCellPedShift.h:35
CaloAddCellPedShift::m_FT
int m_FT
Definition: CaloAddCellPedShift.h:85
LArOnlineID
Definition: LArOnlineID.h:20
ICaloCoolIdTool.h
DataHandle< CondAttrListCollection >
CaloAddCellPedShift::m_slot
int m_slot
Definition: CaloAddCellPedShift.h:86
CaloAddCellPedShift::m_fname
std::string m_fname
Definition: CaloAddCellPedShift.h:58
SG::ReadCondHandleKey< LArOnOffIdMapping >
CaloAddCellPedShift::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloAddCellPedShift.h:65
CaloIdManager.h
IOVSvcDefs.h
defines and typedefs for IOVSvc
CaloAddCellPedShift::m_caloCoolIdTool
ToolHandle< ICaloCoolIdTool > m_caloCoolIdTool
Definition: CaloAddCellPedShift.h:73
CaloAddCellPedShift::m_onlineID
const LArOnlineID * m_onlineID
Definition: CaloAddCellPedShift.h:66
CaloAddCellPedShift::m_iCool
int m_iCool
Definition: CaloAddCellPedShift.h:75
checker_macros.h
Define macros for attributes used to control the static checker.
CaloAddCellPedShift::m_Gain
int m_Gain
Definition: CaloAddCellPedShift.h:82
LArOnlineID.h
ServiceHandle< ITHistSvc >