ATLAS Offline Software
CSCRDOVariables.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_CSCRDOVARIABLES_H
6 #define MuonPRDTEST_CSCRDOVARIABLES_H
7 
12 
13 namespace MuonPRDTest{
15  public:
16  CSCRDOVariables(MuonTesterTree& tree, const std::string& container_name, MSG::Level msglvl, const MuonIdHelper* idhelper, const Muon::ICSC_RDO_Decoder* rdo_decoder);
17 
18  ~CSCRDOVariables() = default;
19 
20  bool fill(const EventContext& ctx) override final;
21 
22  bool declare_keys() override final;
23 
24  private:
25  void setHelper(const MuonIdHelper* idhelper){
26  m_CscIdHelper = dynamic_cast<const CscIdHelper*>(idhelper);
27  if(!m_CscIdHelper) {
28  throw std::runtime_error("casting IdHelper to CscIdHelper failed");
29  }
30  }
32  const CscIdHelper* m_CscIdHelper{nullptr};
34  ScalarBranch<unsigned int>& m_CSC_nRDO{parent().newScalar<unsigned int>("N_RDO_CSC")};
35  VectorBranch<float>& m_CSC_rdo_localPosX{parent().newVector<float>("RDO_CSC_localPosX")};
36  VectorBranch<float>& m_CSC_rdo_localPosY{parent().newVector<float>("RDO_CSC_localPosY")};
38  ThreeVectorBranch m_CSC_rdo_globalPos{parent(), "RDO_CSC_globalPos"};
40  };
41 };
42 
43 #endif // MuonPRDTEST_CSCRDOVARIABLES_H
CscIdHelper.h
MuonPRDTest::CSCRDOVariables::declare_keys
bool declare_keys() override final
Definition: CSCRDOVariables.cxx:14
ICSC_RDO_Decoder.h
Muon::ICSC_RDO_Decoder
This class provides conversion from RDO data to CSC RDO Author: Ketevi A.
Definition: ICSC_RDO_Decoder.h:21
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_globalPos
ThreeVectorBranch m_CSC_rdo_globalPos
Definition: CSCRDOVariables.h:38
MuonPRDTest::CSCRDOVariables
Definition: CSCRDOVariables.h:14
CscRawDataContainer.h
MuonVal::VectorBranch< float >
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< CscRawDataContainer >
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_localPosX
VectorBranch< float > & m_CSC_rdo_localPosX
Definition: CSCRDOVariables.h:35
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonPRDTest::CSCRDOVariables::m_rdo_decoder
const Muon::ICSC_RDO_Decoder * m_rdo_decoder
Definition: CSCRDOVariables.h:33
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_time
VectorBranch< int > & m_CSC_rdo_time
Definition: CSCRDOVariables.h:37
MuonIdHelper
Definition: MuonIdHelper.h:80
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_id
CscIdentifierBranch m_CSC_rdo_id
Definition: CSCRDOVariables.h:39
MuonPRDTest::CSCRDOVariables::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: CSCRDOVariables.cxx:16
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_localPosY
VectorBranch< float > & m_CSC_rdo_localPosY
Definition: CSCRDOVariables.h:36
MuonPRDTest::PrdTesterModule
Definition: PrdTesterModule.h:15
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)
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
CscIdHelper
Definition: CscIdHelper.h:52
MuonPRDTest::CSCRDOVariables::CSCRDOVariables
CSCRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl, const MuonIdHelper *idhelper, const Muon::ICSC_RDO_Decoder *rdo_decoder)
Definition: CSCRDOVariables.cxx:12
MuonPRDTest::CSCRDOVariables::m_CscIdHelper
const CscIdHelper * m_CscIdHelper
Definition: CSCRDOVariables.h:32
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::CSCRDOVariables::m_key
SG::ReadHandleKey< CscRawDataContainer > m_key
Definition: CSCRDOVariables.h:31
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition: IdentifierBranch.h:69
MuonPRDTest::CSCRDOVariables::m_CSC_nRDO
ScalarBranch< unsigned int > & m_CSC_nRDO
Definition: CSCRDOVariables.h:34
MuonPRDTest::CSCRDOVariables::~CSCRDOVariables
~CSCRDOVariables()=default
MuonPRDTest::CSCRDOVariables::setHelper
void setHelper(const MuonIdHelper *idhelper)
Definition: CSCRDOVariables.h:25