ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
18public:
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
25private:
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"};
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...
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
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;
86
87 virtual StatusCode CBNT_clear() override;
88};
89
90#endif // CBNT_EVENTINFO_H
91
92
93
94
95
96
97
98
99
100
int GetEnergy()
Definition GetEnergy.cxx:81
ICaloCoordinateTool interface declaration 30.9.2004 Creation of the class TBCalocoordinate by claire....
virtual StatusCode CBNT_clear() override
float m_preverrSycLoss
long m_runParticleType_nt
ToolHandle< ICaloCoordinateTool > m_coord
bool m_computeBeamEnergy
ToolHandle< TBCondRunParTool > m_runpar
std::vector< float > * m_quad_file
std::vector< float > * m_quad_equip
std::vector< float > * m_trim_file
std::vector< float > * m_bend_file
float SyncLoss(float energy, float currB3, float currB4)
float SyncLossErr(float loss)
float m_preverrCurrents
float GetBdl3(float current)
virtual StatusCode CBNT_finalize() override
virtual StatusCode CBNT_execute() override
std::vector< float > * m_trim_equip
CBNTAA_TBInfo(const std::string &name, ISvcLocator *pSvcLocator)
void calculateAll(int runNumber, int eventNumber)
virtual ~CBNTAA_TBInfo()
std::vector< float > * m_bend_equip
float GetBdl4(float current)
float m_errCollimators
std::vector< float > * m_coll_equip
float GetErrAbsE(float energy)
float GetErrCurr(float currB3, float currB4)
float m_preverrAbsEnergy
float m_preverrCollimators
float GetErrColl(float coll3_down, float coll3_up, float coll9_down, float coll9_up)
virtual StatusCode CBNT_initialize() override
std::vector< float > * m_coll_file
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)