5#ifndef MUONPRDTEST_SEGMENTVARIABLES_H
6#define MUONPRDTEST_SEGMENTVARIABLES_H
19 const std::string& containerKey,
20 const std::string& outName,
23 bool fill(
const EventContext& ctx)
override final;
29 bool addVariable(std::shared_ptr<IAuxElementDecorationBranch> br);
58 std::vector<std::shared_ptr<IAuxElementDecorationBranch>>
m_addBranches{};
60 std::unordered_map<const xAOD::MuonSegment*, unsigned int>
m_idxLookUp{};
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
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...
VectorBranch< char > & m_etaIdx
Station-eta index of the segment's precision hits.
VectorBranch< uint8_t > & m_nPrecHits
Number of precision hits i.e.
VectorBranch< uint8_t > & m_sector
MS-sector of the segment's precision hits.
ThreeVectorBranch m_dir
Global direction of the segment.
unsigned int push_back(const xAOD::MuonSegment &segment)
push back a particuar segment
VectorBranch< uint8_t > & m_nTrigEtaLayers
Number of trigger hits, i.e.
SegmentVariables(MuonTesterTree &tree, const std::string &containerKey, const std::string &outName, MSG::Level msglvl)
bool declare_keys() override final
VectorBranch< float > & m_chi2
chi 2 of the segment fit
VectorBranch< uint8_t > & m_chamberIdx
MS station of the segment.
VectorBranch< unsigned int > & m_nDoF
number of degrees of freedom
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_key
Store gate key of the segment container.
bool addVariable(std::shared_ptr< IAuxElementDecorationBranch > br)
std::unordered_map< const xAOD::MuonSegment *, unsigned int > m_idxLookUp
ThreeVectorBranch m_pos
Global position of the segment.
VectorBranch< uint8_t > & m_nTrigPhiLayers
Number of trigger hits, i.e.
std::vector< std::shared_ptr< IAuxElementDecorationBranch > > m_addBranches
std::string m_name
Name of the segment collection in the output collection.
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.
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonSegment_v1 MuonSegment
Reference the current persistent version: