|
ATLAS Offline Software
|
#include <TRTStrawAlign.h>
|
| TRTStrawAlign (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TRTStrawAlign (void) |
|
StatusCode | initialize (void) |
|
StatusCode | execute (void) |
|
StatusCode | finalize (void) |
|
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 27 of file TRTStrawAlign.h.
◆ StoreGateSvc_t
◆ TRTStrawAlign()
TRTStrawAlign::TRTStrawAlign |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TRTStrawAlign()
TRTStrawAlign::~TRTStrawAlign |
( |
void |
| ) |
|
|
default |
◆ 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 TRTStrawAlign::execute |
( |
void |
| ) |
|
Definition at line 148 of file TRTStrawAlign.cxx.
160 if(
sc!=StatusCode::SUCCESS) {
161 msg(MSG::ERROR) <<
" Could not read input text file "
163 return StatusCode::FAILURE;
170 if(
sc!=StatusCode::SUCCESS) {
171 msg(MSG::ERROR) <<
" Could not write output text file "
173 return StatusCode::FAILURE;
178 if( StatusCode::SUCCESS !=
p_caldbtool->streamOutObjects()) {
179 msg(MSG::ERROR) <<
" Could not stream Straw Alignment objects to "
181 return StatusCode::FAILURE;
186 msg(MSG::ERROR) <<
" Could not register Straw Alignment objects "
188 return StatusCode::FAILURE;
197 if(
sc!=StatusCode::SUCCESS) {
198 msg(MSG::ERROR) <<
" Could not read input text file "
200 return StatusCode::FAILURE;
207 if(
sc!=StatusCode::SUCCESS) {
208 msg(MSG::ERROR) <<
" Could not write output text file " <<
endmsg;
209 return StatusCode::FAILURE;
214 if( StatusCode::SUCCESS !=
p_aligndbtool->streamOutAlignObjects()) {
216 return StatusCode::FAILURE;
226 msg(MSG::ERROR) <<
" Could not register Module Alignment objects " <<
endmsg;
227 return StatusCode::FAILURE;
234 return StatusCode::SUCCESS;
◆ 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 TRTStrawAlign::finalize |
( |
void |
| ) |
|
Definition at line 238 of file TRTStrawAlign.cxx.
242 for(
int strlay=0;strlay<3;strlay++) {
250 <<
"bec -1 layer 0 sector 1 plane "
253 <<
" x " <<
x <<
" y " <<
y <<
" z " <<
z <<
endmsg;
260 <<
"bec 1 layer 0 sector 1 plane "
263 <<
" x " <<
x <<
" y " <<
y <<
" z " <<
z <<
endmsg;
267 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TRTStrawAlign::initialize |
( |
void |
| ) |
|
Definition at line 70 of file TRTStrawAlign.cxx.
80 return StatusCode::FAILURE;
84 if (
sc.isFailure() ) {
94 return StatusCode::FAILURE;
99 <<
"Straw alignment will be written to POOL file "
102 ATH_MSG_INFO(
"Straw alignment will be registered with IOV");
104 msg(MSG::INFO) <<
" run range: "
110 <<
"Straw Alignment will read from text file "
113 <<
"Straw Alignment will be written on text file "
121 return StatusCode::FAILURE;
126 <<
"Module alignment will be written to POOL file "
129 ATH_MSG_INFO(
"Module alignment will be registered with IOV");
130 if (
msgLvl(MSG::INFO) ) {
137 <<
"Module Alignment will read from text file "
140 <<
"Module Alignment will be written on text file "
144 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.
◆ 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_detStore
◆ m_doModuleAlign
bool TRTStrawAlign::m_doModuleAlign {} |
|
private |
◆ m_doRegIOV
bool TRTStrawAlign::m_doRegIOV |
|
private |
register structures in the IOV service
Definition at line 47 of file TRTStrawAlign.h.
◆ m_doStrawAlign
bool TRTStrawAlign::m_doStrawAlign {} |
|
private |
◆ m_doWriteToPOOL
bool TRTStrawAlign::m_doWriteToPOOL |
|
private |
◆ m_eventRangeBegin
int TRTStrawAlign::m_eventRangeBegin |
|
private |
◆ m_eventRangeEnd
int TRTStrawAlign::m_eventRangeEnd |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_inputModuleAlignmentTextFile
std::string TRTStrawAlign::m_inputModuleAlignmentTextFile |
|
private |
text file to read module alignment data
Definition at line 48 of file TRTStrawAlign.h.
◆ m_inputStrawAlignmentTextFile
std::string TRTStrawAlign::m_inputStrawAlignmentTextFile |
|
private |
text file to read straw alignment data
Definition at line 49 of file TRTStrawAlign.h.
◆ m_moduleAlignTag
std::string TRTStrawAlign::m_moduleAlignTag |
|
private |
◆ m_outputModuleAlignmentTextFile
std::string TRTStrawAlign::m_outputModuleAlignmentTextFile |
|
private |
◆ m_outputPOOLFile
std::string TRTStrawAlign::m_outputPOOLFile |
|
private |
◆ m_outputStrawAlignmentTextFile
std::string TRTStrawAlign::m_outputStrawAlignmentTextFile |
|
private |
◆ m_runRangeBegin
int TRTStrawAlign::m_runRangeBegin |
|
private |
◆ m_runRangeEnd
int TRTStrawAlign::m_runRangeEnd |
|
private |
◆ m_setup
bool TRTStrawAlign::m_setup |
|
private |
◆ m_stawAlignTag
std::string TRTStrawAlign::m_stawAlignTag |
|
private |
◆ m_trt
◆ m_trtman
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ p_aligndbtool
◆ p_caldbtool
The documentation for this class was generated from the following files:
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
std::string m_inputModuleAlignmentTextFile
text file to read module alignment data
std::string m_inputStrawAlignmentTextFile
text file to read straw alignment data
const TRT_ID * m_trt
trt id helper
ServiceHandle< ITRT_AlignDbSvc > p_aligndbtool
db tool
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_stawAlignTag
IOV version tag for straw alignment.
std::string m_outputModuleAlignmentTextFile
output module level text file
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const Amg::Vector3D & strawCenter(int straw) const
Straw Surface: Local -> global transform of the straw via integer.
bool msgLvl(const MSG::Level lvl) const
const InDetDD::TRT_DetectorManager * m_trtman
detector manager
std::string m_outputStrawAlignmentTextFile
output module level text file
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_eventRangeEnd
IOV range.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int m_eventRangeBegin
IOV range.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool m_doRegIOV
register structures in the IOV service
bool m_doWriteToPOOL
stream structures to output
bool m_setup
true for first event
const TRT_BaseElement * getElement(Identifier id) const
Access Elements Generically---------------------------------------------—.
DataObjIDColl m_extendedExtraObjects
int m_runRangeEnd
IOV range.
#define ATH_MSG_WARNING(x)
ServiceHandle< ITRT_StrawAlignDbSvc > p_caldbtool
db tool
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::string m_moduleAlignTag
IOV version tag for module alignment.
std::string m_outputPOOLFile
POOL file to write.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
int m_runRangeBegin
IOV range.