ATLAS Offline Software
LArTTL1Calib.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARL1SIM_LARTTL1CALIB_H
6 #define LARL1SIM_LARTTL1CALIB_H
7 // +======================================================================+
8 // + +
9 // + Author ........: F. Ledroit +
10 // + Institut ......: ISN Grenoble +
11 // + Creation date .: 20/04/2004 +
12 // + +
13 // +======================================================================+
14 //
15 // ....... include
16 //
17 
19 #include "GaudiKernel/NTuple.h"
20 
21 
22 class StoreGateSvc;
23 class CaloLVL1_ID;
24 
28 class LArTTL1Calib : public AthAlgorithm
29 {
30 //
31 // >>>>>>>> public methods
32 //
33  public:
35  LArTTL1Calib(const std::string& name, ISvcLocator* pSvcLocator);
36 
38  ~LArTTL1Calib();
39 //
40 // ..... Gaudi algorithm hooks
41 //
42  virtual StatusCode initialize();
43  virtual StatusCode execute();
44  virtual StatusCode finalize();
45 
46  private:
47 
48 //
49 // >>>>>>>> private algorithm parts
50 //
51 
52  void decodeInverseTTChannel(int region, int layer, int eta, int & bec, int & emhf, int & Ieta) const;
53 
54 //
55 // >>>>>>>> private data parts
56 //
57 
59  int m_maxNtt ;
60 
61 // pointer to ntuple
62  NTuple::Tuple* m_pnt;
63 
64 // variables to be in ntuple.
65 
66  NTuple::Item<long> m_ntotem;
67  NTuple::Item<float> m_etotem;
68  NTuple::Item<long> m_n3x3em;
69  NTuple::Item<float> m_e3x3em;
70  NTuple::Item<float> m_emostem;
71  NTuple::Item<long> m_bec_mostEem;
72  NTuple::Item<long> m_emfcal_mostEem;
73  NTuple::Item<long> m_Ieta_mostEem;
74  NTuple::Item<long> m_Lphi_mostEem;
75  NTuple::Item<long> m_nttem;
76  NTuple::Array<float> m_ettem;
77  NTuple::Array<long> m_becttem;
78  NTuple::Array<long> m_emfcalttem;
79  NTuple::Array<long> m_Ietattem;
80  NTuple::Array<long> m_Lphittem;
81 
82  NTuple::Item<long> m_ntothad;
83  NTuple::Item<float> m_etothad;
84  NTuple::Item<long> m_n3x3had;
85  NTuple::Item<float> m_e3x3had;
86  NTuple::Item<float> m_emosthad;
87  NTuple::Item<long> m_hecfcal_mostEhad;
88  NTuple::Item<long> m_Ieta_mostEhad;
89  NTuple::Item<long> m_Lphi_mostEhad;
90  NTuple::Item<long> m_ntthad;
91  NTuple::Array<float> m_etthad;
92  NTuple::Array<long> m_hecfcaltthad;
93  NTuple::Array<long> m_Ietatthad;
94  NTuple::Array<long> m_Lphitthad;
95 
97 
98 };
99 
100 #endif
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
LArTTL1Calib::m_hecfcaltthad
NTuple::Array< long > m_hecfcaltthad
Definition: LArTTL1Calib.h:92
LArTTL1Calib::m_Lphi_mostEem
NTuple::Item< long > m_Lphi_mostEem
Definition: LArTTL1Calib.h:74
LArTTL1Calib::m_Lphittem
NTuple::Array< long > m_Lphittem
Definition: LArTTL1Calib.h:80
LArTTL1Calib::m_etothad
NTuple::Item< float > m_etothad
Definition: LArTTL1Calib.h:83
LArTTL1Calib::m_maxNtt
int m_maxNtt
Definition: LArTTL1Calib.h:59
LArTTL1Calib::m_hecfcal_mostEhad
NTuple::Item< long > m_hecfcal_mostEhad
Definition: LArTTL1Calib.h:87
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
LArTTL1Calib::m_nttem
NTuple::Item< long > m_nttem
Definition: LArTTL1Calib.h:75
LArTTL1Calib::m_lvl1Helper
const CaloLVL1_ID * m_lvl1Helper
Definition: LArTTL1Calib.h:96
LArTTL1Calib::execute
virtual StatusCode execute()
Definition: LArTTL1Calib.cxx:145
LArTTL1Calib::~LArTTL1Calib
~LArTTL1Calib()
destructor
Definition: LArTTL1Calib.cxx:61
LArTTL1Calib::m_emfcalttem
NTuple::Array< long > m_emfcalttem
Definition: LArTTL1Calib.h:78
LArTTL1Calib::m_n3x3em
NTuple::Item< long > m_n3x3em
Definition: LArTTL1Calib.h:68
AthAlgorithm.h
LArTTL1Calib::m_ettem
NTuple::Array< float > m_ettem
Definition: LArTTL1Calib.h:76
LArTTL1Calib::decodeInverseTTChannel
void decodeInverseTTChannel(int region, int layer, int eta, int &bec, int &emhf, int &Ieta) const
Definition: LArTTL1Calib.cxx:320
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
LArTTL1Calib::m_ntthad
NTuple::Item< long > m_ntthad
Definition: LArTTL1Calib.h:90
LArTTL1Calib::m_Ietattem
NTuple::Array< long > m_Ietattem
Definition: LArTTL1Calib.h:79
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArTTL1Calib::m_thresholdGeVTTs
float m_thresholdGeVTTs
Definition: LArTTL1Calib.h:58
LArTTL1Calib
This algorithm is meant to be run in standalone only for TTL1 calibration purposes.
Definition: LArTTL1Calib.h:29
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
LArTTL1Calib::m_emosthad
NTuple::Item< float > m_emosthad
Definition: LArTTL1Calib.h:86
LArTTL1Calib::m_ntothad
NTuple::Item< long > m_ntothad
Definition: LArTTL1Calib.h:82
AthAlgorithm
Definition: AthAlgorithm.h:47
LArTTL1Calib::initialize
virtual StatusCode initialize()
Definition: LArTTL1Calib.cxx:67
LArTTL1Calib::m_bec_mostEem
NTuple::Item< long > m_bec_mostEem
Definition: LArTTL1Calib.h:71
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArTTL1Calib::m_etotem
NTuple::Item< float > m_etotem
Definition: LArTTL1Calib.h:67
LArTTL1Calib::LArTTL1Calib
LArTTL1Calib(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Definition: LArTTL1Calib.cxx:35
LArTTL1Calib::m_n3x3had
NTuple::Item< long > m_n3x3had
Definition: LArTTL1Calib.h:84
LArTTL1Calib::m_pnt
NTuple::Tuple * m_pnt
Definition: LArTTL1Calib.h:62
LArTTL1Calib::m_emostem
NTuple::Item< float > m_emostem
Definition: LArTTL1Calib.h:70
LArTTL1Calib::m_e3x3had
NTuple::Item< float > m_e3x3had
Definition: LArTTL1Calib.h:85
LArTTL1Calib::m_Ietatthad
NTuple::Array< long > m_Ietatthad
Definition: LArTTL1Calib.h:93
LArTTL1Calib::m_ntotem
NTuple::Item< long > m_ntotem
Definition: LArTTL1Calib.h:66
LArTTL1Calib::m_emfcal_mostEem
NTuple::Item< long > m_emfcal_mostEem
Definition: LArTTL1Calib.h:72
LArTTL1Calib::m_Ieta_mostEhad
NTuple::Item< long > m_Ieta_mostEhad
Definition: LArTTL1Calib.h:88
LArTTL1Calib::m_etthad
NTuple::Array< float > m_etthad
Definition: LArTTL1Calib.h:91
LArTTL1Calib::m_becttem
NTuple::Array< long > m_becttem
Definition: LArTTL1Calib.h:77
LArTTL1Calib::m_Lphi_mostEhad
NTuple::Item< long > m_Lphi_mostEhad
Definition: LArTTL1Calib.h:89
LArTTL1Calib::m_Lphitthad
NTuple::Array< long > m_Lphitthad
Definition: LArTTL1Calib.h:94
LArTTL1Calib::finalize
virtual StatusCode finalize()
Definition: LArTTL1Calib.cxx:308
LArTTL1Calib::m_Ieta_mostEem
NTuple::Item< long > m_Ieta_mostEem
Definition: LArTTL1Calib.h:73
LArTTL1Calib::m_e3x3em
NTuple::Item< float > m_e3x3em
Definition: LArTTL1Calib.h:69