|
ATLAS Offline Software
|
Go to the documentation of this file.
22 return StatusCode::SUCCESS;
30 if (testCham.size() != 6) {
32 return StatusCode::FAILURE;
35 std::string statName = testCham.substr(0, 3);
36 unsigned int statEta =
std::atoi(testCham.substr(3, 1).c_str()) *
37 (testCham[4] ==
'A' ? 1 : -1);
38 unsigned int statPhi =
std::atoi(testCham.substr(5, 1).c_str());
41 id_helper.elementID(statName, statEta, statPhi, is_valid);
43 ATH_MSG_FATAL(
"Failed to deduce a station name for " << testCham);
44 return StatusCode::FAILURE;
50 for(
auto itr = id_helper.detectorElement_begin();
51 itr!= id_helper.detectorElement_end();++itr){
55 return StatusCode::SUCCESS;
58 const EventContext& ctx{Gaudi::Hive::currentContext()};
60 if (!detMgr.isValid()) {
63 return StatusCode::FAILURE;
74 if (reElement->
identify() != test_me) {
76 <<
m_idHelperSvc->toStringDetEl(test_me) <<
". But got instead "
78 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
104 for (
bool measPhi : {
false,
true}) {
112 return m_tree.
fill(ctx) ? StatusCode::SUCCESS : StatusCode::FAILURE;
MuonVal::ScalarBranch< float > & m_ALineTransS
Alignment parameters.
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like <stationName><stationEta><A/C><stationPhi>
virtual const Amg::Transform3D & transform() const override
Return local to global transform.
double getALine_trat() const
Ensure that the Athena extensions are properly loaded.
StatusCode init(OWNER *instance)
Initialize method.
MuonVal::ScalarBranch< short > & m_stEta
double getALine_rotz() const
double getALine_traz() const
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the readout element (Translation, ColX, ColY, ColZ)
double getALine_tras() const
MuonVal::VectorBranch< bool > & m_layMeasPhi
#define ATH_MSG_VERBOSE(x)
MuonVal::ScalarBranch< short > & m_stPhi
MuonVal::ScalarBranch< short > & m_stMultiLayer
MuonVal::ScalarBranch< float > & m_ALineRotZ
StatusCode initialize() override
MuonVal::ScalarBranch< float > & m_ALineRotT
GeoModelCscTest(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MuonVal::ScalarBranch< float > & m_ALineTransZ
MuonVal::CoordSystemsBranch m_layerTrans
double getALine_rott() const
::StatusCode StatusCode
StatusCode definition for legacy code.
Amg::Transform3D localToGlobalTransf(const Identifier &id) const
const MuonStation * parentMuonStation() const
Eigen::Affine3d Transform3D
void push_back(const T &value)
Adds a new element at the end of the vector.
MuonVal::VectorBranch< uint8_t > & m_layNumber
MuonVal::MuonTesterTree m_tree
StatusCode execute() override
StatusCode finalize() override
StatusCode initialize(bool used=true)
MuonVal::ScalarBranch< unsigned short > & m_stIndex
Identifier of the readout element.
MuonVal::ScalarBranch< float > & m_ALineRotS
int getStationIndex() const
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
void push_back(const Amg::Transform3D &trans)
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
bool fill(const EventContext &ctx)
Fills the tree per call.
StatusCode write()
Finally write the TTree objects.
virtual int numberOfLayers(bool) const override final
number of layers in phi/eta projection
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
StatusCode dumpToTree(const EventContext &ctx, const CscReadoutElement *readoutEle)
double getALine_rots() const
MuonVal::ScalarBranch< float > & m_ALineTransT
int getStationPhi() const
int getStationEta() const
std::set< Identifier > m_testStations
Set of stations to be tested.