ATLAS Offline Software
CBNTAA_TBInfo.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 TBREC_CBNTAA_TBINFO_H
6 #define TBREC_CBNTAA_TBINFO_H
7 
8 #include "CBNT_TBRecBase.h"
9 
12 
13 #include <vector>
14 
15 class TBCondRunParTool;
16 
17 class CBNTAA_TBInfo : public CBNT_TBRecBase {
18 public:
19  CBNTAA_TBInfo(const std::string &name, ISvcLocator *pSvcLocator);
20  virtual ~CBNTAA_TBInfo();
21  virtual StatusCode CBNT_initialize() override;
22  virtual StatusCode CBNT_execute() override;
23  virtual StatusCode CBNT_finalize() override;
24 
25 private:
26  float GetEnergy(float CurrB3, float CurrB4);
27  float GetBdl3(float current);
28  float GetBdl4(float current);
29  float GetErrColl(float coll3_down, float coll3_up, float coll9_down, float coll9_up);
30  float GetErrAbsE(float energy);
31  float GetErrCurr(float currB3, float currB4);
32  float SyncLoss(float energy, float currB3, float currB4);
33  float SyncLossErr(float loss);
34 
35 
36  ToolHandle<ICaloCoordinateTool> m_coord{this, "CaloCoordinateTool", "TBCaloCoordinate"};
37  ToolHandle<TBCondRunParTool> m_runpar{this, "CondRunParTool", "TBCondRunParTool"};
38  bool m_DBRead;
43 
44  //for VLE setup...
45  float m_B8_Bdl; //B8dl of VLE setup B8 magnet
46  bool m_is_VLE; //a flag showing whether the run is a VLE run or HLE run
47 
48  //previous values of calculated variables used for caching pruposes...
50  float m_prevEnergy;
56  float m_prevB3;
57  float m_prevB4;
58  float m_prevB8;
59  //new method added by H.Hakobyan to deal with energy calculation out of execute()..
60  void calculateAll(int runNumber,int eventNumber);
61 
62  // ntuple variables
63  // for test beam
64  double m_runEta_nt;
67 
68  std::vector<float> *m_quad_file;
69  std::vector<float> *m_quad_equip;
70 
71  std::vector<float> *m_bend_file;
72  std::vector<float> *m_bend_equip;
73 
74  std::vector<float> *m_trim_file;
75  std::vector<float> *m_trim_equip;
76 
77  std::vector<float> *m_coll_file;
78  std::vector<float> *m_coll_equip;
79 
80  float m_energy;
84  float m_sycLoss;
85  float m_errSycLoss;
86 
87  virtual StatusCode CBNT_clear() override;
88 };
89 
90 #endif // CBNT_EVENTINFO_H
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
CBNTAA_TBInfo::m_quad_file
std::vector< float > * m_quad_file
Definition: CBNTAA_TBInfo.h:68
fillPileUpNoiseLumi.current
current
Definition: fillPileUpNoiseLumi.py:52
CBNTAA_TBInfo::m_errAbsEnergy
float m_errAbsEnergy
Definition: CBNTAA_TBInfo.h:81
CBNTAA_TBInfo::m_coll_file
std::vector< float > * m_coll_file
Definition: CBNTAA_TBInfo.h:77
CBNTAA_TBInfo::GetErrColl
float GetErrColl(float coll3_down, float coll3_up, float coll9_down, float coll9_up)
Definition: CBNTAA_TBInfo.cxx:212
CBNTAA_TBInfo
Definition: CBNTAA_TBInfo.h:17
CBNTAA_TBInfo::calculateAll
void calculateAll(int runNumber, int eventNumber)
Definition: CBNTAA_TBInfo.cxx:307
CBNTAA_TBInfo::m_runpar
ToolHandle< TBCondRunParTool > m_runpar
Definition: CBNTAA_TBInfo.h:37
CBNTAA_TBInfo::m_runParticleType_nt
long m_runParticleType_nt
Definition: CBNTAA_TBInfo.h:65
CBNTAA_TBInfo::SyncLossErr
float SyncLossErr(float loss)
Definition: CBNTAA_TBInfo.cxx:277
CBNTAA_TBInfo::GetErrAbsE
float GetErrAbsE(float energy)
Definition: CBNTAA_TBInfo.cxx:222
CBNTAA_TBInfo::m_prevEnergy
float m_prevEnergy
Definition: CBNTAA_TBInfo.h:50
CBNTAA_TBInfo::m_energy
float m_energy
Definition: CBNTAA_TBInfo.h:80
CBNTAA_TBInfo::GetErrCurr
float GetErrCurr(float currB3, float currB4)
Definition: CBNTAA_TBInfo.cxx:231
CBNTAA_TBInfo::m_preverrAbsEnergy
float m_preverrAbsEnergy
Definition: CBNTAA_TBInfo.h:51
CBNTAA_TBInfo::m_prevB8
float m_prevB8
Definition: CBNTAA_TBInfo.h:58
CBNTAA_TBInfo::m_trim_equip
std::vector< float > * m_trim_equip
Definition: CBNTAA_TBInfo.h:75
CBNTAA_TBInfo::CBNT_finalize
virtual StatusCode CBNT_finalize() override
Definition: CBNTAA_TBInfo.cxx:285
CBNT_TBRecBase.h
CBNTAA_TBInfo::m_bend_equip
std::vector< float > * m_bend_equip
Definition: CBNTAA_TBInfo.h:72
CBNTAA_TBInfo::m_B8_Bdl
float m_B8_Bdl
Definition: CBNTAA_TBInfo.h:45
CBNTAA_TBInfo::m_prevB4
float m_prevB4
Definition: CBNTAA_TBInfo.h:57
CBNTAA_TBInfo::m_is_VLE
bool m_is_VLE
Definition: CBNTAA_TBInfo.h:46
CBNTAA_TBInfo::m_sycLoss
float m_sycLoss
Definition: CBNTAA_TBInfo.h:84
CBNTAA_TBInfo::m_errCollimators
float m_errCollimators
Definition: CBNTAA_TBInfo.h:82
CBNTAA_TBInfo::GetEnergy
float GetEnergy(float CurrB3, float CurrB4)
Definition: CBNTAA_TBInfo.cxx:169
CBNTAA_TBInfo::m_prevB3
float m_prevB3
Definition: CBNTAA_TBInfo.h:56
CBNTAA_TBInfo::m_trim_file
std::vector< float > * m_trim_file
Definition: CBNTAA_TBInfo.h:74
CBNTAA_TBInfo::m_computeBeamEnergy
bool m_computeBeamEnergy
Definition: CBNTAA_TBInfo.h:41
CBNTAA_TBInfo::m_preverrSycLoss
float m_preverrSycLoss
Definition: CBNTAA_TBInfo.h:55
CBNTAA_TBInfo::GetBdl3
float GetBdl3(float current)
Definition: CBNTAA_TBInfo.cxx:180
CBNTAA_TBInfo::CBNTAA_TBInfo
CBNTAA_TBInfo(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CBNTAA_TBInfo.cxx:19
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
CBNT_TBRecBase
Definition: CBNT_TBRecBase.h:21
CBNTAA_TBInfo::m_beamener
int m_beamener
Definition: CBNTAA_TBInfo.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CBNTAA_TBInfo::SyncLoss
float SyncLoss(float energy, float currB3, float currB4)
Definition: CBNTAA_TBInfo.cxx:253
CBNTAA_TBInfo::m_prevsycLoss
float m_prevsycLoss
Definition: CBNTAA_TBInfo.h:54
CBNTAA_TBInfo::m_beamtype
int m_beamtype
Definition: CBNTAA_TBInfo.h:40
xAOD::eventNumber
eventNumber
Definition: EventInfo_v1.cxx:124
ICaloCoordinateTool.h
ICaloCoordinateTool interface declaration 30.9.2004 Creation of the class TBCalocoordinate by claire....
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CBNTAA_TBInfo::CBNT_execute
virtual StatusCode CBNT_execute() override
Definition: CBNTAA_TBInfo.cxx:124
CBNTAA_TBInfo::m_DBRead
bool m_DBRead
Definition: CBNTAA_TBInfo.h:38
CBNTAA_TBInfo::m_quad_equip
std::vector< float > * m_quad_equip
Definition: CBNTAA_TBInfo.h:69
CBNTAA_TBInfo::m_preverrCurrents
float m_preverrCurrents
Definition: CBNTAA_TBInfo.h:53
CBNTAA_TBInfo::GetBdl4
float GetBdl4(float current)
Definition: CBNTAA_TBInfo.cxx:196
CBNTAA_TBInfo::m_coord
ToolHandle< ICaloCoordinateTool > m_coord
Definition: CBNTAA_TBInfo.h:36
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
TBCondRunParTool
Definition: TBCondRunParTool.py:1
CBNTAA_TBInfo::~CBNTAA_TBInfo
virtual ~CBNTAA_TBInfo()
Definition: CBNTAA_TBInfo.cxx:58
CBNTAA_TBInfo::m_bend_file
std::vector< float > * m_bend_file
Definition: CBNTAA_TBInfo.h:71
TBCondRunParTool.h
CBNTAA_TBInfo::CBNT_clear
virtual StatusCode CBNT_clear() override
Definition: CBNTAA_TBInfo.cxx:292
CBNTAA_TBInfo::CBNT_initialize
virtual StatusCode CBNT_initialize() override
Definition: CBNTAA_TBInfo.cxx:70
CBNTAA_TBInfo::m_preverrCollimators
float m_preverrCollimators
Definition: CBNTAA_TBInfo.h:52
CBNTAA_TBInfo::m_runEta_nt
double m_runEta_nt
Definition: CBNTAA_TBInfo.h:64
CBNTAA_TBInfo::m_prevrunNum
int m_prevrunNum
Definition: CBNTAA_TBInfo.h:49
CBNTAA_TBInfo::m_errSycLoss
float m_errSycLoss
Definition: CBNTAA_TBInfo.h:85
CBNTAA_TBInfo::m_coll_equip
std::vector< float > * m_coll_equip
Definition: CBNTAA_TBInfo.h:78
CBNTAA_TBInfo::m_runEnergy_nt
long m_runEnergy_nt
Definition: CBNTAA_TBInfo.h:66
CBNTAA_TBInfo::m_errCurrents
float m_errCurrents
Definition: CBNTAA_TBInfo.h:83
CBNTAA_TBInfo::m_dumpBeamLine
bool m_dumpBeamLine
Definition: CBNTAA_TBInfo.h:42