ATLAS Offline Software
RpcMeasurementVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PRDTESTERR4_RPCSTRIPVARIABLES_H
6 #define PRDTESTERR4_RPCSTRIPVARIABLES_H
11 
12 #include <unordered_map>
13 #include <unordered_set>
17 namespace MuonValR4{
18 
20  public:
22  const std::string& inContainer,
24  const std::string& collName="RpcPrd");
25 
26  bool declare_keys() override final;
27 
28 
29  bool fill(const EventContext& ctx) override final;
30 
35  unsigned int push_back(const xAOD::RpcMeasurement& measurement);
40  void dumpAllHitsInChamber(const Identifier& chamberId);
44  void enableSeededDump();
45  private:
46  void dump(const ActsGeometryContext& gctx,
47  const xAOD::RpcMeasurement& dc);
48 
50 
51  std::string m_collName{};
63  VectorBranch<float>& m_toT{parent().newVector<float>(m_collName+"_timeOverThresh")};
64 
65 
67  std::unordered_set<Identifier> m_filteredChamb{};
69  std::unordered_map<Identifier, unsigned int> m_idOutIdxMap{};
71  std::vector<const xAOD::RpcMeasurement*> m_dumpedPRDS{};
73  bool m_applyFilter{false};
74  };
75 }
76 #endif
TesterModuleBase.h
MuonValR4::RpcMeasurementVariables::m_filteredChamb
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
Definition: RpcMeasurementVariables.h:67
xAOD::RpcMeasurement_v1
RpcMeasurement_v1: Class storing the geneic.
Definition: RpcMeasurement_v1.h:21
MuonValR4::RpcMeasurementVariables::m_applyFilter
bool m_applyFilter
Apply a filter to dump the prds.
Definition: RpcMeasurementVariables.h:73
MuonValR4::RpcMeasurementVariables::m_locPos
TwoVectorBranch m_locPos
Local strip position of the measurement
Definition: RpcMeasurementVariables.h:57
MuonValR4::RpcMeasurementVariables::m_key
SG::ReadHandleKey< xAOD::RpcMeasurementContainer > m_key
Definition: RpcMeasurementVariables.h:49
MuonVal::VectorBranch< float >
MuonValR4::RpcMeasurementVariables::RpcMeasurementVariables
RpcMeasurementVariables(MuonTesterTree &tree, const std::string &inContainer, MSG::Level msgLvl=MSG::Level::INFO, const std::string &collName="RpcPrd")
Definition: RpcMeasurementVariables.cxx:9
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonValR4::RpcMeasurementVariables::declare_keys
bool declare_keys() override final
Definition: RpcMeasurementVariables.cxx:17
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonValR4::RpcMeasurementVariables::m_globPos
ThreeVectorBranch m_globPos
Position of the Mdt drift circle in the global frame.
Definition: RpcMeasurementVariables.h:55
MuonValR4::RpcMeasurementVariables::m_time
VectorBranch< float > & m_time
Time of the measurement.
Definition: RpcMeasurementVariables.h:61
RpcMeasurementContainer.h
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
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonValR4::RpcMeasurementVariables::enableSeededDump
void enableSeededDump()
Activates the seeded dump of the branch.
Definition: RpcMeasurementVariables.cxx:49
IdentifierBranch.h
MuonVal::RpcIdentifierBranch
Definition: IdentifierBranch.h:53
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
MuonValR4::RpcMeasurementVariables::m_id
RpcIdentifierBranch m_id
Identifier of the Mdt.
Definition: RpcMeasurementVariables.h:53
MuonValR4::TesterModuleBase
Definition: TesterModuleBase.h:15
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::RpcMeasurementVariables::dump
void dump(const ActsGeometryContext &gctx, const xAOD::RpcMeasurement &dc)
Definition: RpcMeasurementVariables.cxx:67
MuonValR4::RpcMeasurementVariables
Definition: RpcMeasurementVariables.h:19
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
python.Constants.INFO
int INFO
Definition: Control/AthenaCommon/python/Constants.py:16
MuonValR4::RpcMeasurementVariables::m_collName
std::string m_collName
Definition: RpcMeasurementVariables.h:51
MuonValR4::RpcMeasurementVariables::m_idOutIdxMap
std::unordered_map< Identifier, unsigned int > m_idOutIdxMap
Map of Identifiers to the position index inside the vector.
Definition: RpcMeasurementVariables.h:69
MuonValR4::RpcMeasurementVariables::m_toT
VectorBranch< float > & m_toT
Time over threshold.
Definition: RpcMeasurementVariables.h:63
TwoVectorBranch.h
MuonValR4::RpcMeasurementVariables::m_dumpedPRDS
std::vector< const xAOD::RpcMeasurement * > m_dumpedPRDS
Vector of PRDs parsed via the external mechanism. These measurements are parsed first.
Definition: RpcMeasurementVariables.h:71
MuonValR4::RpcMeasurementVariables::dumpAllHitsInChamber
void dumpAllHitsInChamber(const Identifier &chamberId)
All hits from this particular chamber identifier are dumped to the output including the ones from the...
Definition: RpcMeasurementVariables.cxx:52
MuonValR4::RpcMeasurementVariables::fill
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition: RpcMeasurementVariables.cxx:20
MuonValR4::RpcMeasurementVariables::m_locCov
TwoVectorBranch m_locCov
local covariance of the measurement
Definition: RpcMeasurementVariables.h:59
MuonValR4::RpcMeasurementVariables::push_back
unsigned int push_back(const xAOD::RpcMeasurement &measurement)
Push back the drift circle measurement to the output.
Definition: RpcMeasurementVariables.cxx:56
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15
Identifier
Definition: IdentifierFieldParser.cxx:14