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::MdtDriftCircleVariables Class Reference

#include <MdtDriftCircleVariables.h>

Inheritance diagram for MuonValR4::MdtDriftCircleVariables:
Collaboration diagram for MuonValR4::MdtDriftCircleVariables:

Public Types

using DataDependency = SG::VarHandleKey *
 

Public Member Functions

 MdtDriftCircleVariables (MuonTesterTree &tree, const std::string &inContainer, MSG::Level msgLvl=MSG::Level::INFO, const std::string &collName="MdtPrd")
 
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 xAOD::MdtDriftCircle &dc)
 Push back the drift circle measurement to the output. More...
 
void dumpAllHitsInChamber (const Identifier &chamberId)
 All hits from this particular chamber identifier are dumped to the output including the ones from the first and the second multilayer. More...
 
void enableSeededDump ()
 Activates the seeded dump of the branch. More...
 
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 dump (const ActsGeometryContext &gctx, const xAOD::MdtDriftCircle &dc)
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

SG::ReadHandleKey< xAOD::MdtDriftCircleContainerm_key {}
 
std::string m_collName {}
 
MdtIdentifierBranch m_id {parent(), m_collName}
 Identifier of the Mdt. More...
 
ThreeVectorBranch m_globPos {parent(), m_collName+"_globalPos"}
 Position of the Mdt drift circle in the global frame. More...
 
VectorBranch< float > & m_driftRadius {parent().newVector<float>(m_collName+"_driftRadius")}
 Dirft radius of the associated drit circle. More...
 
VectorBranch< float > & m_driftRadiusUncert {parent().newVector<float>(m_collName+"_uncertDriftRadius")}
 Uncertainty on the drift radius measurement. More...
 
VectorBranch< uint16_t > & m_tdcCounts {parent().newVector<uint16_t>(m_collName+"_tdc")}
 tdc counts of the measurement More...
 
VectorBranch< uint16_t > & m_adcCounts {parent().newVector<uint16_t>(m_collName+"_adc")}
 Adc counts of the measurement. More...
 
std::unordered_set< Identifierm_filteredChamb {}
 Set of chambers to be dumped. More...
 
std::unordered_map< Identifier, unsigned int > m_idOutIdxMap {}
 Map of Identifiers to the position index inside the vector. More...
 
std::vector< const xAOD::MdtDriftCircle * > m_dumpedPRDS {}
 Vector of PRDs parsed via the external mechanism. These measurements are parsed first. More...
 
bool m_applyFilter {false}
 Apply a filter to dump the prds. 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 18 of file MdtDriftCircleVariables.h.

Member Typedef Documentation

◆ DataDependency

Definition at line 39 of file IMuonTesterBranch.h.

Constructor & Destructor Documentation

◆ MdtDriftCircleVariables()

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

Definition at line 9 of file MdtDriftCircleVariables.cxx.

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

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::MdtDriftCircleVariables::declare_keys ( )
finaloverridevirtual

Implements MuonValR4::TesterModuleBase.

Definition at line 17 of file MdtDriftCircleVariables.cxx.

17  {
18  return declare_dependency(m_key);
19  }

◆ dump()

void MuonValR4::MdtDriftCircleVariables::dump ( const ActsGeometryContext gctx,
const xAOD::MdtDriftCircle dc 
)
private

Definition at line 67 of file MdtDriftCircleVariables.cxx.

68  {
70  const Identifier id{re->measurementId(dc.measurementHash())};
71 
72 
73  ATH_MSG_VERBOSE("Filling information for "<<idHelperSvc()->toString(id));
74 
75 
76  const Amg::Vector3D tubePos{re->center(gctx, dc.measurementHash())};
77  m_id.push_back(id);
78  m_globPos.push_back(tubePos);
83  }

◆ dumpAllHitsInChamber()

void MuonValR4::MdtDriftCircleVariables::dumpAllHitsInChamber ( const Identifier chamberId)

