|
ATLAS Offline Software
|
#include <SpacePointTesterModule.h>
Definition at line 12 of file SpacePointTesterModule.h.
◆ DataDependency
◆ SpacePointTesterModule()
MuonValR4::SpacePointTesterModule::SpacePointTesterModule |
( |
MuonTesterTree & |
tree, |
|
|
const std::string & |
inContainer, |
|
|
MSG::Level |
msgLvl = MSG::Level::INFO , |
|
|
const std::string & |
collName = "" |
|
) |
| |
◆ addToTree()
template<class T >
bool MuonVal::MuonTesterBranch::addToTree |
( |
T & |
variable | ) |
|
|
protectedinherited |
Connects the Memory buffer with the TTree.
◆ data_dependencies()
|
finaloverridevirtualinherited |
◆ 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 |
◆ eraseWhiteSpaces()
std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces |
( |
const std::string & |
In | ) |
|
|
staticinherited |
◆ 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.
127 if (!container.isPresent()) {
131 for (
const auto& bucket : *container) {
◆ getDetMgr()
◆ getGeoCtx()
◆ idHelperSvc()
◆ 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.
◆ 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.
◆ 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.
◆ 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.
◆ 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
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ name()
std::string MuonVal::MuonTesterBranch::name |
( |
| ) |
const |
|
finaloverridevirtualinherited |
◆ parent()
◆ push_back() [1/2]
Definition at line 16 of file SpacePointTesterModule.cxx.
22 if (!insert_itr.second) {
23 return insert_itr.first->second;
52 idHelper.tubeLayer(
id));
94 return insert_itr.first->second;
◆ push_back() [2/2]
Definition at line 96 of file SpacePointTesterModule.cxx.
105 if (!insert_itr.second) {
106 return insert_itr.first->second;
115 for (
const auto& spacePoint : bucket) {
116 spacePoints.push_back(
push_back(*spacePoint));
119 return insert_itr.first->second;
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ tree() [1/2]
const TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
const |
|
finaloverridevirtualinherited |
◆ tree() [2/2]
TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
|
|
finaloverridevirtualinherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_applyFilter
bool MuonValR4::SpacePointTesterModule::m_applyFilter {false} |
|
private |
◆ m_bucketId
◆ m_bucketIdx
◆ m_bucketMax
◆ m_bucketMin
◆ m_bucketNumber
◆ m_bucketPoints
◆ m_channel
◆ m_collName
std::string MuonValR4::SpacePointTesterModule::m_collName {} |
|
private |
◆ m_covXX
◆ m_covXY
◆ m_covYX
◆ m_covYY
◆ m_dependencies
std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {} |
|
privateinherited |
◆ m_detMgr
◆ m_driftR
◆ m_geoCtxKey
◆ m_globPos
◆ m_idHelperSvc
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool MuonVal::MuonTesterBranch::m_init {false} |
|
privateinherited |
◆ m_internalFill
bool MuonValR4::SpacePointTesterModule::m_internalFill {false} |
|
private |
◆ m_key
◆ m_layer
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_measEta
◆ m_measPhi
◆ 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 |
◆ m_nEtaInstances
VectorBranch<unsigned int>& MuonValR4::SpacePointTesterModule::m_nEtaInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nEtaInUse")} |
|
private |
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nPhiInstances
VectorBranch<unsigned int>& MuonValR4::SpacePointTesterModule::m_nPhiInstances {parent().newVector<unsigned int>(m_collName+"spacePoint_nPhiInUse")} |
|
private |
◆ m_parent
◆ m_phiChannel
◆ m_spacePointId
◆ m_spacePointIdx
◆ m_techIdx
VectorBranch<unsigned char>& MuonValR4::SpacePointTesterModule::m_techIdx {parent().newVector<unsigned char>(m_collName+"spacePoint_technology")} |
|
private |
◆ m_tree
TTree* MuonVal::MuonTesterBranch::m_tree {nullptr} |
|
privateinherited |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
VectorBranch< int16_t > & m_phiChannel
Channel of the secondary measurment.
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
const MuonGMR4::SpectrometerSector * msSector() const
returns th associated muonChamber
double coveredMin() const
lower interval value covered by the bucket
MuonIdentifierBranch m_bucketId
stationIndex / stationEta / stationPhi of the bucket chamber
VectorBranch< float > & m_driftR
Space point drift radius.
const ChamberSet & chambers() const
Returns the associated chambers with this sector.
VectorBranch< float > & m_covXX
Covariance of the space point.
ThreeVectorBranch m_globPos
Space point position.
unsigned int bucketId() const
Returns the Identifier in the context of the MuonChamber.
bool m_applyFilter
: Flag whether the module is operated in filter mode
std::vector< DataDependency > m_dependencies
VectorBranch< unsigned int > & m_nPhiInstances
const xAOD::UncalibratedMeasurement * secondaryMeasurement() const
VectorBranch< unsigned char > & m_layer
Measurement layer.
VectorBranch< uint16_t > & m_channel
Measurement channel.
#define THROW_EXCEPTION(MSG)
TesterModuleBase(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO)
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
#define AmgSymMatrix(dim)
IMessageSvc * getMessageSvc(bool quiet=false)
const MuonGMR4::MuonDetectorManager * m_detMgr
TTree * tree() override final
Returns the underlying TTree object.
bool measuresPhi() const
: Does the space point contain a phi measurement
MuonTesterTree * m_parent
VectorBranch< unsigned int > & m_nEtaInstances
How many other spacepoints were built with the same eta /phi prd.
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
double coveredMax() const
upper interval value covered by the bucket
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
VectorBranch< float > & m_bucketMin
Range of the space point bucket.
MuonIdentifierBranch m_spacePointId
Station Identifier.
VectorBranch< float > & m_covYY
virtual void push_back(const Identifier &id)
const Muon::IMuonIdHelperSvc * idHelperSvc() const
MatrixBranch< uint16_t > & m_bucketPoints
associated space points
VectorBranch< bool > & m_measPhi
MsgStream & msg() const
The standard message stream.
std::string name() const override final
Returns the name of the branch.
void push_back(const T &value)
Adds a new element at the end of the vector.
virtual MuonStationIndex::TechnologyIndex technologyIndex(const Identifier &id) const =0
calculate layer index from Identifier
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
VectorBranch< bool > & m_measEta
Does the space point measure phi or eta.
virtual const TgcIdHelper & tgcIdHelper() const =0
access to TgcIdHelper
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
VectorBranch< float > & m_covYX
const Amg::Vector3D & positionInChamber() const
unsigned int nPhiInstanceCounts() const
How many space points have been built in total with the same phi prd
std::unordered_map< const MuonR4::SpacePoint *, unsigned int > m_spacePointIdx
: Keep track when a spacepoint is filled into the tree
bool measuresEta() const
: Does the space point contain an eta measurement
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< MuonR4::SpacePointContainer > m_key
std::string m_nm
Message source name.
virtual bool declare_keys()=0
VectorBranch< unsigned char > & m_techIdx
Technology index of the space point.
VectorBranch< uint16_t > & m_bucketNumber
Space point bucket information.
VectorBranch< float > & m_bucketMax
unsigned int push_back(const MuonR4::SpacePointBucket &bucket)
double driftRadius() const
: Returns the size of the drift radius
size_t size() const
Returns the number of actual saved elements.
void initMessaging() const
Initialize our message level and MessageSvc.
std::unordered_map< const MuonR4::SpacePointBucket *, unsigned int > m_bucketIdx
: Keep tarck when a space point bucket is filled into the tree
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
VectorBranch< float > & m_covXY
bool m_internalFill
: Flag toggling whether the module is in internal filling mode
TechnologyIndex
enum to classify the different layers in the muon spectrometer
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
const Identifier & identify() const
: Identifier of the primary measurement
unsigned int nEtaInstanceCounts() const
How many space points have been built in total with the same eta prd.
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper