ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MuonValR4::SpacePointTesterModule Class Reference

#include <SpacePointTesterModule.h>

Inheritance diagram for MuonValR4::SpacePointTesterModule:
Collaboration diagram for MuonValR4::SpacePointTesterModule:

Public Types

using DataDependency = SG::VarHandleKey *
 

Public Member Functions

 SpacePointTesterModule (MuonTesterTree &tree, const std::string &inContainer, MSG::Level msgLvl=MSG::Level::INFO, const std::string &collName="")
 
bool declare_keys () override final
 
bool fill (const EventContext &ctx) override final
 The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided. More...
 
unsigned int push_back (const MuonR4::SpacePointBucket &bucket)
 
unsigned int push_back (const MuonR4::SpacePoint &spacePoint)
 
bool init () override final
 The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty. More...
 
std::string name () const override final
 Returns the name of the branch. More...
 
bool initialized () const
 Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method. More...
 
TTree * tree () override final
 Returns the underlying TTree object. More...
 
const TTree * tree () const override final
 
std::vector< DataDependencydata_dependencies () override final
 Returns the data dependencies needed by the MuonTesterBranch. More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Static Public Member Functions

static std::string eraseWhiteSpaces (const std::string &In)
 

Protected Member Functions

const Muon::IMuonIdHelperSvcidHelperSvc () const
 
const MuonGMR4::MuonDetectorManagergetDetMgr () const
 
const ActsGeometryContextgetGeoCtx (const EventContext &ctx) const
 
template<class T >
bool addToTree (T &variable)
 Connects the Memory buffer with the TTree. More...
 
template<class Key >
bool declare_dependency (Key &key)
 Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. More...
 
MuonTesterTreeparent ()
 Returns the reference to the MuonTesterTree parent. More...
 

Private Member Functions

void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

std::string m_collName {}
 
SG::ReadHandleKey< MuonR4::SpacePointContainerm_key {}
 
VectorBranch< uint16_t > & m_bucketNumber {parent().newVector<uint16_t>(m_collName+"bucket_index")}
 Space point bucket information. More...
 
MuonIdentifierBranch m_bucketId {parent(), m_collName+"bucket"}
 stationIndex / stationEta / stationPhi of the bucket chamber More...
 
VectorBranch< float > & m_bucketMin {parent().newVector<float>(m_collName+"bucket_xMin")}
 Range of the space point bucket. More...
 
VectorBranch< float > & m_bucketMax {parent().newVector<float>(m_collName+"bucket_xMax")}
 
MatrixBranch< uint16_t > & m_bucketPoints {parent().newMatrix<uint16_t>(m_collName+"bucket_spacePoints")}
 associated space points More...
 
ThreeVectorBranch m_globPos {parent(), m_collName+"spacePoint_Position"}
 Space point position. More...
 
VectorBranch< float > & m_driftR {parent().newVector<float>(m_collName+"spacePoint_driftR")}
 Space point drift radius. More...
 
VectorBranch< float > & m_covXX {parent().newVector<float>(m_collName+"spacePoint_covXX")}
 Covariance of the space point. More...
 
VectorBranch< float > & m_covXY {parent().newVector<float>(m_collName+"spacePoint_covYX")}
 
VectorBranch< float > & m_covYX {parent().newVector<float>(m_collName+"spacePoint_covXY")}
 
VectorBranch< float > & m_covYY {parent().newVector<float>(m_collName+"spacePoint_covYY")}
 
VectorBranch< bool > & m_measEta {parent().newVector<bool>(m_collName+"spacePoint_measEta")}
 Does the space point measure phi or eta. More...
 
VectorBranch< bool > & m_measPhi {parent().newVector<bool>(m_collName+"spacePoint_measPhi")}
 
VectorBranch< unsigned int > & m_nEtaInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nEtaInUse")}
 How many other spacepoints were built with the same eta /phi prd. More...
 
VectorBranch< unsigned int > & m_nPhiInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nPhiInUse")}
 
MuonIdentifierBranch m_spacePointId {parent(), "spacePoint"}
 Station Identifier. More...
 
VectorBranch< unsigned char > & m_techIdx {parent().newVector<unsigned char>(m_collName+"spacePoint_technology")}
 Technology index of the space point. More...
 
VectorBranch< unsigned char > & m_layer {parent().newVector<unsigned char>(m_collName+"spacePoint_layer")}
 Measurement layer. More...
 
VectorBranch< uint16_t > & m_channel {parent().newVector<uint16_t>(m_collName+"spacePoint_channel")}
 Measurement channel. More...
 
VectorBranch< int16_t > & m_phiChannel {parent().newVector<int16_t>(m_collName+"spacePoint_secChannel")}
 Channel of the secondary measurment. More...
 
std::unordered_map< const MuonR4::SpacePoint *, unsigned int > m_spacePointIdx {}
 : Keep track when a spacepoint is filled into the tree More...
 
std::unordered_map< const MuonR4::SpacePointBucket *, unsigned int > m_bucketIdx {}
 : Keep tarck when a space point bucket is filled into the tree More...
 
bool m_applyFilter {false}
 : Flag whether the module is operated in filter mode More...
 
bool m_internalFill {false}
 : Flag toggling whether the module is in internal filling mode More...
 
const MuonGMR4::MuonDetectorManagerm_detMgr {}
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", name()}
 
SG::ReadHandleKey< ActsGeometryContextm_geoCtxKey {"ActsAlignment"}
 
TTree * m_tree {nullptr}
 
MuonTesterTreem_parent {nullptr}
 
std::string m_name {}
 
bool m_init {false}
 
std::vector< DataDependencym_dependencies {}
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

Detailed Description

Definition at line 12 of file SpacePointTesterModule.h.

Member Typedef Documentation

◆ DataDependency

Definition at line 39 of file IMuonTesterBranch.h.

Constructor & Destructor Documentation

◆ SpacePointTesterModule()

MuonValR4::SpacePointTesterModule::SpacePointTesterModule ( MuonTesterTree tree,
const std::string &  inContainer,
MSG::Level  msgLvl = MSG::Level::INFO,
const std::string &  collName = "" 
)

Definition at line 8 of file SpacePointTesterModule.cxx.

11  :
12  TesterModuleBase{tree, inContainer + collName, msgLvl},
13  m_collName{collName},
14  m_key{inContainer}{}

Member Function Documentation

◆ addToTree()

template<class T >
bool MuonVal::MuonTesterBranch::addToTree ( T &  variable)
protectedinherited

Connects the Memory buffer with the TTree.

◆ data_dependencies()

std::vector< MuonTesterBranch::DataDependency > MuonVal::MuonTesterBranch::data_dependencies ( )
finaloverridevirtualinherited

Returns the data dependencies needed by the MuonTesterBranch.

Implements MuonVal::IMuonTesterBranch.

Definition at line 61 of file MuonTesterBranch.cxx.

61 { return m_dependencies;}

◆ declare_dependency()

template<class Key >
bool MuonVal::MuonTesterBranch::declare_dependency ( Key &  key)
protectedinherited

Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.

◆ declare_keys()

bool MuonValR4::SpacePointTesterModule::declare_keys ( )
finaloverridevirtual

Implements MuonValR4::TesterModuleBase.

Definition at line 121 of file SpacePointTesterModule.cxx.

121  {
122  return declare_dependency(m_key);
123  }

◆ eraseWhiteSpaces()

std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces ( const std::string &  In)
staticinherited

Definition at line 56 of file MuonTesterBranch.cxx.

56  {
57  std::string out = In;
58  out.erase(std::remove_if(out.begin(), out.end(), isspace), out.end());
59  return out;
60 }

◆ fill()

bool MuonValR4::SpacePointTesterModule::fill ( const EventContext &  ctx)
finaloverridevirtual

The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided.

--> returns false if no update is called or the dummy value has not been defined

Implements MuonVal::IMuonTesterBranch.

Definition at line 124 of file SpacePointTesterModule.cxx.

124  {
125  m_internalFill = true;
126  SG::ReadHandle container{m_key, ctx};
127  if (!container.isPresent()) {
128  ATH_MSG_FATAL("Failed to retrieve container "<<m_key.fullKey());
129  return false;
130  }
131  for (const auto& bucket : *container) {
132  push_back(*bucket);
133  }
134  m_internalFill = false;
135  m_spacePointIdx.clear();
136  m_bucketIdx.clear();
137  return true;
138  }

◆ getDetMgr()

const MuonGMR4::MuonDetectorManager * MuonValR4::TesterModuleBase::getDetMgr ( ) const
protectedinherited

Definition at line 19 of file TesterModuleBase.cxx.

19  {
20  return m_detMgr;
21  }

◆ getGeoCtx()

const ActsGeometryContext & MuonValR4::TesterModuleBase::getGeoCtx ( const EventContext &  ctx) const
protectedinherited

Definition at line 22 of file TesterModuleBase.cxx.

22  {
23  SG::ReadHandle handle{m_geoCtxKey, ctx};
24  if (!handle.isValid()) {
25  THROW_EXCEPTION("Failed to retrieve "<<m_geoCtxKey.fullKey());
26  }
27  return *handle;
28  }

◆ idHelperSvc()

const Muon::IMuonIdHelperSvc * MuonValR4::TesterModuleBase::idHelperSvc ( ) const
protectedinherited

Definition at line 18 of file TesterModuleBase.cxx.

18 { return m_idHelperSvc.get(); }

◆ init()

bool MuonValR4::TesterModuleBase::init ( )
finaloverridevirtualinherited

The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty.

Implements MuonVal::IMuonTesterBranch.

Definition at line 30 of file TesterModuleBase.cxx.

30  {
31  ServiceHandle<StoreGateSvc> detStore{"StoreGateSvc/DetectorStore", name()};
32  if (!detStore.retrieve().isSuccess() || !detStore->retrieve(m_detMgr).isSuccess()) return false;
33  if (!declare_dependency(m_geoCtxKey)) return false;
34  if (!m_idHelperSvc.retrieve().isSuccess()) return false;
35  return declare_keys();
36  }

◆ initialized()

bool MuonVal::MuonTesterBranch::initialized ( ) const
inherited

Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.

Definition at line 52 of file MuonTesterBranch.cxx.

52 { return m_init; }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ name()

std::string MuonVal::MuonTesterBranch::name ( ) const
finaloverridevirtualinherited

Returns the name of the branch.

Implements MuonVal::IMuonTesterBranch.

Definition at line 51 of file MuonTesterBranch.cxx.

51 { return m_name; }

◆ parent()

MuonTesterTree & MuonVal::MuonTesterBranch::parent ( )
protectedinherited

Returns the reference to the MuonTesterTree parent.

Definition at line 38 of file MuonTesterBranch.cxx.

38  {
39  if (!m_parent) {
40  ATH_MSG_WARNING("The parent of " << name() << " is null.");
41  }
42  return *m_parent;
43 }

◆ push_back() [1/2]

unsigned int MuonValR4::SpacePointTesterModule::push_back ( const MuonR4::SpacePoint spacePoint)

Definition at line 16 of file SpacePointTesterModule.cxx.

