ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTruthHitsFillerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
13#define MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
14
16
17#include "GaudiKernel/ServiceHandle.h"
22
23#include <vector>
24
25namespace D3PD {
26
31 : public BlockFillerTool<Types<TrackRecord, xAOD::TruthParticle> >
32{
33public:
35
36
43 MuonTruthHitsFillerTool (const std::string& type,
44 const std::string& name,
45 const IInterface* parent);
46
47
49 virtual StatusCode initialize();
50
51
53 virtual StatusCode book();
54
55
59 virtual StatusCode fill (const TrackRecord& p);
60
61
65 virtual StatusCode fill (const xAOD::TruthParticle& p);
66
67
68private:
69 StatusCode fillHitCounts (int);
70
71 int* m_nprecLayers{nullptr};
72 int* m_nphiLayers{nullptr};
73 int* m_ntrigEtaLayers{nullptr};
74 std::vector<int*> m_nprecHitsPerChamberLayer;
75 std::vector<int*> m_nphiHitsPerChamberLayer;
77
78 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
79 std::vector<std::string> m_PRD_TruthNames;
80};
81
82
83} // namespace D3PD
84
85
86#endif // not MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
A specialization of BlockFillerTool that can accept one of several types.
Type-safe wrapper for block filler tools.
Type-safe wrapper for block filler tools.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
std::vector< int * > m_nphiHitsPerChamberLayer
virtual StatusCode initialize()
Standard Gaudi initialize method.
BlockFillerTool< Types< TrackRecord, xAOD::TruthParticle > > Base
std::vector< std::string > m_PRD_TruthNames
MuonTruthHitsFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode book()
Book variables for this block.
virtual StatusCode fill(const TrackRecord &p)
Fill one block — type-safe version.
std::vector< int * > m_nprecHitsPerChamberLayer
std::vector< int * > m_ntrigEtaHitsPerChamberLayer
Block filler tool for noisy FEB information.
TruthParticle_v1 TruthParticle
Typedef to implementation.