ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
MuonPRDTest
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
8
#include "
MuonPRDTest/PrdTesterModule.h
"
9
#include "
MuonRDO/CscRawDataContainer.h
"
10
#include "
MuonCSC_CnvTools/ICSC_RDO_Decoder.h
"
11
#include "
MuonIdHelpers/CscIdHelper.h
"
12
13
namespace
MuonPRDTest
{
14
class
CSCRDOVariables
:
public
PrdTesterModule
{
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
}
31
SG::ReadHandleKey<CscRawDataContainer>
m_key
{};
32
const
CscIdHelper
*
m_CscIdHelper
{
nullptr
};
33
const
Muon::ICSC_RDO_Decoder
*
m_rdo_decoder
{
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"
)};
37
VectorBranch<int>
&
m_CSC_rdo_time
{
parent
().
newVector
<
int
>(
"RDO_CSC_time"
)};
38
ThreeVectorBranch
m_CSC_rdo_globalPos
{
parent
(),
"RDO_CSC_globalPos"
};
39
CscIdentifierBranch
m_CSC_rdo_id
{
parent
(),
"RDO_CSC"
};
40
};
41
};
42
43
#endif
// MuonPRDTEST_CSCRDOVARIABLES_H
CscIdHelper.h
CscRawDataContainer.h
ICSC_RDO_Decoder.h
PrdTesterModule.h
CscIdHelper
Definition
CscIdHelper.h:52
MuonIdHelper
Definition
MuonIdHelper.h:77
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_globalPos
ThreeVectorBranch m_CSC_rdo_globalPos
Definition
CSCRDOVariables.h:38
MuonPRDTest::CSCRDOVariables::declare_keys
bool declare_keys() override final
Definition
CSCRDOVariables.cxx:14
MuonPRDTest::CSCRDOVariables::setHelper
void setHelper(const MuonIdHelper *idhelper)
Definition
CSCRDOVariables.h:25
MuonPRDTest::CSCRDOVariables::m_key
SG::ReadHandleKey< CscRawDataContainer > m_key
Definition
CSCRDOVariables.h:31
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::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_CSC_nRDO
ScalarBranch< unsigned int > & m_CSC_nRDO
Definition
CSCRDOVariables.h:34
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_localPosX
VectorBranch< float > & m_CSC_rdo_localPosX
Definition
CSCRDOVariables.h:35
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_id
CscIdentifierBranch m_CSC_rdo_id
Definition
CSCRDOVariables.h:39
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_localPosY
VectorBranch< float > & m_CSC_rdo_localPosY
Definition
CSCRDOVariables.h:36
MuonPRDTest::CSCRDOVariables::m_rdo_decoder
const Muon::ICSC_RDO_Decoder * m_rdo_decoder
Definition
CSCRDOVariables.h:33
MuonPRDTest::CSCRDOVariables::~CSCRDOVariables
~CSCRDOVariables()=default
MuonPRDTest::CSCRDOVariables::m_CSC_rdo_time
VectorBranch< int > & m_CSC_rdo_time
Definition
CSCRDOVariables.h:37
MuonPRDTest::CSCRDOVariables::m_CscIdHelper
const CscIdHelper * m_CscIdHelper
Definition
CSCRDOVariables.h:32
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonVal::CscIdentifierBranch
Branch to store all information of the CscIdentifier.
Definition
IdentifierBranch.h:69
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
Muon::ICSC_RDO_Decoder
This class provides conversion from RDO data to CSC RDO Author: Ketevi A.
Definition
ICSC_RDO_Decoder.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
const
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0