16  {
17  if (!m_internalFill) {
18  m_applyFilter = true;
19  }
20  auto insert_itr = m_spacePointIdx.insert(std::make_pair(&spacePoint, m_spacePointIdx.size()));
21  // Space point added before return the index of the space point
22  if (!insert_itr.second) {
23  return insert_itr.first->second;
24  }
25 
27  m_driftR.push_back(spacePoint.driftRadius());
28 
29 
30  const AmgSymMatrix(2)& cov{spacePoint.covariance()};
35 
36  m_measEta.push_back(spacePoint.measuresEta());
37  m_measPhi.push_back(spacePoint.measuresPhi());
38  m_nEtaInstances.push_back(spacePoint.measuresEta() ? spacePoint.nEtaInstanceCounts() : 0);
39  m_nPhiInstances.push_back(spacePoint.measuresPhi() ? spacePoint.nPhiInstanceCounts() : 0);
40 
41 
42  using TechIndex = Muon::MuonStationIndex::TechnologyIndex;
43  const Identifier id = spacePoint.identify();
44  const TechIndex techIdx = idHelperSvc()->technologyIndex(id);
45  m_techIdx.push_back(static_cast<int>(techIdx));
47  int phiChannel{-1};
48  switch (techIdx) {
49  case TechIndex::MDT: {
50  const MdtIdHelper& idHelper{idHelperSvc()->mdtIdHelper()};
51  m_layer.push_back((idHelper.multilayer(id) -1)*idHelper.tubeLayerMax(id) +
52  idHelper.tubeLayer(id));
53  m_channel.push_back(idHelper.tube(id));
54  }
55  break;
56  case TechIndex::RPC: {
57  const RpcIdHelper& idHelper{idHelperSvc()->rpcIdHelper()};
58  m_layer.push_back( (idHelper.doubletR(id) -1) * idHelper.gasGapMax(id) +
59  idHelper.gasGap(id));
60  m_channel.push_back(idHelper.channel(id));
61  if (spacePoint.secondaryMeasurement()) {
62  phiChannel = idHelper.channel(xAOD::identify(spacePoint.secondaryMeasurement()));
63  }
64  }
65  break;
66  case TechIndex::TGC: {
67  const TgcIdHelper& idHelper{idHelperSvc()->tgcIdHelper()};
68  m_layer.push_back(idHelper.gasGap(id));
69  m_channel.push_back(idHelper.channel(id));
70  if (spacePoint.secondaryMeasurement()) {
71  phiChannel = idHelper.channel(xAOD::identify(spacePoint.secondaryMeasurement()));
72  }
73  }
74  break;
75  case TechIndex::STGC: {
76  const sTgcIdHelper& idHelper{idHelperSvc()->stgcIdHelper()};
77  m_layer.push_back( (idHelper.multilayer(id) -1) * 4 + idHelper.gasGap(id));
78  m_channel.push_back(idHelper.channel(id));
79  if (spacePoint.secondaryMeasurement()) {
80  phiChannel = idHelper.channel(xAOD::identify(spacePoint.secondaryMeasurement()));
81  }
82  }
83  break;
84  case TechIndex::MM: {
85  const MmIdHelper& idHelper{idHelperSvc()->mmIdHelper()};
86  m_layer.push_back( (idHelper.multilayer(id) -1) * 4 + idHelper.gasGap(id));
87  m_channel.push_back(idHelper.channel(id));
88  }
89  break;
90  default:
91  ATH_MSG_WARNING("Dude you can't have CSCs in R4 "<<idHelperSvc()->toString(id));
92  };
93  m_phiChannel.push_back(phiChannel);
94  return insert_itr.first->second;
95  }

◆ push_back() [2/2]

unsigned int MuonValR4::SpacePointTesterModule::push_back ( const MuonR4::SpacePointBucket bucket)

Definition at line 96 of file SpacePointTesterModule.cxx.

96  {
97  if (!m_internalFill) {
98  m_applyFilter = true;
99  } else if (m_applyFilter) {
100  auto find_itr = m_bucketIdx.find(&bucket);
101  return find_itr != m_bucketIdx.end() ? find_itr->second : m_bucketIdx.size();
102  }
103  auto insert_itr = m_bucketIdx.insert(std::make_pair(&bucket, m_bucketIdx.size()));
104  // Bucket has been added before. Bail out
105  if (!insert_itr.second) {
106  return insert_itr.first->second;
107  }
108 
109 
111  m_bucketId.push_back(bucket.chamber()->readOutElements()[0]->identify());
112  m_bucketMin.push_back(bucket.coveredMin());
113  m_bucketMax.push_back(bucket.coveredMax());
114  std::vector<uint16_t>& spacePoints = m_bucketPoints[m_bucketPoints.size()];
115  for (const auto& spacePoint : bucket) {
116  spacePoints.push_back(push_back(*spacePoint));
117  }
118 
119  return insert_itr.first->second;
120  }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ tree() [1/2]

const TTree * MuonVal::MuonTesterBranch::tree ( ) const
finaloverridevirtualinherited

Implements MuonVal::IMuonTesterBranch.

Definition at line 54 of file MuonTesterBranch.cxx.

54 { return m_tree; }

◆ tree() [2/2]

TTree * MuonVal::MuonTesterBranch::tree ( )
finaloverridevirtualinherited

Returns the underlying TTree object.

Implements MuonVal::IMuonTesterBranch.

Definition at line 53 of file MuonTesterBranch.cxx.

53 { return m_tree; }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_applyFilter

bool MuonValR4::SpacePointTesterModule::m_applyFilter {false}
private

: Flag whether the module is operated in filter mode

Definition at line 76 of file SpacePointTesterModule.h.

◆ m_bucketId

MuonIdentifierBranch MuonValR4::SpacePointTesterModule::m_bucketId {parent(), m_collName+"bucket"}
private

stationIndex / stationEta / stationPhi of the bucket chamber

Definition at line 34 of file SpacePointTesterModule.h.

◆ m_bucketIdx

