17#include "GaudiKernel/MsgStream.h"
19#include "Identifier/Identifier.h"
58 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"initialize()" <<
endmsg;
62 msg(MSG::FATAL) <<
"Could not get TRT ID helper" <<
endmsg;
63 return StatusCode::FAILURE;
65 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"got the TRT ID" <<
endmsg;
68 if(
msgLvl(MSG::FATAL))
msg(MSG::FATAL) <<
"Problem retrieving TRT_DetectorManager" <<
endmsg;
69 return StatusCode::FAILURE;
81 return StatusCode::SUCCESS;
87 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"execute() check global position" <<
endmsg;
89 StatusCode
sc = StatusCode::SUCCESS;
96 std::cout <<
"========================================================================================" <<std::endl;
97 std::cout <<
"==================== Getting the Inner Detector Local Frames ===========================" <<std::endl;
98 std::cout <<
"========================================================================================" <<std::endl;
109 return StatusCode::SUCCESS;
119 return StatusCode::SUCCESS;
124 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writePixelFames()" <<
endmsg;
128 if (not pixelDetEleHandle.
isValid() or elements==
nullptr) {
137 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writePixelFames()" <<
endmsg;
143 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeSCTFrames()" <<
endmsg;
147 if (not sctDetEleHandle.
isValid() or elements==
nullptr) {
156 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeSCTFrames()" <<
endmsg;
162 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeTRTFrames()" <<
endmsg;
167 for (; trtStrawIt != trtStrawItE; ++trtStrawIt) {
208 writeVector(
"straw x-axis (No sign)",strawXAxis_NoSign);
209 writeVector(
"straw y-axis (No sign)",strawYAxis_NoSign);
210 writeVector(
"straw z-axis (No sign)",strawZAxis_NoSign);
214 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeTRTFrames()" <<
endmsg;
219 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeVector()" <<
endmsg;
221 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"Leaving writeVector()" <<
endmsg;
226 if (
msgLvl(MSG::VERBOSE))
msg(MSG::VERBOSE) <<
"In writeTransForm()" <<
endmsg;
228 m_outputFile <<
" Trans(x,y,z): " << transform.dx() <<
" " << transform.dy() <<
" " << transform.dz() << std::endl;
230 m_outputFile << transform.xx() <<
" " << transform.xy() <<
" " << transform.xz() << std::endl;
231 m_outputFile << transform.yx() <<
" " << transform.yy() <<
" " << transform.yz() << std::endl;
232 m_outputFile << transform.zx() <<
" " << transform.zy() <<
" " << transform.zz() << std::endl;
234 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.
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(std::string_view name, const Amg::Vector3D &vector)
int m_trt_barrel_ec
TRT Data.
void writeSCTFrames()
Writing the SCT Positions.
StatusCode execute(const EventContext &ctx)
execute
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
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