17#include "GaudiKernel/MsgStream.h"
19#include "Identifier/Identifier.h"
62 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"initialize()" <<
endmsg;
66 msg(MSG::FATAL) <<
"Could not get TRT ID helper" <<
endmsg;
67 return StatusCode::FAILURE;
69 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"got the TRT ID" <<
endmsg;
72 if(
msgLvl(MSG::FATAL))
msg(MSG::FATAL) <<
"Problem retrieving TRT_DetectorManager" <<
endmsg;
73 return StatusCode::FAILURE;
85 return StatusCode::SUCCESS;
91 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"execute() check global position" <<
endmsg;
93 StatusCode
sc = StatusCode::SUCCESS;
100 std::cout <<
"========================================================================================" <<std::endl;
101 std::cout <<
"==================== Getting the Inner Detector Local Frames ===========================" <<std::endl;
102 std::cout <<
"========================================================================================" <<std::endl;
113 return StatusCode::SUCCESS;
123 return StatusCode::SUCCESS;
128 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writePixelFames()" <<
endmsg;
132 if (not pixelDetEleHandle.
isValid() or elements==
nullptr) {
141 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writePixelFames()" <<
endmsg;
147 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeSCTFrames()" <<
endmsg;
151 if (not sctDetEleHandle.
isValid() or elements==
nullptr) {
160 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeSCTFrames()" <<
endmsg;
166 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeTRTFrames()" <<
endmsg;
171 for (; trtStrawIt != trtStrawItE; ++trtStrawIt) {
212 writeVector(
"straw x-axis (No sign)",strawXAxis_NoSign);
213 writeVector(
"straw y-axis (No sign)",strawYAxis_NoSign);
214 writeVector(
"straw z-axis (No sign)",strawZAxis_NoSign);
218 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeTRTFrames()" <<
endmsg;
223 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeVector()" <<
endmsg;
227 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeVector()" <<
endmsg;
232 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeTransForm()" <<
endmsg;
234 m_outputFile <<
" Trans(x,y,z): " << transform.dx() <<
" " << transform.dy() <<
" " << transform.dz() << std::endl;
236 m_outputFile << transform.xx() <<
" " << transform.xy() <<
" " << transform.xz() << std::endl;
237 m_outputFile << transform.yx() <<
" " << transform.yy() <<
" " << transform.yz() << std::endl;
238 m_outputFile << transform.zx() <<
" " << transform.zy() <<
" " << transform.zz() << std::endl;
240 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeTransForm()" <<
endmsg;
#define ATH_CHECK
Evaluate an expression and check for errors.
This is an Identifier helper class for the TRT subdetector.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
GetDetectorLocalFrames(const std::string &name, ISvcLocator *pSvcLocator)
Authors: John Alison johnda@hep.upenn.edu
const TRT_ID * m_TRTHelper
Tools.
void writeVector(const std::string &name, const Amg::Vector3D &vector)
int m_trt_barrel_ec
TRT Data.
void writeSCTFrames()
Writing the SCT Positions.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
void writeTRTFrames()
Writing the Detailed (all straws) TRT Positions.
StatusCode finalize()
Finalize.
std::string m_outputFileName
Name of the Output file.
void writePixelFames()
Functions to write the data.
void writeTransForm(const HepGeom::Transform3D &transform)
StatusCode initialize()
initialize
std::ofstream m_outputFile
StatusCode execute()
execute
Class to hold the SiDetectorElement objects to be put in the detector store.
MultiRange::const_identifier_factory const_expanded_id_iterator
Eigen::Matrix< double, 3, 1 > Vector3D