|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "GaudiKernel/MsgStream.h"
19 #include "Identifier/Identifier.h"
39 m_outputFileName(
"IDLocalFrames.txt"),
47 m_trt_layer_or_wheel(0),
54 m_TRTDetectorManager(nullptr)
67 return StatusCode::FAILURE;
73 return StatusCode::FAILURE;
85 return 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;
132 if (not pixelDetEleHandle.
isValid() or elements==
nullptr) {
151 if (not sctDetEleHandle.
isValid() or elements==
nullptr) {
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);
def retrieve(aClass, aKey=None)
StatusCode execute()
execute
virtual int strawDirection() const =0
StrawDirection.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
StatusCode finalize()
Finalize.
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
bool msgLvl(const MSG::Level lvl) const
void writeSCTFrames()
Writing the SCT Positions.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
int straw(const Identifier &id) const
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_trt_barrel_ec
TRT Data.
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
std::string m_outputFileName
Name of the Output file.
void writeTransForm(const HepGeom::Transform3D &transform)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
int layer_or_wheel(const Identifier &id) const
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
const TRT_ID * m_TRTHelper
Tools.
const TRT_BaseElement * getElement(Identifier id) const
Access Elements Generically---------------------------------------------—.
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
const_expanded_id_iterator straw_end(void) const
int phi_module(const Identifier &id) const
const Amg::Transform3D & strawTransform(unsigned int straw) const
Straw transform - fast access in array, in Tracking frame: Amg.
void writeVector(const std::string &name, const Amg::Vector3D &vector)
StatusCode initialize()
initialize
GetDetectorLocalFrames(const std::string &name, ISvcLocator *pSvcLocator)
Authors: John Alison johnda@hep.upenn.edu
void writePixelFames()
Functions to write the data.
const_expanded_id_iterator straw_begin(void) const
For straw ids, only expanded id iterators are available.
std::ofstream m_outputFile
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
void writeTRTFrames()
Writing the Detailed (all straws) TRT Positions.