All hits from this particular chamber identifier are dumped to the output including the ones from the first and the second multilayer.

Activates the external selection behaviour of the branch

Definition at line 52 of file MdtDriftCircleVariables.cxx.

52  {
53  m_applyFilter = true;
54  m_filteredChamb.insert(idHelperSvc()->chamberId(chamberId));
55  }

◆ enableSeededDump()

void MuonValR4::MdtDriftCircleVariables::enableSeededDump ( )

Activates the seeded dump of the branch.

Only hits that are parsed either directly or which are on the whitelist from the dumpAllHitsInChamber are added to the output

Definition at line 49 of file MdtDriftCircleVariables.cxx.

49  {
50  m_applyFilter = true;
51  }

◆ 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::MdtDriftCircleVariables::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

First dump the prds parsed externally

Then parse the rest. If there's any

Implements MuonVal::IMuonTesterBranch.

Definition at line 20 of file MdtDriftCircleVariables.cxx.

20  {
21  const ActsGeometryContext& gctx{getGeoCtx(ctx)};
22 
23  SG::ReadHandle inContainer{m_key, ctx};
24  if (!inContainer.isPresent()) {
25  ATH_MSG_FATAL("Failed to retrieve "<<m_key.fullKey());
26  return false;
27  }
29  for (const xAOD::MdtDriftCircle* dc : m_dumpedPRDS){
30  dump(gctx, *dc);
31  }
33  for (const xAOD::MdtDriftCircle* dc : *inContainer) {
34  const MuonGMR4::MdtReadoutElement* re = dc->readoutElement();
35  const Identifier id{re->measurementId(dc->measurementHash())};
36  if ((m_applyFilter && !m_filteredChamb.count(idHelperSvc()->chamberId(id))) ||
37  m_idOutIdxMap.find(id) != m_idOutIdxMap.end()){
38  ATH_MSG_VERBOSE("Skip "<<idHelperSvc()->toString(id));
39  continue;
40  }
41  dump(gctx, *dc);
42  }
43 
44  m_filteredChamb.clear();
45  m_idOutIdxMap.clear();
46  m_dumpedPRDS.clear();
47  return true;
48  }

◆ 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()

unsigned int MuonValR4::MdtDriftCircleVariables::push_back ( const xAOD::MdtDriftCircle dc)

Push back the drift circle measurement to the output.

Returns the position index to which the measurement is pushed to. Automated deduplication of multiple push_backs of the same measurement based on the measurement identifier

Definition at line 56 of file MdtDriftCircleVariables.cxx.

56  {
57  m_applyFilter = true;
59  const Identifier id{re->measurementId(dc.measurementHash())};
60 
61  const auto insert_itr = m_idOutIdxMap.insert(std::make_pair(id, m_idOutIdxMap.size()));
62  if (insert_itr.second) {
63  m_dumpedPRDS.push_back(&dc);
64  }
65  return insert_itr.first->second;
66  }

◆ 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_adcCounts

VectorBranch<uint16_t>& MuonValR4::MdtDriftCircleVariables::m_adcCounts {parent().newVector<uint16_t>(m_collName+"_adc")}
private

Adc counts of the measurement.

Definition at line 62 of file MdtDriftCircleVariables.h.

◆ m_applyFilter

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

Apply a filter to dump the prds.

Definition at line 71 of file MdtDriftCircleVariables.h.

◆ m_collName

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

Definition at line 50 of file MdtDriftCircleVariables.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_driftRadius

VectorBranch<float>& MuonValR4::MdtDriftCircleVariables::m_driftRadius {parent().newVector<float>(m_collName+"_driftRadius")}
private

Dirft radius of the associated drit circle.

Definition at line 56 of file MdtDriftCircleVariables.h.

◆ m_driftRadiusUncert

VectorBranch<float>& MuonValR4::MdtDriftCircleVariables::m_driftRadiusUncert {parent().newVector<float>(m_collName+"_uncertDriftRadius")}
private

Uncertainty on the drift radius measurement.

Definition at line 58 of file MdtDriftCircleVariables.h.

◆ m_dumpedPRDS

std::vector<const xAOD::MdtDriftCircle*> MuonValR4::MdtDriftCircleVariables::m_dumpedPRDS {}
private

Vector of PRDs parsed via the external mechanism. These measurements are parsed first.

Definition at line 69 of file MdtDriftCircleVariables.h.

◆ m_filteredChamb

std::unordered_set<Identifier> MuonValR4::MdtDriftCircleVariables::m_filteredChamb {}
private

Set of chambers to be dumped.

Definition at line 65 of file MdtDriftCircleVariables.h.

◆ m_geoCtxKey

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

Definition at line 34 of file TesterModuleBase.h.

◆ m_globPos

ThreeVectorBranch MuonValR4::MdtDriftCircleVariables::m_globPos {parent(), m_collName+"_globalPos"}
private

Position of the Mdt drift circle in the global frame.

Definition at line 54 of file MdtDriftCircleVariables.h.

◆ m_id

MdtIdentifierBranch MuonValR4::MdtDriftCircleVariables::m_id {parent(), m_collName}
private

Identifier of the Mdt.

Definition at line 52 of file MdtDriftCircleVariables.h.

◆ m_idHelperSvc

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

Definition at line 33 of file TesterModuleBase.h.

◆ m_idOutIdxMap

std::unordered_map<Identifier, unsigned int> MuonValR4::MdtDriftCircleVariables::m_idOutIdxMap {}
private

Map of Identifiers to the position index inside the vector.

Definition at line 67 of file MdtDriftCircleVariables.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_key

SG::ReadHandleKey<xAOD::MdtDriftCircleContainer> MuonValR4::MdtDriftCircleVariables::m_key {}
private

Definition at line 48 of file MdtDriftCircleVariables.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_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_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_parent

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

Definition at line 59 of file MuonTesterBranch.h.

◆ m_tdcCounts

VectorBranch<uint16_t>& MuonValR4::MdtDriftCircleVariables::m_tdcCounts {parent().newVector<uint16_t>(m_collName+"_tdc")}
private

tdc counts of the measurement

