ATLAS Offline Software
Loading...
Searching...
No Matches
SCTLorentzMonAlg.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCTLORENTZMONALG_H
8#define SCTLORENTZMONALG_H
9
11
20
21
22class SCT_ID;
23
25 public:
26 SCTLorentzMonAlg(const std::string& name, ISvcLocator* pSvcLocator);
27 virtual ~SCTLorentzMonAlg() = default;
28 virtual StatusCode initialize() override final;
29 virtual StatusCode fillHistograms(const EventContext& ctx) const override final;
30
31 private:
33 enum Sides { side0, side1, nSides };
34
35 bool m_hasBeamCondSvc = false;
36
37 const SCT_ID* m_pSCTHelper{nullptr};
38
39 ToolHandle<Trk::ITrackSummaryTool> m_trackSummaryTool{this, "TrackSummaryTool", "InDetTrackSummaryTool"};
40 ToolHandle<Trk::IPRDtoTrackMapTool> m_assoTool{this, "AssociationTool", "InDet::InDetPRDtoTrackMapToolGangedPixels" };
41 ToolHandle<Trk::ITrackHoleSearchTool> m_holeSearchTool{this, "HoleSearch", "InDet::InDetTrackHoleSearchTool"};
42
43 SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey {this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
44
46 SG::ReadHandleKey<TrackCollection> m_tracksName{this, "tracksName", "CombinedInDetTracks"};
47 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
48
49 BooleanProperty m_rejectSharedHits{this, "RejectSharedHits", false};
50
51 int findAnglesToWaferSurface(const float (&vec)[3],
52 const float& sinAlpha,
53 const Identifier& id,
55 float& theta,
56 float& phi) const;
57};
58
59#endif // SCTLORENTZMONALG_H
Scalar phi() const
phi method
Scalar theta() const
theta method
std::vector< size_t > vec
Property holding a SG store/key/clid from which a ReadHandle is made.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Class to hold the SiDetectorElement objects to be put in the detector store.
ToolHandle< Trk::ITrackSummaryTool > m_trackSummaryTool
virtual StatusCode fillHistograms(const EventContext &ctx) const override final
adds event to the monitoring histograms
const SCT_ID * m_pSCTHelper
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
ToolHandle< Trk::ITrackHoleSearchTool > m_holeSearchTool
BooleanProperty m_rejectSharedHits
SG::ReadHandleKey< TrackCollection > m_tracksName
Name of the Track collection to use.
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
virtual ~SCTLorentzMonAlg()=default
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.
void initialize()
#define private