std::unordered_map<const MuonR4::SpacePointBucket*, unsigned int> MuonValR4::SpacePointTesterModule::m_bucketIdx {}
private

: Keep tarck when a space point bucket is filled into the tree

Definition at line 74 of file SpacePointTesterModule.h.

◆ m_bucketMax

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_bucketMax {parent().newVector<float>(m_collName+"bucket_xMax")}
private

Definition at line 37 of file SpacePointTesterModule.h.

◆ m_bucketMin

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_bucketMin {parent().newVector<float>(m_collName+"bucket_xMin")}
private

Range of the space point bucket.

Definition at line 36 of file SpacePointTesterModule.h.

◆ m_bucketNumber

VectorBranch<uint16_t>& MuonValR4::SpacePointTesterModule::m_bucketNumber {parent().newVector<uint16_t>(m_collName+"bucket_index")}
private

Space point bucket information.

Definition at line 32 of file SpacePointTesterModule.h.

◆ m_bucketPoints

MatrixBranch<uint16_t>& MuonValR4::SpacePointTesterModule::m_bucketPoints {parent().newMatrix<uint16_t>(m_collName+"bucket_spacePoints")}
private

associated space points

Definition at line 39 of file SpacePointTesterModule.h.

◆ m_channel

VectorBranch<uint16_t>& MuonValR4::SpacePointTesterModule::m_channel {parent().newVector<uint16_t>(m_collName+"spacePoint_channel")}
private

Measurement channel.

Definition at line 67 of file SpacePointTesterModule.h.

◆ m_collName

std::string MuonValR4::SpacePointTesterModule::m_collName {}
private

Definition at line 29 of file SpacePointTesterModule.h.

◆ m_covXX

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_covXX {parent().newVector<float>(m_collName+"spacePoint_covXX")}
private

Covariance of the space point.

Definition at line 47 of file SpacePointTesterModule.h.

◆ m_covXY

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_covXY {parent().newVector<float>(m_collName+"spacePoint_covYX")}
private

Definition at line 48 of file SpacePointTesterModule.h.

◆ m_covYX

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_covYX {parent().newVector<float>(m_collName+"spacePoint_covXY")}
private

Definition at line 49 of file SpacePointTesterModule.h.

◆ m_covYY

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_covYY {parent().newVector<float>(m_collName+"spacePoint_covYY")}
private

Definition at line 50 of file SpacePointTesterModule.h.

◆ m_dependencies

std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {}
privateinherited

Definition at line 62 of file MuonTesterBranch.h.

◆ m_detMgr

const MuonGMR4::MuonDetectorManager* MuonValR4::TesterModuleBase::m_detMgr {}
privateinherited

Definition at line 32 of file TesterModuleBase.h.

◆ m_driftR

VectorBranch<float>& MuonValR4::SpacePointTesterModule::m_driftR {parent().newVector<float>(m_collName+"spacePoint_driftR")}
private

Space point drift radius.

Definition at line 45 of file SpacePointTesterModule.h.

◆ m_geoCtxKey

SG::ReadHandleKey<ActsGeometryContext> MuonValR4::TesterModuleBase::m_geoCtxKey {"ActsAlignment"}
privateinherited

Definition at line 34 of file TesterModuleBase.h.

◆ m_globPos

ThreeVectorBranch MuonValR4::SpacePointTesterModule::m_globPos {parent(), m_collName+"spacePoint_Position"}
private

Space point position.

Definition at line 43 of file SpacePointTesterModule.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MuonValR4::TesterModuleBase::m_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", name()}
privateinherited

Definition at line 33 of file TesterModuleBase.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_init

bool MuonVal::MuonTesterBranch::m_init {false}
privateinherited

Definition at line 61 of file MuonTesterBranch.h.

◆ m_internalFill

bool MuonValR4::SpacePointTesterModule::m_internalFill {false}
private

: Flag toggling whether the module is in internal filling mode

Definition at line 78 of file SpacePointTesterModule.h.

◆ m_key

SG::ReadHandleKey<MuonR4::SpacePointContainer> MuonValR4::SpacePointTesterModule::m_key {}
private

Definition at line 30 of file SpacePointTesterModule.h.

◆ m_layer

VectorBranch<unsigned char>& MuonValR4::SpacePointTesterModule::m_layer {parent().newVector<unsigned char>(m_collName+"spacePoint_layer")}
private

Measurement layer.

Definition at line 65 of file SpacePointTesterModule.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_measEta

VectorBranch<bool>& MuonValR4::SpacePointTesterModule::m_measEta {parent().newVector<bool>(m_collName+"spacePoint_measEta")}
private

Does the space point measure phi or eta.

Definition at line 53 of file SpacePointTesterModule.h.

◆ m_measPhi

VectorBranch<bool>& MuonValR4::SpacePointTesterModule::m_measPhi {parent().newVector<bool>(m_collName+"spacePoint_measPhi")}
private

Definition at line 54 of file SpacePointTesterModule.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_name

std::string MuonVal::MuonTesterBranch::m_name {}
privateinherited

Definition at line 60 of file MuonTesterBranch.h.

◆ m_nEtaInstances

VectorBranch<unsigned int>& MuonValR4::SpacePointTesterModule::m_nEtaInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nEtaInUse")}
private

How many other spacepoints were built with the same eta /phi prd.

Definition at line 56 of file SpacePointTesterModule.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_nPhiInstances

VectorBranch<unsigned int>& MuonValR4::SpacePointTesterModule::m_nPhiInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nPhiInUse")}
private

Definition at line 57 of file SpacePointTesterModule.h.

◆ m_parent

MuonTesterTree* MuonVal::MuonTesterBranch::m_parent {nullptr}
privateinherited

Definition at line 59 of file MuonTesterBranch.h.

◆ m_phiChannel

VectorBranch<int16_t>& MuonValR4::SpacePointTesterModule::m_phiChannel {parent().newVector<int16_t>(m_collName+"spacePoint_secChannel")}
private

Channel of the secondary measurment.

Definition at line 69 of file SpacePointTesterModule.h.

◆ m_spacePointId

MuonIdentifierBranch MuonValR4::SpacePointTesterModule::m_spacePointId {parent(), "spacePoint"}
private

Station Identifier.

Definition at line 61 of file SpacePointTesterModule.h.

◆ m_spacePointIdx

std::unordered_map<const MuonR4::SpacePoint*, unsigned int> MuonValR4::SpacePointTesterModule::m_spacePointIdx {}
private

: Keep track when a spacepoint is filled into the tree

Definition at line 72 of file SpacePointTesterModule.h.

◆ m_techIdx

VectorBranch<unsigned char>& MuonValR4::SpacePointTesterModule::m_techIdx {parent().newVector<unsigned char>(m_collName+"spacePoint_technology")}
private

Technology index of the space point.

Definition at line 63 of file SpacePointTesterModule.h.

◆ m_tree

TTree* MuonVal::MuonTesterBranch::m_tree {nullptr}
privateinherited

Definition at line 58 of file MuonTesterBranch.h.