Definition at line 60 of file MdtDriftCircleVariables.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
MuonValR4::MdtDriftCircleVariables::m_collName
std::string m_collName
Definition: MdtDriftCircleVariables.h:50
MuonValR4::MdtDriftCircleVariables::m_applyFilter
bool m_applyFilter
Apply a filter to dump the prds.
Definition: MdtDriftCircleVariables.h:71
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
MuonVal::MdtIdentifierBranch::push_back
void push_back(const Identifier &id) override final
Definition: IdentifierBranch.cxx:24
xAOD::MdtDriftCircle_v1::tdc
int16_t tdc() const
Returns the TDC (typically range is 0 to 2500)
MuonValR4::MdtDriftCircleVariables::m_adcCounts
VectorBranch< uint16_t > & m_adcCounts
Adc counts of the measurement.
Definition: MdtDriftCircleVariables.h:62
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
xAOD::MdtDriftCircle_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel (tube (x) layer)
Definition: MdtDriftCircle_v1.cxx:29
MuonVal::MuonTesterBranch::m_dependencies
std::vector< DataDependency > m_dependencies
Definition: MuonTesterBranch.h:62
MuonValR4::MdtDriftCircleVariables::m_id
MdtIdentifierBranch m_id
Identifier of the Mdt.
Definition: MdtDriftCircleVariables.h:52
MuonVal::MuonTesterBranch::m_tree
TTree * m_tree
Definition: MuonTesterBranch.h:58
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
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
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
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
MuonVal::MuonTesterBranch::m_parent
MuonTesterTree * m_parent
Definition: MuonTesterBranch.h:59
xAOD::MdtDriftCircle_v1::readoutElement
const MuonGMR4::MdtReadoutElement * readoutElement() const
Retrieve the associated MdtReadoutElement.
MuonValR4::MdtDriftCircleVariables::m_driftRadiusUncert
VectorBranch< float > & m_driftRadiusUncert
Uncertainty on the drift radius measurement.
Definition: MdtDriftCircleVariables.h:58
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
MuonValR4::TesterModuleBase::getGeoCtx
const ActsGeometryContext & getGeoCtx(const EventContext &ctx) const
Definition: TesterModuleBase.cxx:22
MuonVal::ThreeVectorBranch::push_back
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
Definition: ThreeVectorBranch.cxx:23
xAOD::MdtDriftCircle_v1::driftRadius
float driftRadius() const
Returns the drift radius.
Definition: MdtDriftCircle_v1.cxx:45
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::MdtDriftCircleVariables::m_driftRadius
VectorBranch< float > & m_driftRadius
Dirft radius of the associated drit circle.
Definition: MdtDriftCircleVariables.h:56
MuonValR4::MdtDriftCircleVariables::m_filteredChamb
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
Definition: MdtDriftCircleVariables.h:65
MuonValR4::TesterModuleBase::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition: TesterModuleBase.cxx:18
MuonValR4::MdtDriftCircleVariables::dump
void dump(const ActsGeometryContext &gctx, const xAOD::MdtDriftCircle &dc)
Definition: MdtDriftCircleVariables.cxx:67
MuonVal::MuonTesterBranch::m_init
bool m_init
Definition: MuonTesterBranch.h:61
MuonValR4::MdtDriftCircleVariables::m_idOutIdxMap
std::unordered_map< Identifier, unsigned int > m_idOutIdxMap
Map of Identifiers to the position index inside the vector.
Definition: MdtDriftCircleVariables.h:67
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
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.
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
xAOD::MdtDriftCircle_v1::adc
int16_t adc() const
Returns the ADC (typically range is 0 to 250)
MuonGMR4::MdtReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:22
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonValR4::MdtDriftCircleVariables::m_dumpedPRDS
std::vector< const xAOD::MdtDriftCircle * > m_dumpedPRDS
Vector of PRDs parsed via the external mechanism. These measurements are parsed first.
Definition: MdtDriftCircleVariables.h:69
MuonValR4::MdtDriftCircleVariables::m_globPos
ThreeVectorBranch m_globPos
Position of the Mdt drift circle in the global frame.
Definition: MdtDriftCircleVariables.h:54
MuonValR4::TesterModuleBase::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: TesterModuleBase.h:34
MuonVal::MuonTesterBranch::m_name
std::string m_name
Definition: MuonTesterBranch.h:60
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
re
const boost::regex re(r_e)
MuonValR4::TesterModuleBase::declare_keys
virtual bool declare_keys()=0
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
xAOD::MdtDriftCircle_v1
https://gitlab.cern.ch/atlas/athena/-/blob/master/MuonSpectrometer/MuonReconstruction/MuonRecEvent/Mu...
Definition: MdtDriftCircle_v1.h:21
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::MdtDriftCircleVariables::m_tdcCounts
VectorBranch< uint16_t > & m_tdcCounts
tdc counts of the measurement
Definition: MdtDriftCircleVariables.h:60
MuonValR4::TesterModuleBase::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TesterModuleBase.h:33
xAOD::MdtDriftCircle_v1::driftRadiusUncert
float driftRadiusUncert() const
Returns the uncertainty on the drift radius.
Definition: MdtDriftCircle_v1.cxx:55
MuonValR4::MdtDriftCircleVariables::m_key
SG::ReadHandleKey< xAOD::MdtDriftCircleContainer > m_key
Definition: MdtDriftCircleVariables.h:48
ServiceHandle< StoreGateSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14