#include <CBNTAA_TBTrack.h>
|
| template<class T> |
| void | addBranch (const std::string &branchname, T &obj, const std::string &leaflist) |
| template<class T> |
| void | addBranch (const std::string &branchname, T *&obj) |
| template<class T> |
| void | addBranch (const std::string &branchname, T *&obj, int bufferSize, int splitLevel) |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| | remove all handles from I/O resolution
|
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| | Add StoreName to extra input/output deps as needed.
|
Definition at line 15 of file CBNTAA_TBTrack.h.
◆ StoreGateSvc_t
◆ anonymous enum
◆ CBNTAA_TBTrack()
| CBNTAA_TBTrack::CBNTAA_TBTrack |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Definition at line 14 of file CBNTAA_TBTrack.cxx.
14 :
26{
28}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
bool m_readFileforXcryo
Get Xcryo and Ytable from a text file.
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)
◆ ~CBNTAA_TBTrack()
| virtual CBNTAA_TBTrack::~CBNTAA_TBTrack |
( |
| ) |
|
|
inlinevirtual |
◆ add_name()
| std::string CBNTAA_TBTrack::add_name |
( |
const char * | base, |
|
|
const std::string & | extension ) |
|
private |
Definition at line 104 of file CBNTAA_TBTrack.cxx.
104 {
106 for (
unsigned i=0;
i<extension.size();
i++) {
107 const char&
ch=extension[
i];
108 if (ch=='=' || ch==':' || ch=='/')
109 continue;
110 else if (ch=='-')
112 else if (ch=='+')
114 else
116 }
118}
◆ addBranch() [1/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T & | obj, |
|
|
const std::string & | leaflist ) |
|
inlineprotectedinherited |
◆ addBranch() [2/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T *& | obj ) |
|
inlineprotectedinherited |
◆ addBranch() [3/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T *& | obj, |
|
|
int | bufferSize, |
|
|
int | splitLevel ) |
|
inlineprotectedinherited |
◆ CBNT_clear()
| virtual StatusCode CBNT_TBRecBase::CBNT_clear |
( |
| ) |
|
|
inlinevirtualinherited |
◆ CBNT_execute()
| StatusCode CBNTAA_TBTrack::CBNT_execute |
( |
| ) |
|
|
overridevirtual |
Reimplemented from CBNT_TBRecBase.
Definition at line 46 of file CBNTAA_TBTrack.cxx.
46 {
48
49
50
51 const TBEventInfo* theEventInfo = nullptr;
53
54
57 float xCryo = -9999;
58 float yTable = -9999;
62 return StatusCode::FAILURE;
63 }
64 } else {
67 }
72
73
74 TBTrack *
track =
nullptr;
76
77 float zCalo = 30000.;
95
96 return StatusCode::SUCCESS;
97}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
float getBeamMomentum() const
unsigned int getRunNum() const
retrieve(aClass, aKey=None)
◆ CBNT_finalize()
| StatusCode CBNTAA_TBTrack::CBNT_finalize |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_initialize()
| StatusCode CBNTAA_TBTrack::CBNT_initialize |
( |
| ) |
|
|
overridevirtual |
Reimplemented from CBNT_TBRecBase.
Definition at line 30 of file CBNTAA_TBTrack.cxx.
30 {
32
33
42
43 return StatusCode::SUCCESS;
44}
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ execute()
| StatusCode CBNT_TBRecBase::execute |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 154 of file CBNT_TBRecBase.cxx.
154 {
155
157
158
159 try {
161 }
162
163 catch( const std::exception& Exception ) {
164 *
m_log << MSG::ERROR <<
" Standard exception "
165 << Exception.what()
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
168 return StatusCode::FAILURE;
169
170 }
171 catch (...) {
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
175 return StatusCode::FAILURE;
176 }
177
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
182 }
183
184
185 try {
187 }
188
189 catch( const std::exception& Exception ) {
190 *
m_log << MSG::ERROR <<
" Standard exception "
191 << Exception.what()
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
194 }
195 catch (...) {
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
199 }
200
202}
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
virtual StatusCode CBNT_execute()
virtual StatusCode pre_execute()
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
| const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
51{
52
53
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects
◆ finalize()
| StatusCode CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 205 of file CBNT_TBRecBase.cxx.
205 {
206
208
209
210 try {
212 }
213 catch( const std::exception& Exception ) {
214 *
m_log << MSG::ERROR <<
" Standard exception "
215 << Exception.what()
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
217 }
218 catch (...) {
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
221 }
222
224}
virtual StatusCode CBNT_finalize()
◆ getXcryoYtable()
| StatusCode CBNTAA_TBTrack::getXcryoYtable |
( |
float & | x, |
|
|
float & | y, |
|
|
float & | eBeam ) |
|
private |
Definition at line 121 of file CBNTAA_TBTrack.cxx.
121 {
122
123
124 std::string txtFileWithXY = "xcryo_ytable.txt";
125
127 std::ifstream xyFile;
131 if (!xyFile.is_open()) {
132 ATH_MSG_ERROR (
"File " << txtFileWithXY <<
" fail to open in $DATAPATH");
133 return StatusCode::FAILURE;
134 }
135 while ( getline(xyFile, line, '\n') ) {
137 std::istringstream
buf(line);
141 if (run==
m_nRun && xyFile.good())
return StatusCode::SUCCESS;
142 }
143 return StatusCode::FAILURE;
144}
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
◆ initialize()
| StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 22 of file CBNT_TBRecBase.cxx.
22 {
24
25 *
m_log << MSG::DEBUG <<
"Initializing CBNT_TBRecBase base class" <<
endmsg;
26
27 const CaloCell_ID* idHelper = nullptr;
32
33
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
37 }
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
41 }
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
45 }
46
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
51 }
52 else {
53 (*m_log) << MSG::DEBUG <<
" Found the LArOnlineID helper. " <<
endmsg;
54 }
55
56
58 return StatusCode::SUCCESS;
59}
const ServiceHandle< StoreGateSvc > & detStore() const
const LArOnlineID * m_onlineId
const LArFCAL_ID * m_fcalId
const LArHEC_ID * m_hecId
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
msgSvc
Provide convenience handles for various services.
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< Algorithm >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ pre_execute()
| StatusCode CBNT_TBRecBase::pre_execute |
( |
| ) |
|
|
virtualinherited |
Definition at line 61 of file CBNT_TBRecBase.cxx.
61 {
62
64
66
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
70 }
71
73 if (i==std::string::npos) {
75 return StatusCode::FAILURE;
76 }
78
79
80
81 ServiceHandle<ITHistSvc> tHistSvc(
"THistSvc",
name());
83
84
89 }
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109 try {
111 }
112 catch( const std::exception& Exception ) {
113 *
m_log << MSG::ERROR <<
" Standard exception "
114 << Exception.what()
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
116 }
117 catch (...) {
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
120 }
121
123 {
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
126 }
127
129 }
130
131
132 try {
134 }
135 catch( const std::exception& Exception ) {
136 *
m_log << MSG::ERROR <<
" Standard exception "
137 << Exception.what()
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
139 }
140 catch (...) {
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
143 }
144
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
148 }
149
150 return StatusCode::SUCCESS ;
151}
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_initialize()
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
| StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
66 {
68
71 }
72 ServiceHandle<ICondSvc> cs(
"CondSvc",
name());
74 if (
h->isCondition() &&
h->mode() == Gaudi::DataHandle::Writer) {
75
76 if ( cs.retrieve().isFailure() ) {
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
88}
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_beam_chi2_x
| float CBNTAA_TBTrack::m_beam_chi2_x |
|
private |
◆ m_beam_chi2_y
| float CBNTAA_TBTrack::m_beam_chi2_y |
|
private |
◆ m_beam_coor_x
| float CBNTAA_TBTrack::m_beam_coor_x |
|
private |
◆ m_beam_coor_y
| float CBNTAA_TBTrack::m_beam_coor_y |
|
private |
◆ m_beam_intercept_x
| float CBNTAA_TBTrack::m_beam_intercept_x |
|
private |
◆ m_beam_intercept_y
| float CBNTAA_TBTrack::m_beam_intercept_y |
|
private |
◆ m_beam_slope_x
| float CBNTAA_TBTrack::m_beam_slope_x |
|
private |
◆ m_beam_slope_y
| float CBNTAA_TBTrack::m_beam_slope_y |
|
private |
◆ m_detStore
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fcalId
◆ m_hecId
◆ m_initialized
| bool CBNT_TBRecBase::m_initialized |
|
privateinherited |
◆ m_log
| MsgStream* CBNT_TBRecBase::m_log |
|
protectedinherited |
◆ m_nRun
| int CBNTAA_TBTrack::m_nRun |
|
private |
◆ m_nt
| TTree* CBNT_TBRecBase::m_nt |
|
protectedinherited |
◆ m_ntpath
| std::string CBNT_TBRecBase::m_ntpath |
|
protectedinherited |
◆ m_ntTitle
| std::string CBNT_TBRecBase::m_ntTitle |
|
protectedinherited |
◆ m_onlineId
◆ m_readFileforXcryo
| bool CBNTAA_TBTrack::m_readFileforXcryo |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: