![]() |
ATLAS Offline Software
|
#include <TestMacroHelpers.h>
Classes | |
| struct | IsolationBranches |
Public Types | |
| using | DataDependency = SG::VarHandleKey* |
Public Member Functions | |
| IsoCorrectionTestHelper (MuonVal::MuonTesterTree &outTree, const std::string &ContainerName, const std::vector< std::unique_ptr< IsolationWP > > &WP) | |
| StatusCode | Fill (const xAOD::IParticleContainer *Particles) |
| void | SetSelectionDecorator (const std::string &acc) |
| Pipe the name of the decorator selecting the objects dumped to the TTree. | |
| void | SetIsolationDecorator (const std::string &acc) |
| Pipe the name of te decorator encoding whether the object already passed the vanilla isolation. | |
| void | SetUpdatedIsoDecorator (const std::string &acc) |
| Pipe the name of te decorator encoding whether the object already passed the corrected isolation. | |
| void | SetBackupPreFix (const std::string &prefix) |
| Specify whether the vanilla isolation variable is backuped to another set of decorators. | |
| void | SetClusters (const ClusterSet &clusters) |
| set the list of all clusters from the Cluster container matched by the IsolationCloseByCorrectionTool... A bit awkward path, but otherwise we do not get consistency in the validation plots | |
| void | SetFlowElements (const PflowSet &flows) |
| 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. | |
| 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. | |
| std::string | name () const override final |
| Returns the name of the branch. | |
| 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. | |
| TTree * | tree () override final |
| Returns the underlying TTree object. | |
| const TTree * | tree () const override final |
| std::vector< DataDependency > | data_dependencies () override final |
| Returns the data dependencies needed by the MuonTesterBranch. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| static std::string | eraseWhiteSpaces (const std::string &In) |
Protected Member Functions | |
| template<class T> | |
| bool | addToTree (T &variable) |
| Connects the Memory buffer with the TTree. | |
| template<class Key> | |
| bool | declare_dependency (Key &key) |
| Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. | |
| MuonTesterTree & | parent () |
| Returns the reference to the MuonTesterTree parent. | |
Private Member Functions | |
| float | Charge (const xAOD::IParticle *P) const |
| StatusCode | FillIsolationBranches (const xAOD::IParticle *P, const IsoHelperPtr &Acc, MuonVal::VectorBranch< float > &Original, MuonVal::VectorBranch< float > &Corrected) |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::string | m_cont_name {} |
| MuonVal::VectorBranch< float > & | m_pt {parent().newVector<float>(m_cont_name + "_pt")} |
| MuonVal::VectorBranch< float > & | m_eta {parent().newVector<float>(m_cont_name + "_eta")} |
| MuonVal::VectorBranch< float > & | m_phi {parent().newVector<float>(m_cont_name + "_ phi")} |
| MuonVal::VectorBranch< float > & | m_e {parent().newVector<float>(m_cont_name + "_e")} |
| MuonVal::VectorBranch< int > & | m_Q {parent().newVector<int>(m_cont_name + "_Q")} |
| MuonVal::VectorBranch< bool > & | m_orig_passIso {parent().newVector<bool>(m_cont_name + "_OrigPassIso")} |
| MuonVal::VectorBranch< bool > & | m_corr_passIso {parent().newVector<bool>(m_cont_name + "_CorrPassIso")} |
| MuonVal::VectorBranch< float > & | m_assoc_track_pt {parent().newVector<float>(m_cont_name + "_trackPt")} |
| MuonVal::VectorBranch< float > & | m_assoc_cluster_et {parent().newVector<float>(m_cont_name + "_clusterEt")} |
| MuonVal::VectorBranch< float > & | m_assoc_cluster_eta {parent().newVector<float>(m_cont_name + "_clusterEta")} |
| MuonVal::VectorBranch< float > & | m_assoc_cluster_phi {parent().newVector<float>(m_cont_name + "_clusterPhi")} |
| MuonVal::VectorBranch< float > & | m_assoc_pflow_et {parent().newVector<float>(m_cont_name + "_pflowEt")} |
| MuonVal::VectorBranch< float > & | m_assoc_pflow_eta {parent().newVector<float>(m_cont_name + "_pflowEta")} |
| MuonVal::VectorBranch< float > & | m_assoc_pflow_phi {parent().newVector<float>(m_cont_name + "_pflowPhi")} |
| std::vector< IsolationBranches > | m_iso_branches |
| std::optional< CharAccessor > | m_acc_used_for_corr {std::nullopt} |
| std::optional< CharAccessor > | m_acc_passDefault {std::nullopt} |
| std::optional< CharAccessor > | m_acc_passCorrected {std::nullopt} |
| ClusterSet | m_clusters {} |
| PflowSet | m_flows {} |
| TTree * | m_tree {nullptr} |
| MuonTesterTree * | m_parent {nullptr} |
| std::string | m_name {} |
| bool | m_init {false} |
| std::vector< DataDependency > | m_dependencies {} |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Definition at line 18 of file TestMacroHelpers.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
| CP::IsoCorrectionTestHelper::IsoCorrectionTestHelper | ( | MuonVal::MuonTesterTree & | outTree, |
| const std::string & | ContainerName, | ||
| const std::vector< std::unique_ptr< IsolationWP > > & | WP ) |
Definition at line 34 of file TestMacroHelpers.cxx.
|
protectedinherited |
Connects the Memory buffer with the TTree.
|
private |
Definition at line 159 of file TestMacroHelpers.cxx.
|
finaloverridevirtualinherited |
Returns the data dependencies needed by the MuonTesterBranch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 61 of file MuonTesterBranch.cxx.
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
|
staticinherited |
Definition at line 56 of file MuonTesterBranch.cxx.
| StatusCode CP::IsoCorrectionTestHelper::Fill | ( | const xAOD::IParticleContainer * | Particles | ) |
Fill the momenta of the associated tracks and clusters
Definition at line 69 of file TestMacroHelpers.cxx.
|
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 32 of file TestMacroHelpers.cxx.
|
private |
Definition at line 167 of file TestMacroHelpers.cxx.
|
finaloverridevirtual |
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 31 of file TestMacroHelpers.cxx.
|
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.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
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 163 of file AthMessaging.h.
|
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 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
finaloverridevirtualinherited |
Returns the name of the branch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 51 of file MuonTesterBranch.cxx.
|
protectedinherited |
Returns the reference to the MuonTesterTree parent.
Definition at line 38 of file MuonTesterBranch.cxx.
| void CP::IsoCorrectionTestHelper::SetBackupPreFix | ( | const std::string & | prefix | ) |
Specify whether the vanilla isolation variable is backuped to another set of decorators.
Definition at line 63 of file TestMacroHelpers.cxx.
| void CP::IsoCorrectionTestHelper::SetClusters | ( | const ClusterSet & | clusters | ) |
set the list of all clusters from the Cluster container matched by the IsolationCloseByCorrectionTool... A bit awkward path, but otherwise we do not get consistency in the validation plots
Definition at line 53 of file TestMacroHelpers.cxx.
| void CP::IsoCorrectionTestHelper::SetFlowElements | ( | const PflowSet & | flows | ) |
Definition at line 33 of file TestMacroHelpers.cxx.
| void CP::IsoCorrectionTestHelper::SetIsolationDecorator | ( | const std::string & | acc | ) |
Pipe the name of te decorator encoding whether the object already passed the vanilla isolation.
Definition at line 57 of file TestMacroHelpers.cxx.
|
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.
| void CP::IsoCorrectionTestHelper::SetSelectionDecorator | ( | const std::string & | acc | ) |
Pipe the name of the decorator selecting the objects dumped to the TTree.
Definition at line 54 of file TestMacroHelpers.cxx.
| void CP::IsoCorrectionTestHelper::SetUpdatedIsoDecorator | ( | const std::string & | acc | ) |
Pipe the name of te decorator encoding whether the object already passed the corrected isolation.
Definition at line 60 of file TestMacroHelpers.cxx.
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
Returns the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 53 of file MuonTesterBranch.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 81 of file TestMacroHelpers.h.
|
private |
Definition at line 80 of file TestMacroHelpers.h.
|
private |
Definition at line 79 of file TestMacroHelpers.h.
|
private |
Definition at line 61 of file TestMacroHelpers.h.
|
private |
Definition at line 62 of file TestMacroHelpers.h.
|
private |
Definition at line 63 of file TestMacroHelpers.h.
|
private |
Definition at line 65 of file TestMacroHelpers.h.
|
private |
Definition at line 66 of file TestMacroHelpers.h.
|
private |
Definition at line 67 of file TestMacroHelpers.h.
|
private |
Definition at line 59 of file TestMacroHelpers.h.
|
private |
Definition at line 83 of file TestMacroHelpers.h.
|
private |
Definition at line 48 of file TestMacroHelpers.h.
|
private |
Definition at line 57 of file TestMacroHelpers.h.
|
privateinherited |
Definition at line 62 of file MuonTesterBranch.h.
|
private |
Definition at line 53 of file TestMacroHelpers.h.
|
private |
Definition at line 51 of file TestMacroHelpers.h.
|
private |
Definition at line 84 of file TestMacroHelpers.h.
|
mutableprivateinherited |
|
privateinherited |
Definition at line 61 of file MuonTesterBranch.h.
|
private |
Definition at line 77 of file TestMacroHelpers.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Definition at line 60 of file MuonTesterBranch.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 56 of file TestMacroHelpers.h.
|
privateinherited |
Definition at line 59 of file MuonTesterBranch.h.
|
private |
Definition at line 52 of file TestMacroHelpers.h.
|
private |
Definition at line 50 of file TestMacroHelpers.h.
|
private |
Definition at line 54 of file TestMacroHelpers.h.
|
privateinherited |
Definition at line 58 of file MuonTesterBranch.h.