ATLAS Offline Software
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 
18 
19 
20 class SCT_ID;
21 
23  public:
24  SCTLorentzMonAlg(const std::string& name, ISvcLocator* pSvcLocator);
25  virtual ~SCTLorentzMonAlg() = default;
26  virtual StatusCode initialize() override final;
27  virtual StatusCode fillHistograms(const EventContext& ctx) const override final;
28 
29  private:
31  enum Sides { side0, side1, nSides };
32 
33  const SCT_ID* m_pSCTHelper{nullptr};
34 
35  ToolHandle<Trk::ITrackSummaryTool> m_trackSummaryTool{this, "TrackSummaryTool", "InDetTrackSummaryTool"};
36  ToolHandle<Trk::IPRDtoTrackMapTool> m_assoTool{this, "AssociationTool", "InDet::InDetPRDtoTrackMapToolGangedPixels" };
37 
39  SG::ReadHandleKey<TrackCollection> m_tracksName{this, "tracksName", "CombinedInDetTracks"};
40  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
41 
42  BooleanProperty m_rejectSharedHits{this, "RejectSharedHits", false};
43 
44  int findAnglesToWaferSurface(const float (&vec)[3],
45  const float& sinAlpha,
46  const Identifier& id,
48  float& theta,
49  float& phi) const;
50 };
51 
52 #endif // SCTLORENTZMONALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SCTLorentzMonAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCTLorentzMonAlg.h:40
ITrackSummaryTool.h
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
SCTLorentzMonAlg::nSides
@ nSides
Definition: SCTLorentzMonAlg.h:31
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
SCTLorentzMonAlg::findAnglesToWaferSurface
int findAnglesToWaferSurface(const float(&vec)[3], const float &sinAlpha, const Identifier &id, const InDetDD::SiDetectorElementCollection *elements, float &theta, float &phi) const
Definition: SCTLorentzMonAlg.cxx:237
SCTLorentzMonAlg::SCTLorentzMonAlg
SCTLorentzMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCTLorentzMonAlg.cxx:19
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
SCTLorentzMonAlg::Sides
Sides
Definition: SCTLorentzMonAlg.h:31
SCTLorentzMonAlg::m_tracksName
SG::ReadHandleKey< TrackCollection > m_tracksName
Name of the Track collection to use.
Definition: SCTLorentzMonAlg.h:39
SCTLorentzMonAlg::side1
@ side1
Definition: SCTLorentzMonAlg.h:31
SCTLorentzMonAlg::surface111
@ surface111
Definition: SCTLorentzMonAlg.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
SCTLorentzMonAlg::side0
@ side0
Definition: SCTLorentzMonAlg.h:31
TrackCollection.h
SCTLorentzMonAlg::initialize
virtual StatusCode initialize() override final
initialize
Definition: SCTLorentzMonAlg.cxx:23
SCTLorentzMonAlg::nSurfaces
@ nSurfaces
Definition: SCTLorentzMonAlg.h:30
SCTLorentzMonAlg::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition: SCTLorentzMonAlg.h:33
SCTLorentzMonAlg::surface100
@ surface100
Definition: SCTLorentzMonAlg.h:30
SCTLorentzMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override final
adds event to the monitoring histograms
Definition: SCTLorentzMonAlg.cxx:33
SCTLorentzMonAlg
Definition: SCTLorentzMonAlg.py:1
ReadCondHandleKey.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IPRDtoTrackMapTool.h
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
SCTLorentzMonAlg::m_trackSummaryTool
ToolHandle< Trk::ITrackSummaryTool > m_trackSummaryTool
Definition: SCTLorentzMonAlg.h:35
SCT_ID
Definition: SCT_ID.h:68
SCTLorentzMonAlg::SiliconSurface
SiliconSurface
Definition: SCTLorentzMonAlg.h:30
SCTLorentzMonAlg::~SCTLorentzMonAlg
virtual ~SCTLorentzMonAlg()=default
SCTLorentzMonAlg::m_assoTool
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool
Definition: SCTLorentzMonAlg.h:36
SCTLorentzMonAlg::m_rejectSharedHits
BooleanProperty m_rejectSharedHits
Definition: SCTLorentzMonAlg.h:42
Identifier
Definition: IdentifierFieldParser.cxx:14