ATLAS Offline Software
Loading...
Searching...
No Matches
SharedHitMapper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKINGTOOLS_SHAREDHITMAPPER_H
6#define TRACKINGTOOLS_SHAREDHITMAPPER_H
7
8/******************************************************
9 @class SharedHitMaper
10********************************************************/
11
12//#include "GaudiKernel/Algorithm.h"
15
16//namespace xAOD { class TrackParticle; }
17
18class PixelID;
19class SCT_ID;
20
22
23public:
24 SharedHitMapper (const std::string& name, ISvcLocator* pSvcLocator);
25 virtual ~SharedHitMapper();
26
27 virtual StatusCode initialize();
28 virtual StatusCode execute();
29 virtual StatusCode finalize();
30
31 int numberSharedBLayer() const; // return info for current track
32 int numberSharedPix() const;
33 int numberSharedSct() const;
34
35private:
38 double m_deltaRCut;
43
44 static const int m_nbpl = 3;
45 static const int m_nbpd = 3;
46 static const int m_nbsl = 4;
47 static const int m_nbsd = 9;
52};
53
54
55typedef std::map<const xAOD::TrackParticle* const, int> Assoc;
56typedef Assoc::const_iterator AssocIter;
57
58#include <map>
59//namespace xAOD { class TrackParticle; }
61 public:
64 void add(const xAOD::TrackParticle* const trk, int shPattern);
65 void add(const xAOD::TrackParticle* const trk, int shB, int shP, int shS);
66 void check(const xAOD::TrackParticle* const trk) const;
67 int size() const { return m_assocs.size(); }
68 void dump() const;
69 int numberSharedBLayer(const xAOD::TrackParticle* const trk) const;
70 int numberSharedPix(const xAOD::TrackParticle* const trk) const;
71 int numberSharedSct(const xAOD::TrackParticle* const trk) const;
72 private:
74};
76CLASS_DEF(SharedHitTrackAssoc, 491827624, 0)
77#endif // TRACKINGTOOLS_SHAREDHITMAPPER_H
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Assoc::const_iterator AssocIter
std::map< const xAOD::TrackParticle *const, int > Assoc
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
bool m_qualOrder
pairs of tracks with dR>dRCut not considered
int m_nsl[m_nbsl]
static const int m_nbsl
const PixelID * m_pixelId
if true use shared info from track summary instead of recomputing them
std::string m_inputTrackCollection
virtual StatusCode execute()
int numberSharedPix() const
int numberSharedSct() const
int m_npl[m_nbpl]
static const int m_nbpl
const SCT_ID * m_sctId
virtual StatusCode initialize()
int m_nsd[m_nbsd]
int m_npd[m_nbpd]
std::string m_sharedHitMapLocation
location of inputTracks in StoreGate
static const int m_nbsd
static const int m_nbpd
double m_deltaRCut
location of sharedHitMap in StoreGate
virtual ~SharedHitMapper()
SharedHitMapper(const std::string &name, ISvcLocator *pSvcLocator)
int numberSharedBLayer() const
virtual StatusCode finalize()
void check(const xAOD::TrackParticle *const trk) const
int numberSharedSct(const xAOD::TrackParticle *const trk) const
int numberSharedBLayer(const xAOD::TrackParticle *const trk) const
void add(const xAOD::TrackParticle *const trk, int shPattern)
int numberSharedPix(const xAOD::TrackParticle *const trk) const
TrackParticle_v1 TrackParticle
Reference the current persistent version: