ATLAS Offline Software
Loading...
Searching...
No Matches
LArHECNoise.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#ifndef LARCAFJOBS_LARHECNOISE_H
6#define LARCAFJOBS_LARHECNOISE_H
7
8#include "GaudiKernel/ToolHandle.h"
10#include "GaudiKernel/ObjectVector.h"
11#include "GaudiKernel/AlgTool.h"
12
13#include "CLHEP/Units/SystemOfUnits.h"
15#include "GaudiKernel/ITHistSvc.h"
16
17//LAr services:
18#include "Identifier/Range.h"
25
27
28// Trigger
30
31
32//STL:
33#include <string>
34#include <bitset>
35
36
37class LArOnlineID;
38class LArElectrodeID;
39class HWIdentifier;
40class LArEM_ID;
41class LArHEC_ID;
42class LArFCAL_ID;
43
44class TTree;
45
46class LArHECNoise : public AthAlgorithm {
47
48 public:
49
50 LArHECNoise(const std::string& name, ISvcLocator* pSvcLocator);
52
53 virtual StatusCode initialize() override;
54 virtual StatusCode finalize() override;
55 virtual StatusCode execute() override;
56
57 private:
58
59 ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
60
61 TTree* m_tree;
62
63 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
64 SG::ReadCondHandleKey<ILArPedestal> m_pedKey{this,"PedestalKey","LArPedestal","SG Key of Pedestal obj"};
65 /*Tools*/
66
67 PublicToolHandle< Trig::TrigDecisionTool > m_trigDec{this, "TrigDecisionTool", "", "Handle to the TrigDecisionTool"};
68
69 /*services*/
72 , "CaloDetDescrManager"
73 , "CaloDetDescrManager"
74 , "SG Key for CaloDetDescrManager in the Condition Store" };
75
77
78 /*declaration of branches*/
93 short m_nt_digi[32];
99 float m_nt_e;
100 float m_nt_t;
101 float m_nt_eta;
102 float m_nt_phi;
103 float m_nt_z;
104 float m_nt_r;
105 float m_nt_ped;
109
110 // other members
111 std::vector<std::string> m_TriggerLines;
114
115
116};
117
118#endif // LArHECNoise_H
119
Definition of CaloDetDescrManager.
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
Helper for the Liquid Argon Calorimeter cell at the electrode level.
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
virtual StatusCode initialize() override
SG::ReadCondHandleKey< ILArPedestal > m_pedKey
Definition LArHECNoise.h:64
bool * m_nt_trigger
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Definition LArHECNoise.h:67
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition LArHECNoise.h:71
const LArOnlineID * m_LArOnlineIDHelper
Definition LArHECNoise.h:70
float * m_nt_prescale
ServiceHandle< ITHistSvc > m_thistSvc
Definition LArHECNoise.h:59
virtual StatusCode execute() override
short m_nt_digi[32]
Definition LArHECNoise.h:93
virtual StatusCode finalize() override
float m_nt_actMu
Definition LArHECNoise.h:98
std::vector< std::string > m_TriggerLines
float m_nt_pedRMS
int m_nt_evtCount
Definition LArHECNoise.h:81
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition LArHECNoise.h:63
float m_nt_avgMu
Definition LArHECNoise.h:97
TTree * m_tree
Definition LArHECNoise.h:61
int m_nt_evtTime_ns
Definition LArHECNoise.h:83
const CaloCell_ID * m_calocell_id
Definition LArHECNoise.h:76
LArHECNoise(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76