![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
27 p_caldbtool(
"TRT_StrawAlignDbSvc",
name),
28 p_aligndbtool(
"TRT_AlignDbSvc",
name),
32 m_doWriteToPOOL(false),
34 m_inputModuleAlignmentTextFile(
""),
35 m_inputStrawAlignmentTextFile(
""),
36 m_outputModuleAlignmentTextFile(
""),
37 m_outputStrawAlignmentTextFile(
""),
39 m_moduleAlignTag(
"TRTAlign_00"),
40 m_stawAlignTag(
"TrtCalibDx_00"),
42 m_runRangeEnd(9999999),
44 m_eventRangeEnd(9999999)
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;
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;
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;
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
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
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.
StatusCode initialize(void)
abstract interface to TRT straw alignment constants
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_eventRangeEnd
IOV range.
int m_eventRangeBegin
IOV range.
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---------------------------------------------—.
TRTStrawAlign(const std::string &name, ISvcLocator *pSvcLocator)
int m_runRangeEnd
IOV range.
StatusCode finalize(void)
ServiceHandle< ITRT_StrawAlignDbSvc > p_caldbtool
db tool
Algorithm to make individual Straw Alignment.
abstract interface to Service to manage TRT alignment conditions
std::string m_moduleAlignTag
IOV version tag for module alignment.
std::string m_outputPOOLFile
POOL file to write.
Class for storing/accessing trt endpoint corrections data.
int m_runRangeBegin
IOV range.