ATLAS Offline Software
TrackSummaryModule.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONPRDTESTR4_TRACKSUMMARYMODULE_H
5 #define MUONPRDTESTR4_TRACKSUMMARYMODULE_H
6 
11 
12 
13 namespace MuonValR4{
16  class TrackSummaryValueBranch : public MuonVal::VectorBranch<std::uint8_t> {
17  public:
30  const std::string& collName,
31  Category cat,
32  Status status,
34  bool isSmall);
38  private:
41  LayerIndex m_layer{LayerIndex::LayerIndexMax};
42  bool m_isSmall{false};
43  };
44 
46  public:
49  const std::string& collName,
50  const MuonR4::ITrackSummaryTool* summaryTool);
53  bool fill(const EventContext& ctx) override;
55  bool init() override;
56 
58 
59  void push_back(const EventContext& ctx, const ConstTrack_t track);
60  void push_back(const EventContext& ctx, const MuonR4::MsTrackSeed& seed);
62 
63 
64  private:
65  using ValuePtr_t = std::shared_ptr<TrackSummaryValueBranch>;
66  std::vector<ValuePtr_t> m_values{};
68 
69  };
70 }
71 
72 #endif
MuonR4::ITrackSummaryTool
Interface tool to calculate the hit summary of tracks & track seeds in the MuonSpectrometer.
Definition: MuonSpectrometer/MuonPhaseII/MuonRecToolInterfacesR4/MuonRecToolInterfacesR4/ITrackSummaryTool.h:24
Muon::MuonStationIndex::LayerIndex
LayerIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:38
TesterModuleBase.h
MuonVal::IMuonTesterBranch::tree
virtual TTree * tree()=0
Returns the pointer to the underlying TTree object.
MuonValR4::TrackSummaryModule::m_values
std::vector< ValuePtr_t > m_values
Definition: TrackSummaryModule.h:66
MuonValR4::TrackSummaryValueBranch::m_cat
Category m_cat
Definition: TrackSummaryModule.h:39
MuonValR4::TrackSummaryValueBranch::push_back
void push_back(const MuonR4::HitSummary &summary)
push back the assigned hit summary value
Definition: TrackSummaryModule.cxx:33
MuonR4::MsTrackSeed
Definition: MsTrackSeed.h:18
MuonVal::MuonTesterBranch
Definition: MuonTesterBranch.h:21
HitSummary.h
MuonValR4::TrackSummaryModule::fill
bool fill(const EventContext &ctx) override
Clears vector in cases that it has not been updated in this event Returns false if the vector has not...
Definition: TrackSummaryModule.cxx:67
MuonVal::VectorBranch
Definition: VectorBranch.h:14
MuonValR4::TrackSummaryModule
Definition: TrackSummaryModule.h:45
MuonR4::HitSummary::HitCategory::nCategories
@ nCategories
Trigger phi hits (Tgc, Rpc)
ITrackSummaryTool.h
MuonValR4::TrackSummaryModule::ConstTrack_t
MuonR4::ITrackSummaryTool::ConstTrack_t ConstTrack_t
Definition: TrackSummaryModule.h:57
MuonR4::ITrackSummaryTool::ConstTrack_t
ActsTrk::TrackContainer::ConstTrackProxy ConstTrack_t
Abrivation of the Track proxy.
Definition: MuonSpectrometer/MuonPhaseII/MuonRecToolInterfacesR4/MuonRecToolInterfacesR4/ITrackSummaryTool.h:32
MuonValR4::TrackSummaryValueBranch
Helper branch class to dump a pick a single hit summary value from the overall summary & to dump it i...
Definition: TrackSummaryModule.h:16
MuonValR4::TrackSummaryModule::init
bool init() override
Initialized the Branch.
Definition: TrackSummaryModule.cxx:70
MuonR4::HitSummary::Status::MaxValue
@ MaxValue
Expected hit but missing.
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MuonValR4::TrackSummaryModule::TrackSummaryModule
TrackSummaryModule(MuonVal::MuonTesterTree &parent, const std::string &collName, const MuonR4::ITrackSummaryTool *summaryTool)
Constructor.
Definition: TrackSummaryModule.cxx:38
MuonR4::HitSummary::HitCategory
HitCategory
Category of the hit.
Definition: HitSummary.h:28
MuonValR4::TrackSummaryModule::m_summaryTool
const MuonR4::ITrackSummaryTool * m_summaryTool
Definition: TrackSummaryModule.h:67
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::TrackSummaryValueBranch::m_layer
LayerIndex m_layer
Definition: TrackSummaryModule.h:41
MuonValR4::TrackSummaryModule::ValuePtr_t
std::shared_ptr< TrackSummaryValueBranch > ValuePtr_t
Definition: TrackSummaryModule.h:65
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonR4::HitSummary::Status
Status
Contribution to the track fit.
Definition: HitSummary.h:35
MuonR4::HitSummary
Summary struct to hold the hit counts on the track per MS layer.
Definition: HitSummary.h:21
merge.status
status
Definition: merge.py:16
xAOD::track
@ track
Definition: TrackingPrimitives.h:513
MuonR4::HitSummary::LayerIndex
Muon::MuonStationIndex::LayerIndex LayerIndex
Abrivation of the layer index.
Definition: HitSummary.h:24
MuonValR4::TrackSummaryModule::push_back
void push_back(const EventContext &ctx, const ConstTrack_t track)
Definition: TrackSummaryModule.cxx:74
MuonValR4::TrackSummaryValueBranch::TrackSummaryValueBranch
TrackSummaryValueBranch(TTree *tree, const std::string &collName, Category cat, Status status, LayerIndex layer, bool isSmall)
Constructor taking the reference to the tree & the summary values together with an overall collection...
Definition: TrackSummaryModule.cxx:25
TrackContainer.h
MuonValR4::TrackSummaryValueBranch::m_status
Status m_status
Definition: TrackSummaryModule.h:40
Muon::MuonStationIndex::isSmall
bool isSmall(const ChIndex index)
Returns true if the chamber index is in a small sector.
MuonValR4::TrackSummaryValueBranch::m_isSmall
bool m_isSmall
Definition: TrackSummaryModule.h:42
SCT_Monitoring::summary
@ summary
Definition: SCT_MonitoringNumbers.h:65