ATLAS Offline Software
CSCSDOVariables.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_CSCSDOVARIABLES_H
6 #define MUONPRDTEST_CSCSDOVARIABLES_H
7 
10 namespace MuonPRDTest{
12  public:
13  CscSDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14 
15  ~CscSDOVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<CscSimDataCollection> m_key{};
23 
24  ScalarBranch<unsigned int>& m_csc_nsdo{parent().newScalar<unsigned int>("nSDO_CSC")};
27  VectorBranch<int>& m_csc_sdo_barcode{parent().newVector<int>("SDO_CSC_barcode")};
28  VectorBranch<double>& m_csc_sdo_charge{parent().newVector<double>("SDO_CSC_charge")};
29 
30  ThreeVectorBranch m_CSC_dig_globalPos{parent(), "SDO_CSC_globalPos"};
31  VectorBranch<float>& m_csc_sdo_localPosX{parent().newVector<float>("SDO_CSC_localPosX")};
32  VectorBranch<float>& m_csc_sdo_localPosY{parent().newVector<float>("SDO_CSC_localPosY")};
33  };
34 };
35 #endif // CSCSDOVARIABLES_H
MuonPRDTest::CscSDOVariables::m_csc_sdo_charge
VectorBranch< double > & m_csc_sdo_charge
Definition: CSCSDOVariables.h:28
MuonPRDTest::CscSDOVariables::m_csc_sdo_localPosX
VectorBranch< float > & m_csc_sdo_localPosX
Definition: CSCSDOVariables.h:31
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::CscSDOVariables::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: CSCSDOVariables.cxx:14
MuonPRDTest::CscSDOVariables::m_csc_sdo_localPosY
VectorBranch< float > & m_csc_sdo_localPosY
Definition: CSCSDOVariables.h:32
CscSimDataCollection.h
MuonPRDTest::CscSDOVariables::~CscSDOVariables
~CscSDOVariables()=default
MuonVal::VectorBranch< int >
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::CscSDOVariables::m_csc_sdo_barcode
VectorBranch< int > & m_csc_sdo_barcode
Definition: CSCSDOVariables.h:27
MuonPRDTest::CscSDOVariables::m_csc_sdo_id
CscIdentifierBranch m_csc_sdo_id
Definition: CSCSDOVariables.h:25
MuonPRDTest::CscSDOVariables::m_key
SG::ReadHandleKey< CscSimDataCollection > m_key
Definition: CSCSDOVariables.h:22
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
CscSimDataCollection
Definition: CscSimDataCollection.h:29
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonPRDTest::CscSDOVariables::m_CSC_dig_globalPos
ThreeVectorBranch m_CSC_dig_globalPos
Definition: CSCSDOVariables.h:30
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::CscSDOVariables::m_csc_sdo_word
VectorBranch< int > & m_csc_sdo_word
Definition: CSCSDOVariables.h:26
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::CscSDOVariables::m_csc_nsdo
ScalarBranch< unsigned int > & m_csc_nsdo
Definition: CSCSDOVariables.h:24
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition: IdentifierBranch.h:69
MuonPRDTest::CscSDOVariables
Definition: CSCSDOVariables.h:11
MuonPRDTest::CscSDOVariables::CscSDOVariables
CscSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: CSCSDOVariables.cxx:9
MuonPRDTest::CscSDOVariables::declare_keys
bool declare_keys() override final
Definition: CSCSDOVariables.cxx:12