The documentation for this class was generated from the following files:
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
TGC
@ TGC
Definition: RegSelEnums.h:33
MuonValR4::SpacePointTesterModule::m_phiChannel
VectorBranch< int16_t > & m_phiChannel
Channel of the secondary measurment.
Definition: SpacePointTesterModule.h:69
STGC
@ STGC
Definition: RegSelEnums.h:39
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
Muon::IMuonIdHelperSvc::stgcIdHelper
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
MuonR4::SpacePointBucket::coveredMin
double coveredMin() const
lower interval value covered by the bucket
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:31
MuonValR4::SpacePointTesterModule::m_bucketId
MuonIdentifierBranch m_bucketId
stationIndex / stationEta / stationPhi of the bucket chamber
Definition: SpacePointTesterModule.h:34
TgcIdHelper
Definition: TgcIdHelper.h:50
MuonValR4::SpacePointTesterModule::m_driftR
VectorBranch< float > & m_driftR
Space point drift radius.
Definition: SpacePointTesterModule.h:45
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
MuonValR4::SpacePointTesterModule::m_covXX
VectorBranch< float > & m_covXX
Covariance of the space point.
Definition: SpacePointTesterModule.h:47
MuonValR4::SpacePointTesterModule::m_globPos
ThreeVectorBranch m_globPos
Space point position.
Definition: SpacePointTesterModule.h:43
MuonR4::SpacePointBucket::bucketId
unsigned int bucketId() const
Returns the Identifier in the context of the MuonChamber.
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:45
MuonValR4::SpacePointTesterModule::m_applyFilter
bool m_applyFilter
: Flag whether the module is operated in filter mode
Definition: SpacePointTesterModule.h:76
MuonVal::MuonTesterBranch::m_dependencies
std::vector< DataDependency > m_dependencies
Definition: MuonTesterBranch.h:62
Amg::y
@ y
Definition: GeoPrimitives.h:35
MuonVal::MuonTesterBranch::m_tree
TTree * m_tree
Definition: MuonTesterBranch.h:58
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
MuonValR4::SpacePointTesterModule::m_nPhiInstances
VectorBranch< unsigned int > & m_nPhiInstances
Definition: SpacePointTesterModule.h:57
MM
@ MM
Definition: RegSelEnums.h:38
xAOD::identify
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/Root/UtilFunctions.cxx:61
MuonR4::SpacePoint::secondaryMeasurement
const xAOD::UncalibratedMeasurement * secondaryMeasurement() const
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:110
MuonValR4::SpacePointTesterModule::m_layer
VectorBranch< unsigned char > & m_layer
Measurement layer.
Definition: SpacePointTesterModule.h:65
MuonValR4::SpacePointTesterModule::m_channel
VectorBranch< uint16_t > & m_channel
Measurement channel.
Definition: SpacePointTesterModule.h:67
THROW_EXCEPTION
#define THROW_EXCEPTION(MSG)
Definition: MMReadoutElement.cxx:48
MuonValR4::TesterModuleBase::TesterModuleBase
TesterModuleBase(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO)
Definition: TesterModuleBase.cxx:11
Muon::IMuonIdHelperSvc::mmIdHelper
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
RpcIdHelper
Definition: RpcIdHelper.h:51
AmgSymMatrix
#define AmgSymMatrix(dim)
Definition: EventPrimitives.h:50
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
MuonValR4::TesterModuleBase::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: TesterModuleBase.h:32
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonR4::SpacePoint::measuresPhi
bool measuresPhi() const
: Does the space point contain a phi measurement
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:131
MuonVal::MuonTesterBranch::m_parent
MuonTesterTree * m_parent
Definition: MuonTesterBranch.h:59
MuonValR4::SpacePointTesterModule::m_nEtaInstances
VectorBranch< unsigned int > & m_nEtaInstances
How many other spacepoints were built with the same eta /phi prd.
Definition: SpacePointTesterModule.h:56
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
MuonR4::SpacePointBucket::coveredMax
double coveredMax() const
upper interval value covered by the bucket
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:33
MuonVal::ThreeVectorBranch::push_back
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
Definition: ThreeVectorBranch.cxx:23
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition: AthMessaging.h:151
MuonValR4::SpacePointTesterModule::m_bucketMin
VectorBranch< float > & m_bucketMin
Range of the space point bucket.
Definition: SpacePointTesterModule.h:36
MuonValR4::SpacePointTesterModule::m_spacePointId
MuonIdentifierBranch m_spacePointId
Station Identifier.
Definition: SpacePointTesterModule.h:61
MuonGMR4::MuonChamber::readOutElements
const ReadoutSet & readOutElements() const
Returns the list of all associated readout elements.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:68
Amg::x
@ x
Definition: GeoPrimitives.h:34
MuonValR4::SpacePointTesterModule::m_covYY
VectorBranch< float > & m_covYY
Definition: SpacePointTesterModule.h:50
MuonVal::MuonIdentifierBranch::push_back
virtual void push_back(const Identifier &id)
Definition: IdentifierBranch.cxx:14
MuonValR4::TesterModuleBase::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition: TesterModuleBase.cxx:18
MdtIdHelper
Definition: MdtIdHelper.h:61
MuonValR4::SpacePointTesterModule::m_bucketPoints
MatrixBranch< uint16_t > & m_bucketPoints
associated space points
Definition: SpacePointTesterModule.h:39
MuonVal::MuonTesterBranch::m_init
bool m_init
Definition: MuonTesterBranch.h:61
MuonValR4::SpacePointTesterModule::m_measPhi
VectorBranch< bool > & m_measPhi
Definition: SpacePointTesterModule.h:54
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition: MuonTesterBranch.cxx:51
MuonVal::VectorBranch::push_back
void push_back(const T &value)
Adds a new element at the end of the vector.
Muon::IMuonIdHelperSvc::technologyIndex
virtual MuonStationIndex::TechnologyIndex technologyIndex(const Identifier &id) const =0
calculate layer index from Identifier
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
RPC
@ RPC
Definition: RegSelEnums.h:32
Muon::IMuonIdHelperSvc::mdtIdHelper
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
sTgcIdHelper
Definition: sTgcIdHelper.h:55
MuonValR4::SpacePointTesterModule::m_measEta
VectorBranch< bool > & m_measEta
Does the space point measure phi or eta.
Definition: SpacePointTesterModule.h:53
Muon::IMuonIdHelperSvc::tgcIdHelper
virtual const TgcIdHelper & tgcIdHelper() const =0
access to TgcIdHelper
MuonValR4::TesterModuleBase::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: TesterModuleBase.h:34
MuonValR4::SpacePointTesterModule::m_covYX
VectorBranch< float > & m_covYX
Definition: SpacePointTesterModule.h:49
MuonR4::SpacePoint::positionInChamber
const Amg::Vector3D & positionInChamber() const
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:116
MuonVal::MuonTesterBranch::m_name
std::string m_name
Definition: MuonTesterBranch.h:60
MuonR4::SpacePoint::nPhiInstanceCounts
unsigned int nPhiInstanceCounts() const
How many space points have been built in total with the same phi prd
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:156
MuonValR4::SpacePointTesterModule::m_spacePointIdx
std::unordered_map< const MuonR4::SpacePoint *, unsigned int > m_spacePointIdx
: Keep track when a spacepoint is filled into the tree
Definition: SpacePointTesterModule.h:72
MmIdHelper
Definition: MmIdHelper.h:54
MuonR4::SpacePoint::measuresEta
bool measuresEta() const
: Does the space point contain an eta measurement
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:134
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MuonValR4::SpacePointTesterModule::m_key
SG::ReadHandleKey< MuonR4::SpacePointContainer > m_key
Definition: SpacePointTesterModule.h:30
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
MuonValR4::TesterModuleBase::declare_keys
virtual bool declare_keys()=0
MuonValR4::SpacePointTesterModule::m_techIdx
VectorBranch< unsigned char > & m_techIdx
Technology index of the space point.
Definition: SpacePointTesterModule.h:63
MuonValR4::SpacePointTesterModule::m_bucketNumber
VectorBranch< uint16_t > & m_bucketNumber
Space point bucket information.
Definition: SpacePointTesterModule.h:32
MuonValR4::SpacePointTesterModule::m_bucketMax
VectorBranch< float > & m_bucketMax
Definition: SpacePointTesterModule.h:37
MuonValR4::SpacePointTesterModule::push_back
unsigned int push_back(const MuonR4::SpacePointBucket &bucket)
Definition: SpacePointTesterModule.cxx:96
MuonR4::SpacePoint::driftRadius
double driftRadius() const
: Returns the size of the drift radius
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:140
MuonVal::VectorBranch::size
size_t size() const
Returns the number of actual saved elements.
MuonR4::SpacePointBucket::chamber
const MuonGMR4::MuonChamber * chamber() const
returns th associated muonChamber
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:35
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
MuonValR4::SpacePointTesterModule::m_bucketIdx
std::unordered_map< const MuonR4::SpacePointBucket *, unsigned int > m_bucketIdx
: Keep tarck when a space point bucket is filled into the tree
Definition: SpacePointTesterModule.h:74
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
MuonValR4::SpacePointTesterModule::m_collName
std::string m_collName
Definition: SpacePointTesterModule.h:29
MuonValR4::SpacePointTesterModule::m_covXY
VectorBranch< float > & m_covXY
Definition: SpacePointTesterModule.h:48
MuonValR4::SpacePointTesterModule::m_internalFill
bool m_internalFill
: Flag toggling whether the module is in internal filling mode
Definition: SpacePointTesterModule.h:78
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
MuonValR4::TesterModuleBase::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TesterModuleBase.h:33
MuonR4::SpacePoint::identify
const Identifier & identify() const
: Identifier of the primary measurement
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:137
MuonR4::SpacePoint::nEtaInstanceCounts
unsigned int nEtaInstanceCounts() const
How many space points have been built in total with the same eta prd.
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/src/SpacePoint.cxx:155
MDT
@ MDT
Definition: RegSelEnums.h:31
Muon::IMuonIdHelperSvc::rpcIdHelper
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper
ServiceHandle< StoreGateSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14