Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <CBNTAA_TBTrack.h>
|
| CBNTAA_TBTrack (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CBNTAA_TBTrack () |
|
virtual StatusCode | CBNT_initialize () override |
|
virtual StatusCode | CBNT_execute () override |
|
virtual StatusCode | CBNT_finalize () override |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | pre_execute () |
|
virtual StatusCode | CBNT_clear () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
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 |
|
) |
| |
◆ ~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.
106 for (
unsigned i=0;
i<extension.size();
i++) {
107 const char&
ch=extension[
i];
108 if (
ch==
'=' ||
ch==
':' ||
ch==
'/')
◆ 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 |
◆ CBNT_finalize()
StatusCode CBNTAA_TBTrack::CBNT_finalize |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_initialize()
StatusCode CBNTAA_TBTrack::CBNT_initialize |
( |
| ) |
|
|
overridevirtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode CBNT_TBRecBase::execute |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 154 of file CBNT_TBRecBase.cxx.
164 *
m_log << MSG::ERROR <<
" Standard exception "
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
167 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
168 return StatusCode::FAILURE;
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
174 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
175 return StatusCode::FAILURE;
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
180 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
190 *
m_log << MSG::ERROR <<
" Standard exception "
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
◆ 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.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 205 of file CBNT_TBRecBase.cxx.
214 *
m_log << MSG::ERROR <<
" Standard exception "
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
◆ getXcryoYtable()
StatusCode CBNTAA_TBTrack::getXcryoYtable |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
eBeam |
|
) |
| |
|
private |
Definition at line 121 of file CBNTAA_TBTrack.cxx.
124 std::string txtFileWithXY =
"xcryo_ytable.txt";
127 std::ifstream xyFile;
131 if (!xyFile.is_open()) {
132 ATH_MSG_ERROR (
"File " << txtFileWithXY <<
" fail to open in $DATAPATH");
133 return StatusCode::FAILURE;
135 while ( getline(xyFile,
line,
'\n') ) {
141 if (
run==
m_nRun && xyFile.good())
return StatusCode::SUCCESS;
143 return StatusCode::FAILURE;
◆ initialize()
StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 22 of file CBNT_TBRecBase.cxx.
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
58 return StatusCode::SUCCESS;
◆ 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() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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.
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
73 if (
i==std::string::npos) {
75 return StatusCode::FAILURE;
113 *
m_log << MSG::ERROR <<
" Standard exception "
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
136 *
m_log << MSG::ERROR <<
" Standard exception "
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
150 return StatusCode::SUCCESS ;
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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()
◆ 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:
def retrieve(aClass, aKey=None)
virtual StatusCode CBNT_finalize()
bool m_readFileforXcryo
Get Xcryo and Ytable from a text file.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
const LArEM_ID * em_idHelper() const
access to EM idHelper
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const LArOnlineID * m_onlineId
virtual StatusCode CBNT_clear()
unsigned int getRunNum() const
virtual StatusCode CBNT_initialize()
virtual StatusCode CBNT_execute()
int run(int argc, char *argv[])
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
const LArFCAL_ID * m_fcalId
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
msgSvc
Provide convenience handles for various services.
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
::StatusCode StatusCode
StatusCode definition for legacy code.
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
Helper class for offline cell identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)
const LArHEC_ID * m_hecId
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode pre_execute()
float getBeamMomentum() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper