ATLAS Offline Software
Loading...
Searching...
No Matches
SCTTracksMonAlg.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCTTRACKSMONALG_H
8#define SCTTRACKSMONALG_H
9
11
13
20
21#include "GaudiKernel/ToolHandle.h"
22
23//Standard C++
24#include <bitset>
25#include <string>
26#include <vector>
27
28class SCT_ID;
29
31 public:
32 SCTTracksMonAlg(const std::string& name, ISvcLocator* pSvcLocator);
33 virtual ~SCTTracksMonAlg() = default;
34 virtual StatusCode initialize() override final;
35 virtual StatusCode fillHistograms(const EventContext& ctx) const override final;
36
40
41 const std::string m_regionNames[3]{"EndCapC", "Barrel", "EndCapA"}; //3 Regions: This can be improved
42
43
45 static const std::string s_triggerNames[N_TRIGGER_TYPES];
46
47 // Data members, which are not changed after initialization
48 std::string m_stream{"/stat"};
49 std::string m_path{""};
50
51 // Data members, which are changed during event processing
52 // These have to be converted to local variables or be protected by std::atomic or std::mutex
53 // before or when this tool is migrated to the new AthenaMT compatible DQ framework.
54 mutable std::atomic_int m_numberOfEvents{0}; // This should be conveted to std::atomic_int in AthenaMT.
55
56
58 IntegerProperty m_trackHitCut{this, "trackHitCut", 3};
60 IntegerProperty m_checkrate{this, "CheckRate", 1000};
62 IntegerProperty m_evtsbins{this, "EvtsBins", 5000};
63
64 BooleanProperty m_useIDGlobal{this, "useIDGlobal", false};
65 BooleanProperty m_doTrigger{this, "doTrigger", false};
66 BooleanProperty m_doPositiveEndcap{this, "doPositiveEndcap", true};
67 BooleanProperty m_doNegativeEndcap{this, "doNegativeEndcap", true};
68 BooleanProperty m_doUnbiasedCalc{this, "doUnbiasedCalc", true};
69
71 SG::ReadHandleKey<TrackCollection> m_tracksName{this, "tracksName", "CombinedInDetTracks"};
72
73
74 //@name Tool and service members
76 ToolHandle<Trk::ITrackSummaryTool> m_trackSummaryTool{this, "TrackSummaryTool", "InDetTrackSummaryTool"};
77
79 ToolHandle<Trk::IResidualPullCalculator> m_residualPullCalculator{this, "ResPullCalc", "Trk::ResidualPullCalculator/ResidualPullCalculator"};
80 ToolHandle<Trk::IUpdator> m_updator{this, "KalmanUpdator", "Trk::KalmanUpdator/TrkKalmanUpdator", ""};
81
83 const SCT_ID* m_pSCTHelper{nullptr};
84
86 //@name Trigger related methods
87 //{
89 StatusCode checkTriggers(std::bitset<N_TRIGGER_TYPES>& firedTriggers) const;
91 bool hasTriggerFired(const unsigned int trigger, const std::bitset<N_TRIGGER_TYPES>& firedTriggers) const;
93
94 //@name Service methods
96
97 float calculatePull(const float, const float, const float) const;
98
100
101};
102
103#endif // SCTTRACKSMONALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
IntegerProperty m_evtsbins
Tracks vs evt.
IntegerProperty m_checkrate
CheckHists() frequency.
static const std::string s_triggerNames[N_TRIGGER_TYPES]
Abbreviations for level 1 trigger types.
virtual ~SCTTracksMonAlg()=default
SG::ReadHandleKey< TrackCollection > m_tracksName
Name of the Track collection to use.
const std::string m_regionNames[3]
ToolHandle< Trk::IUpdator > m_updator
BooleanProperty m_doTrigger
std::string m_path
ToolHandle< Trk::ITrackSummaryTool > m_trackSummaryTool
std::string m_stream
BooleanProperty m_useIDGlobal
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
Kalman Updator for SCT Unbiased states in Residual calculation.
IntegerProperty m_trackHitCut
Cut on number of SCT hits on track.
BooleanProperty m_doNegativeEndcap
BooleanProperty m_doUnbiasedCalc
std::atomic_int m_numberOfEvents
BooleanProperty m_doPositiveEndcap
virtual StatusCode fillHistograms(const EventContext &ctx) const override final
adds event to the monitoring histograms
const SCT_ID * m_pSCTHelper
SCT Helper class.
TriggerTypes
enumerated constant for the types of level 1 triggers, corresponds to the string m_triggerNames
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition TgcBase.h:6
void initialize()
#define private