|
ATLAS Offline Software
|
#include <sTGCPRDVariables.h>
Definition at line 13 of file sTGCPRDVariables.h.
◆ DataDependency
◆ sTGCPRDVariables()
MuonPRDTest::sTGCPRDVariables::sTGCPRDVariables |
( |
MuonTesterTree & |
tree, |
|
|
const std::string & |
container_name, |
|
|
MSG::Level |
msglvl |
|
) |
| |
Standard constructor taking the MuonTesterTree as parent The container name under which the MicroMegaPrds can be retrieved The message level.
Definition at line 10 of file sTGCPRDVariables.cxx.
◆ ~sTGCPRDVariables()
MuonPRDTest::sTGCPRDVariables::~sTGCPRDVariables |
( |
| ) |
|
|
default |
◆ 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 MuonPRDTest::sTGCPRDVariables::declare_keys |
( |
| ) |
|
|
finaloverridevirtual |
◆ dump()
Definition at line 93 of file sTGCPRDVariables.cxx.
114 ATH_MSG_DEBUG(
"sTgc PRD local pos.: x=" << std::setw(6) << std::setprecision(2) << loc_pos[0]
115 <<
", ex=" << std::setw(6) << std::setprecision(2) << err_x
116 <<
", y=" << std::setw(6) << std::setprecision(2) << loc_pos[1]
117 <<
", ey=" << std::setw(6) << std::setprecision(2) << err_y );
128 short int prdTime = prd.
time();
129 if(
idHelperSvc()->stgcIdHelper().channelType(Id) == sTgcIdHelper::sTgcChannelTypes::Strip) {
130 int maxCharge{-SHRT_MAX};
132 for (
int i = 0; i < static_cast<int>(stripCharges.size()); ++
i) {
133 if (stripCharges.at(
i) > maxCharge) {
134 maxCharge = stripCharges.at(
i);
◆ dumpAllHitsInChamber()
Adds all hits in this particular chamber to the output n-tuple.
Definition at line 88 of file sTGCPRDVariables.cxx.
◆ enableSeededDump()
void MuonPRDTest::sTGCPRDVariables::enableSeededDump |
( |
| ) |
|
Dumps only hits which are marked by the dumpAllHitsInChamber method.
Definition at line 84 of file sTGCPRDVariables.cxx.
◆ eraseWhiteSpaces()
std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces |
( |
const std::string & |
In | ) |
|
|
staticinherited |
◆ fill()
bool MuonPRDTest::sTGCPRDVariables::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 14 of file sTGCPRDVariables.cxx.
18 if (!MuonDetMgr) {
return false; }
20 if (!stgcprdContainer.isValid()) {
25 ATH_MSG_DEBUG(
"retrieved sTGC PRD Container with size " << stgcprdContainer->size());
27 if (stgcprdContainer->size() == 0)
ATH_MSG_DEBUG(
" sTGC PRD Container empty ");
28 unsigned int n_PRD{0};
50 ATH_MSG_DEBUG(
"sTgc PRD local pos.: x=" << std::setw(6) << std::setprecision(2) << loc_pos[0]
51 <<
", ex=" << std::setw(6) << std::setprecision(2) << err_x
52 <<
", y=" << std::setw(6) << std::setprecision(2) << loc_pos[1]
53 <<
", ey=" << std::setw(6) << std::setprecision(2) << err_y );
◆ getDetMgr()
◆ idHelperSvc()
◆ init()
bool MuonPRDTest::PrdTesterModule::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 24 of file PrdTesterModule.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()
Adds a prd to the output tree.
Returns the index in the vector where the PRD is saved for output. Internal checks ensure that the same Prd is nver pushed twice.
Definition at line 79 of file sTGCPRDVariables.cxx.
◆ 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 MuonPRDTest::sTGCPRDVariables::m_applyFilter {false} |
|
private |
◆ m_dependencies
std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {} |
|
privateinherited |
◆ m_detMgrKey
◆ m_externalPush
bool MuonPRDTest::sTGCPRDVariables::m_externalPush {false} |
|
private |
Flag telling whether an external prd has been pushed.
Definition at line 73 of file sTGCPRDVariables.h.
◆ m_filteredChamb
std::unordered_set<Identifier> MuonPRDTest::sTGCPRDVariables::m_filteredChamb {} |
|
private |
◆ m_filteredPRDs
std::unordered_map<Identifier, unsigned int> MuonPRDTest::sTGCPRDVariables::m_filteredPRDs {} |
|
private |
◆ m_idHelperSvc
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool MuonVal::MuonTesterBranch::m_init {false} |
|
privateinherited |
◆ m_key
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ 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_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_NSWsTGC_nPRD
ScalarBranch<unsigned int>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_nPRD {parent().newScalar<unsigned int>("N_PRD_sTGC")} |
|
private |
◆ m_NSWsTGC_PRD_charge
VectorBranch<int>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_charge {parent().newVector<int>("PRD_sTGC_charge")} |
|
private |
◆ m_NSWsTGC_PRD_covMatrix_1_1
VectorBranch<double>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_covMatrix_1_1 {parent().newVector<double>("PRD_sTGC_covMatrix_1_1")} |
|
private |
◆ m_NSWsTGC_PRD_covMatrix_2_2
VectorBranch<double>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_covMatrix_2_2 {parent().newVector<double>("PRD_sTGC_covMatrix_2_2")} |
|
private |
◆ m_NSWsTGC_PRD_globalPos
◆ m_NSWsTGC_PRD_id
◆ m_NSWsTGC_PRD_localPosX
VectorBranch<double>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_localPosX {parent().newVector<double>("PRD_sTGC_localPosX")} |
|
private |
◆ m_NSWsTGC_PRD_localPosY
VectorBranch<double>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_localPosY {parent().newVector<double>("PRD_sTGC_localPosY")} |
|
private |
◆ m_NSWsTGC_PRD_nStrips
VectorBranch<int>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_nStrips {parent().newVector<int>("PRD_sTGC_nStrips")} |
|
private |
◆ m_NSWsTGC_PRD_stripChannel
MatrixBranch<uint16_t>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_stripChannel {parent().newMatrix<uint16_t>("PRD_sTGC_stripChannel")} |
|
private |
◆ m_NSWsTGC_PRD_stripCharge
MatrixBranch<int>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_stripCharge {parent().newMatrix<int>("PRD_sTGC_stripCharge")} |
|
private |
◆ m_NSWsTGC_PRD_stripTime
MatrixBranch<short>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_stripTime {parent().newMatrix<short>("PRD_sTGC_stripTime")} |
|
private |
◆ m_NSWsTGC_PRD_time
VectorBranch<short>& MuonPRDTest::sTGCPRDVariables::m_NSWsTGC_PRD_time {parent().newVector<short>("PRD_sTGC_time")} |
|
private |
◆ m_parent
◆ m_stgcAuthor
VectorBranch<uint8_t>& MuonPRDTest::sTGCPRDVariables::m_stgcAuthor {parent().newVector<uint8_t>("stgcAuthor")} |
|
private |
◆ m_stgcQuality
VectorBranch<uint8_t>& MuonPRDTest::sTGCPRDVariables::m_stgcQuality {parent().newVector<uint8_t>("stgcQuality")} |
|
private |
◆ m_tree
TTree* MuonVal::MuonTesterBranch::m_tree {nullptr} |
|
privateinherited |
The documentation for this class was generated from the following files:
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_1_1
std::atomic< MSG::Level > m_lvl
Current logging level.
MatrixBranch< int > & m_NSWsTGC_PRD_stripCharge
Eigen::Matrix< double, 2, 1 > Vector2D
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
bool m_externalPush
Flag telling whether an external prd has been pushed.
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
std::vector< DataDependency > m_dependencies
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_2_2
void push_back(const Identifier &id) override final
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
VectorBranch< double > & m_NSWsTGC_PRD_localPosY
VectorBranch< int > & m_NSWsTGC_PRD_charge
#define ATH_MSG_VERBOSE(x)
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
VectorBranch< double > & m_NSWsTGC_PRD_localPosX
MatrixBranch< uint16_t > & m_NSWsTGC_PRD_stripChannel
IMessageSvc * getMessageSvc(bool quiet=false)
TTree * tree() override final
Returns the underlying TTree object.
MuonTesterTree * m_parent
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
const std::vector< int > & stripCharges() const
returns the list of charges
VectorBranch< short > & m_NSWsTGC_PRD_time
void push_back(size_t i, const T &value)
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
VectorBranch< int > & m_NSWsTGC_PRD_nStrips
bool m_applyFilter
Apply a filter to dump the prds.
Template to hold collections of MuonPrepRawData objects.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
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.
Identifier identify() const
return the identifier
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
virtual bool declare_keys()=0
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Eigen::Matrix< double, 3, 1 > Vector3D
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
#define ATH_MSG_WARNING(x)
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
std::string m_nm
Message source name.
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
MatrixBranch< short > & m_NSWsTGC_PRD_stripTime
unsigned int dump(const Muon::sTgcPrepData &prd)
VectorBranch< uint8_t > & m_stgcQuality
void initMessaging() const
Initialize our message level and MessageSvc.
sTgcIdentifierBranch m_NSWsTGC_PRD_id
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_key
Class to represent sTgc measurements.
ThreeVectorBranch m_NSWsTGC_PRD_globalPos
int charge() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
ScalarBranch< unsigned int > & m_NSWsTGC_nPRD
const std::vector< short int > & stripTimes() const
returns the list of times
VectorBranch< uint8_t > & m_stgcAuthor