SiHitIdHelper.h 1.48 KB
Newer Older
1
/*
2
  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
4
5
6
7
8
*/

#ifndef INDETSIMEVENT_SIHITIDHELPER
#define INDETSIMEVENT_SIHITIDHELPER

//
9
// This is a helper class to build an identifing integer used by
10
// the simulation. It inherits from HitIdHelper, in order to get
11
12
13
// all the packing and shifting for free.
// The class is a singleton and a static GetHelper() is provided
// the constructor calls the Initialize() method which sets all the
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// field dimensions
// Methods are provided to get access to the SiTracker Geometry
// description
//


//
// Base Class
#include "HitManagement/HitIdHelper.h"


class SiHitIdHelper : HitIdHelper {
 public:
  //
  // Access to the helper
29
  static const SiHitIdHelper* GetHelper();
30
31
  //
  // Info retrieval:
32
  // Pixel, SCT, or HGTD
33
34
  bool isPixel(const int& hid) const;
  bool isSCT(const int& hid) const;
35
  bool isHGTD(const int& hid) const;
36

37
  // Barrel or Endcap
38
  int getBarrelEndcap(const int& hid) const;
39
40

  // Layer/Disk
41
42
  int getLayerDisk(const int& hid) const;

43
  // eta module
44
  int getEtaModule(const int& hid) const;
45
46

  // phi module&
47
48
  int getPhiModule(const int& hid) const;

49
  // side
50
  int getSide(const int& hid) const;
51
52
  //
  // Info packing:
53
  int buildHitId(const int, const int, const int, const int, const int, const int) const;
54
55
56
57

 private:
  //
  // private constructor to have a singleton
58
  SiHitIdHelper();
59
60
  //
  // Initialize the helper, only called by the constructor
61
  void Initialize();
62
63
64
};

#endif // INDETSIMEVENT_SIHITIDHELPER