ATLAS Offline Software
CSCPRDVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonPRDTEST_CSCPRDVARIABLES_H
6 #define MuonPRDTEST_CSCPRDVARIABLES_H
7 
10 
11 namespace MuonPRDTest{
13  public:
14  CSCPRDVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15 
16  ~CSCPRDVariables() = default;
17 
18  bool fill(const EventContext& ctx) override final;
19 
20  bool declare_keys() override final;
21 
22  private:
23  SG::ReadHandleKey<Muon::CscPrepDataContainer> m_key{};
24  ScalarBranch<unsigned int>& m_CSC_nPRD{parent().newScalar<unsigned int>("N_PRD_CSC")};
25  VectorBranch<float>& m_CSC_PRD_localPosX{parent().newVector<float>("PRD_CSC_localPosX")};
26  VectorBranch<float>& m_CSC_PRD_localPosY{parent().newVector<float>("PRD_CSC_localPosY")};
27  ThreeVectorBranch m_CSC_PRD_globalPos{parent(), "PRD_CSC_globalPos"};
29  VectorBranch<int>& m_CSC_PRD_charge{parent().newVector<int>("PRD_CSC_charge")};
31  };
32 };
33 
34 #endif // MuonPRDTEST_CSCPRDVARIABLES_H
MuonPRDTest::CSCPRDVariables
Definition: CSCPRDVariables.h:12
MuonPRDTest::CSCPRDVariables::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: CSCPRDVariables.cxx:14
MuonPRDTest::CSCPRDVariables::~CSCPRDVariables
~CSCPRDVariables()=default
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::CSCPRDVariables::m_CSC_nPRD
ScalarBranch< unsigned int > & m_CSC_nPRD
Definition: CSCPRDVariables.h:24
MuonVal::VectorBranch< float >
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::CSCPRDVariables::CSCPRDVariables
CSCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: CSCPRDVariables.cxx:10
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_charge
VectorBranch< int > & m_CSC_PRD_charge
Definition: CSCPRDVariables.h:29
MuonPRDTest::CSCPRDVariables::declare_keys
bool declare_keys() override final
Definition: CSCPRDVariables.cxx:12
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
Muon::CscPrepDataContainer
MuonPrepDataContainerT< CscPrepData > CscPrepDataContainer
Definition: MuonPrepDataContainer.h:98
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_localPosY
VectorBranch< float > & m_CSC_PRD_localPosY
Definition: CSCPRDVariables.h:26
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_id
CscIdentifierBranch m_CSC_PRD_id
Definition: CSCPRDVariables.h:30
PrdTesterModule.h
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_localPosX
VectorBranch< float > & m_CSC_PRD_localPosX
Definition: CSCPRDVariables.h:25
CscPrepDataContainer.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_time
VectorBranch< int > & m_CSC_PRD_time
Definition: CSCPRDVariables.h:28
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::CSCPRDVariables::m_CSC_PRD_globalPos
ThreeVectorBranch m_CSC_PRD_globalPos
Definition: CSCPRDVariables.h:27
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition: IdentifierBranch.h:69
MuonPRDTest::CSCPRDVariables::m_key
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_key
Definition: CSCPRDVariables.h:23