ATLAS Offline Software
PixelToTPIDTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
11 #ifndef INDETPIXELTOTPIDTOOL_H
12 #define INDETPIXELTOTPIDTOOL_H
13 
14 #include "GaudiKernel/ServiceHandle.h"
16 
19 
23 
24 class AtlasDetectorID;
25 class Identifier;
26 class PixelID;
27 class IBLParameterSvc;
28 
29 namespace Trk {
30  class Track;
31 }
32 
33 namespace InDet {
34  class PixelToTPIDTool : virtual public Trk::IPixelToTPIDTool, public AthAlgTool {
35  public:
36  PixelToTPIDTool(const std::string&,const std::string&,const IInterface*);
37 
38  virtual ~PixelToTPIDTool ();
39  virtual StatusCode initialize() override;
40  virtual StatusCode finalize () override;
41 
42  virtual float dEdx(const EventContext& ctx,
43  const Trk::Track& track,
44  int& nUsedHits,
45  int& nUsedIBLOverflowHits) const override final;
46 
47  virtual std::vector<float> getLikelihoods(
48  const EventContext& ctx,
49  double dedx,
50  double p,
51  int nGoodPixels) const override final;
52 
53  virtual float getMass(const EventContext& ctx,
54  double dedx,
55  double p,
56  int nGoodPixels) const override final;
57 
58  private:
62 
64  {this, "PixelChargeCalibCondData", "PixelChargeCalibCondData", "ChargeCalibration data, for ToT overflow setting"};
65 
67  {this, "PixeldEdxData", "PixeldEdxData", "Output key of pixel dEdx"};
68  };
69 } // end of namespace
70 
71 #endif
InDet::PixelToTPIDTool::dEdx
virtual float dEdx(const EventContext &ctx, const Trk::Track &track, int &nUsedHits, int &nUsedIBLOverflowHits) const override final
particle identification function returning a probability.
Definition: PixelToTPIDTool.cxx:84
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
IPixelToTPIDTool.h
InDet::PixelToTPIDTool::m_IBLParameterSvc
ServiceHandle< IBLParameterSvc > m_IBLParameterSvc
Definition: PixelToTPIDTool.h:59
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
InDet::PixelToTPIDTool::m_pixelid
const PixelID * m_pixelid
Definition: PixelToTPIDTool.h:60
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
Trk::IPixelToTPIDTool
abstract interface for identification of particles based on
Definition: IPixelToTPIDTool.h:26
InDet::PixelToTPIDTool::finalize
virtual StatusCode finalize() override
Definition: PixelToTPIDTool.cxx:74
InDet::PixelToTPIDTool::getMass
virtual float getMass(const EventContext &ctx, double dedx, double p, int nGoodPixels) const override final
Definition: PixelToTPIDTool.cxx:255
IBLParameterSvc
Definition: IBLParameterSvc.h:30
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixeldEdxData.h
Store pixel dEdx data in PixeldEdxData.
AthAlgTool.h
InDet::PixelToTPIDTool::m_conversionfactor
double m_conversionfactor
Definition: PixelToTPIDTool.h:61
InDet::PixelToTPIDTool::PixelToTPIDTool
PixelToTPIDTool(const std::string &, const std::string &, const IInterface *)
Definition: PixelToTPIDTool.cxx:35
ParticleHypothesis.h
ReadCondHandleKey.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
InDet::PixelToTPIDTool::getLikelihoods
virtual std::vector< float > getLikelihoods(const EventContext &ctx, double dedx, double p, int nGoodPixels) const override final
Definition: PixelToTPIDTool.cxx:245
SG::ReadCondHandleKey< PixelChargeCalibCondData >
InDet::PixelToTPIDTool::m_dedxKey
SG::ReadCondHandleKey< PixeldEdxData > m_dedxKey
Definition: PixelToTPIDTool.h:67
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
InDet::PixelToTPIDTool
Definition: PixelToTPIDTool.h:34
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
InDet::PixelToTPIDTool::initialize
virtual StatusCode initialize() override
Definition: PixelToTPIDTool.cxx:54
AthAlgTool
Definition: AthAlgTool.h:26
PixelID
Definition: PixelID.h:67
PixelChargeCalibCondData.h
InDet::PixelToTPIDTool::m_moduleDataKey
SG::ReadCondHandleKey< PixelChargeCalibCondData > m_moduleDataKey
Definition: PixelToTPIDTool.h:64
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
InDet::PixelToTPIDTool::~PixelToTPIDTool
virtual ~PixelToTPIDTool()
ServiceHandle< IBLParameterSvc >