ATLAS Offline Software
sTGCDigitVariables.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_sTGCDigitVARIABLES_H
6 #define MuonPRDTEST_sTGCDigitVARIABLES_H
7 
10 
11 namespace MuonPRDTest{
13  public:
14  sTgcDigitVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl);
15 
16  ~sTgcDigitVariables() = default;
17 
18  bool fill(const EventContext& ctx) override final;
19 
20  bool declare_keys() override final;
21 
22  private:
23  SG::ReadHandleKey<sTgcDigitContainer> m_key{};
24  ScalarBranch<unsigned int>& m_NSWsTGC_nDigits{parent().newScalar<unsigned int>("N_Digits_sTGC")};
25  VectorBranch<float>& m_NSWsTGC_dig_localPosX{parent().newVector<float>("Digits_sTGC_localPosX")};
26  VectorBranch<float>& m_NSWsTGC_dig_localPosY{parent().newVector<float>("Digits_sTGC_localPosY")};
27  VectorBranch<double>& m_NSWsTGC_dig_time{parent().newVector<double>("Digits_sTGC_time")};
28  VectorBranch<int>& m_NSWsTGC_dig_bctag{parent().newVector<int>("Digits_sTGC_bctag")};
29  VectorBranch<double>& m_NSWsTGC_dig_charge{parent().newVector<double>("Digits_sTGC_charge")};
30  VectorBranch<bool>& m_NSWsTGC_dig_isDead{parent().newVector<bool>("Digits_sTGC_isDead")};
31  VectorBranch<bool>& m_NSWsTGC_dig_isPileup{parent().newVector<bool>("Digits_sTGC_isPileup")};
32  VectorBranch<int>& m_NSWsTGC_dig_channelNumber{parent().newVector<int>("Digits_sTGC_channelNumber")};
33  ThreeVectorBranch m_NSWsTGC_dig_globalPos{parent(), "Digits_sTGC_globalPos"};
34  ThreeVectorBranch m_NSWsTGC_dig_PadglobalCornerPos{parent(), "Digits_sTGC_PadglobalCornerPos"};
35  VectorBranch<float>& m_NSWsTGC_dig_channelPosX{parent().newVector<float>("Digits_sTGC_localPosX")};
36  VectorBranch<float>& m_NSWsTGC_dig_channelPosY{parent().newVector<float>("Digits_sTGC_localPosY")};
38  };
39 };
40 #endif // MuonPRDTEST_sTGCDigitVARIABLES_H
sTgcDigitContainer
Use IdentifiableContainer with sTgcDigitCollection.
Definition: sTgcDigitContainer.h:50
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_id
sTgcIdentifierBranch m_NSWsTGC_dig_id
Definition: sTGCDigitVariables.h:37
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonVal::sTgcIdentifierBranch
Branch to store all information of the sTgcIdentifier.
Definition: IdentifierBranch.h:96
MuonPRDTest::sTgcDigitVariables::declare_keys
bool declare_keys() override final
Definition: sTGCDigitVariables.cxx:13
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_isPileup
VectorBranch< bool > & m_NSWsTGC_dig_isPileup
Definition: sTGCDigitVariables.h:31
MuonPRDTest::sTgcDigitVariables::sTgcDigitVariables
sTgcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Definition: sTGCDigitVariables.cxx:10
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_bctag
VectorBranch< int > & m_NSWsTGC_dig_bctag
Definition: sTGCDigitVariables.h:28
MuonPRDTest::sTgcDigitVariables::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: sTGCDigitVariables.cxx:14
MuonVal::VectorBranch< float >
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_globalPos
ThreeVectorBranch m_NSWsTGC_dig_globalPos
Definition: sTGCDigitVariables.h:33
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_charge
VectorBranch< double > & m_NSWsTGC_dig_charge
Definition: sTGCDigitVariables.h:29
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_channelNumber
VectorBranch< int > & m_NSWsTGC_dig_channelNumber
Definition: sTGCDigitVariables.h:32
MuonPRDTest::sTgcDigitVariables::~sTgcDigitVariables
~sTgcDigitVariables()=default
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_nDigits
ScalarBranch< unsigned int > & m_NSWsTGC_nDigits
Definition: sTGCDigitVariables.h:24
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_time
VectorBranch< double > & m_NSWsTGC_dig_time
Definition: sTGCDigitVariables.h:27
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_PadglobalCornerPos
ThreeVectorBranch m_NSWsTGC_dig_PadglobalCornerPos
Definition: sTGCDigitVariables.h:34
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_localPosX
VectorBranch< float > & m_NSWsTGC_dig_localPosX
Definition: sTGCDigitVariables.h:25
PrdTesterModule.h
MuonVal::ScalarBranch< unsigned int >
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonPRDTest::sTgcDigitVariables
Definition: sTGCDigitVariables.h:12
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::sTgcDigitVariables::m_NSWsTGC_dig_channelPosX
VectorBranch< float > & m_NSWsTGC_dig_channelPosX
Definition: sTGCDigitVariables.h:35
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_channelPosY
VectorBranch< float > & m_NSWsTGC_dig_channelPosY
Definition: sTGCDigitVariables.h:36
sTgcDigitContainer.h
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_localPosY
VectorBranch< float > & m_NSWsTGC_dig_localPosY
Definition: sTGCDigitVariables.h:26
MuonPRDTest::sTgcDigitVariables::m_key
SG::ReadHandleKey< sTgcDigitContainer > m_key
Definition: sTGCDigitVariables.h:23
MuonPRDTest::sTgcDigitVariables::m_NSWsTGC_dig_isDead
VectorBranch< bool > & m_NSWsTGC_dig_isDead
Definition: sTGCDigitVariables.h:30