ATLAS Offline Software
TGCSDOVariables.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_TGCSDOVARIABLES_H
6 #define MUONPRDTEST_TGCSDOVARIABLES_H
7 
10 namespace MuonPRDTest{
12  public:
13  TgcSDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
14 
15  ~TgcSDOVariables() = default;
16 
17  bool fill(const EventContext& ctx) override final;
18 
19  bool declare_keys() override final;
20 
21  private:
22  SG::ReadHandleKey<MuonSimDataCollection> m_key{};
23 
24  ScalarBranch<unsigned int>& m_tgc_nsdo{parent().newScalar<unsigned int>("nSDO_TGC")};
27  VectorBranch<int>& m_tgc_sdo_barcode{parent().newVector<int>("SDO_TGC_barcode")};
28  VectorBranch<float>& m_tgc_sdo_globaltime{parent().newVector<float>("SDO_TGC_global_time")};
29 
30  ThreeVectorBranch m_TGC_dig_globalPos{parent(), "SDO_TGC_globalPos"};
31  VectorBranch<float>& m_tgc_sdo_localPosX{parent().newVector<float>("SDO_TGC_localPosX")};
32  VectorBranch<float>& m_tgc_sdo_localPosY{parent().newVector<float>("SDO_TGC_localPosY")};
33  };
34 };
35 #endif // TGCSDOVARIABLES_H
MuonVal::TgcIdentifierBranch
Branch to store all information of the TgcIdentifier.
Definition: IdentifierBranch.h:83
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_id
TgcIdentifierBranch m_tgc_sdo_id
Definition: TGCSDOVariables.h:25
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonPRDTest::TgcSDOVariables::~TgcSDOVariables
~TgcSDOVariables()=default
MuonPRDTest::TgcSDOVariables
Definition: TGCSDOVariables.h:11
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_word
VectorBranch< int > & m_tgc_sdo_word
Definition: TGCSDOVariables.h:26
MuonVal::VectorBranch< int >
MuonPRDTest::TgcSDOVariables::m_key
SG::ReadHandleKey< MuonSimDataCollection > m_key
Definition: TGCSDOVariables.h:22
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_localPosX
VectorBranch< float > & m_tgc_sdo_localPosX
Definition: TGCSDOVariables.h:31
MuonPRDTest::TgcSDOVariables::m_TGC_dig_globalPos
ThreeVectorBranch m_TGC_dig_globalPos
Definition: TGCSDOVariables.h:30
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_localPosY
VectorBranch< float > & m_tgc_sdo_localPosY
Definition: TGCSDOVariables.h:32
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonSimDataCollection
Definition: MuonSimDataCollection.h:21
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::TgcSDOVariables::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: TGCSDOVariables.cxx:12
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonPRDTest::TgcSDOVariables::m_tgc_nsdo
ScalarBranch< unsigned int > & m_tgc_nsdo
Definition: TGCSDOVariables.h:24
MuonPRDTest::TgcSDOVariables::declare_keys
bool declare_keys() override final
Definition: TGCSDOVariables.cxx:10
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_globaltime
VectorBranch< float > & m_tgc_sdo_globaltime
Definition: TGCSDOVariables.h:28
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::TgcSDOVariables::m_tgc_sdo_barcode
VectorBranch< int > & m_tgc_sdo_barcode
Definition: TGCSDOVariables.h:27
MuonSimDataCollection.h
MuonPRDTest::TgcSDOVariables::TgcSDOVariables
TgcSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: TGCSDOVariables.cxx:7