ATLAS Offline Software
CSCDigitVariables.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_CSCDigitVARIABLES_H
6 #define MuonPRDTEST_CSCDigitVARIABLES_H
7 
10 namespace MuonPRDTest{
12  public:
13  CscDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14 
15  ~CscDigitVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<CscDigitContainer> m_key{};
23  ScalarBranch<unsigned int>& m_CSC_nDigits{parent().newScalar<unsigned int>("N_Digits_CSC")};
24  VectorBranch<float>& m_CSC_dig_localPosX{parent().newVector<float>("Digits_CSC_localPosX")};
25  VectorBranch<float>& m_CSC_dig_localPosY{parent().newVector<float>("Digits_CSC_localPosY")};
26  ThreeVectorBranch m_CSC_dig_globalPos{parent(), "Digits_CSC_globalPos"};
28  };
29 };
30 
31 #endif // MuonPRDTEST_CSCDigitVARIABLES_H
CscDigitContainer
Use IdentifiableContainer with CscDigitCollection.
Definition: CscDigitContainer.h:50
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::CscDigitVariables::m_CSC_dig_globalPos
ThreeVectorBranch m_CSC_dig_globalPos
Definition: CSCDigitVariables.h:26
MuonVal::VectorBranch< float >
MuonPRDTest::CscDigitVariables
Definition: CSCDigitVariables.h:11
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::CscDigitVariables::m_key
SG::ReadHandleKey< CscDigitContainer > m_key
Definition: CSCDigitVariables.h:22
MuonPRDTest::CscDigitVariables::m_CSC_dig_localPosX
VectorBranch< float > & m_CSC_dig_localPosX
Definition: CSCDigitVariables.h:24
MuonPRDTest::CscDigitVariables::declare_keys
bool declare_keys() override final
Definition: CSCDigitVariables.cxx:11
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::CscDigitVariables::m_CSC_dig_localPosY
VectorBranch< float > & m_CSC_dig_localPosY
Definition: CSCDigitVariables.h:25
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::CscDigitVariables::CscDigitVariables
CscDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: CSCDigitVariables.cxx:9
MuonPRDTest::CscDigitVariables::m_CSC_nDigits
ScalarBranch< unsigned int > & m_CSC_nDigits
Definition: CSCDigitVariables.h:23
PrdTesterModule.h
MuonPRDTest::CscDigitVariables::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: CSCDigitVariables.cxx:13
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
CscDigitContainer.h
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition: IdentifierBranch.h:69
MuonPRDTest::CscDigitVariables::m_CSC_dig_id
CscIdentifierBranch m_CSC_dig_id
Definition: CSCDigitVariables.h:27
MuonPRDTest::CscDigitVariables::~CscDigitVariables
~CscDigitVariables()=default