ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace 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")};
40 };
41};
42
43#endif // MuonPRDTEST_CSCRDOVARIABLES_H
ThreeVectorBranch m_CSC_rdo_globalPos
bool declare_keys() override final
void setHelper(const MuonIdHelper *idhelper)
SG::ReadHandleKey< CscRawDataContainer > m_key
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...
CSCRDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl, const MuonIdHelper *idhelper, const Muon::ICSC_RDO_Decoder *rdo_decoder)
ScalarBranch< unsigned int > & m_CSC_nRDO
VectorBranch< float > & m_CSC_rdo_localPosX
CscIdentifierBranch m_CSC_rdo_id
VectorBranch< float > & m_CSC_rdo_localPosY
const Muon::ICSC_RDO_Decoder * m_rdo_decoder
VectorBranch< int > & m_CSC_rdo_time
const CscIdHelper * m_CscIdHelper
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Branch to store all information of the CscIdentifier.
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
ScalarBranch< T > & newScalar(const std::string &name)
This class provides conversion from RDO data to CSC RDO Author: Ketevi A.
Property holding a SG store/key/clid from which a ReadHandle is made.
#define private