ATLAS Offline Software
LArTBFrontHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //============================================
6 // HEC/EMEC TB FrontHit class
7 //
8 // information stored:
9 // - energy deposition in scintillators
10 // - hit position
11 // - scintillator ID
12 // - mwpc IDs
13 // - track ID
14 // - particle code in F1/F2
15 //============================================
16 
17 #ifndef LArTBFrontHit_h
18 #define LArTBFrontHit_h 1
19 #include <vector>
20 #include "CLHEP/Vector/ThreeVector.h"
21 
23 {
24  public:
26  LArTBFrontHit(int sc, double ed);
27  LArTBFrontHit(int mw, int x1, int y1);
29 // ~LArTBFrontHit(){;};
30 
31  const LArTBFrontHit& operator=(const LArTBFrontHit &right);
32  int operator==(const LArTBFrontHit &right);
33 // inline void *operator new(size_t, void* aHit = 0);
34 // inline void operator delete(void *aHit);
35 
36  void Draw(){;};
37  void Print(){;};
38 
39 // Set- Get- methods
40  // energy deposit
41  inline void SetEdep(double ed) { m_edep = ed; }
42  inline double GetEdep() { return m_edep; }
43 
44  // position
45  inline void SetPos(const CLHEP::Hep3Vector& p) { m_pos = p; }
46  inline CLHEP::Hep3Vector GetPos() { return m_pos; }
47 
48  // scnum
49  inline void SetSC(int sc) { m_scnum = sc; }
50  inline int GetSC() { return m_scnum; }
51 
52  // mwpcnum , x, y
53  inline void SetMWPC(int mw) { m_mwpcnum = mw; }
54  inline int GetMWPC() { return m_mwpcnum; }
55  inline void SetX(int x1) { m_x = x1; }
56  inline int GetX() { return m_x; }
57  inline void SetY(int y1) { m_y = y1; }
58  inline int GetY() { return m_y; }
59 
60  // trackID
61  inline void SetTrackID(int id) { m_track_id = id; }
62  inline int GetTrackID() { return m_track_id; }
63 
64  // particle code
65  inline void SetPcode(int code) { m_pcode = code; }
66  inline int GetPcode() { return m_pcode; }
67 
68  private:
69  double m_edep; // deposited energy in internal units
70  CLHEP::Hep3Vector m_pos; // position of the hit
71  int m_scnum, m_mwpcnum, m_x, m_y; // sci. number, mwpc number, x- or y- wire number
72  int m_track_id; // track id
73  int m_pcode; // particle code
74 };
75 
76 typedef std::vector<LArTBFrontHit> LArTBFrontHitsCollection;
77 
78 // extern G4Allocator<LArTBFrontHit> LArTBFrontHitAllocator;
79 
80 /*
81 inline void* LArTBFrontHit::operator new(size_t, void* aHit)
82 {
83 // void *aHit;
84  aHit = (void *) LArTBFrontHitAllocator.MallocSingle();
85  return aHit;
86 }
87 
88 inline void LArTBFrontHit::operator delete(void* aHit)
89 {
90  LArTBFrontHitAllocator.FreeSingle( (LArTBFrontHit*) aHit);
91 }
92 */
93 #endif
LArTBFrontHit::operator=
const LArTBFrontHit & operator=(const LArTBFrontHit &right)
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
LArTBFrontHit::GetPos
CLHEP::Hep3Vector GetPos()
Definition: LArTBFrontHit.h:46
LArTBFrontHit::SetY
void SetY(int y1)
Definition: LArTBFrontHit.h:57
LArTBFrontHit::SetMWPC
void SetMWPC(int mw)
Definition: LArTBFrontHit.h:53
LArTBFrontHit::m_x
int m_x
Definition: LArTBFrontHit.h:71
LArTBFrontHit::GetMWPC
int GetMWPC()
Definition: LArTBFrontHit.h:54
LArTBFrontHit::m_track_id
int m_track_id
Definition: LArTBFrontHit.h:72
LArTBFrontHit::SetSC
void SetSC(int sc)
Definition: LArTBFrontHit.h:49
LArTBFrontHit
Definition: LArTBFrontHit.h:23
LArTBFrontHitsCollection
std::vector< LArTBFrontHit > LArTBFrontHitsCollection
Definition: LArTBFrontHit.h:76
LArTBFrontHit::m_scnum
int m_scnum
Definition: LArTBFrontHit.h:71
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
LArTBFrontHit::LArTBFrontHit
LArTBFrontHit(const LArTBFrontHit &right)
histSizes.code
code
Definition: histSizes.py:129
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArTBFrontHit::SetEdep
void SetEdep(double ed)
Definition: LArTBFrontHit.h:41
LArTBFrontHit::GetEdep
double GetEdep()
Definition: LArTBFrontHit.h:42
LArTBFrontHit::m_pos
CLHEP::Hep3Vector m_pos
Definition: LArTBFrontHit.h:70
LArTBFrontHit::SetPos
void SetPos(const CLHEP::Hep3Vector &p)
Definition: LArTBFrontHit.h:45
LArTBFrontHit::GetTrackID
int GetTrackID()
Definition: LArTBFrontHit.h:62
LArTBFrontHit::GetX
int GetX()
Definition: LArTBFrontHit.h:56
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
LArTBFrontHit::LArTBFrontHit
LArTBFrontHit(int mw, int x1, int y1)
LArTBFrontHit::m_edep
double m_edep
Definition: LArTBFrontHit.h:69
LArTBFrontHit::m_y
int m_y
Definition: LArTBFrontHit.h:71
LArTBFrontHit::GetY
int GetY()
Definition: LArTBFrontHit.h:58
LArTBFrontHit::LArTBFrontHit
LArTBFrontHit()
LArTBFrontHit::m_pcode
int m_pcode
Definition: LArTBFrontHit.h:73
LArTBFrontHit::LArTBFrontHit
LArTBFrontHit(int sc, double ed)
LArTBFrontHit::Draw
void Draw()
Definition: LArTBFrontHit.h:36
LArTBFrontHit::SetX
void SetX(int x1)
Definition: LArTBFrontHit.h:55
LArTBFrontHit::SetPcode
void SetPcode(int code)
Definition: LArTBFrontHit.h:65
LArTBFrontHit::m_mwpcnum
int m_mwpcnum
Definition: LArTBFrontHit.h:71
LArTBFrontHit::Print
void Print()
Definition: LArTBFrontHit.h:37
LArTBFrontHit::GetPcode
int GetPcode()
Definition: LArTBFrontHit.h:66
LArTBFrontHit::operator==
int operator==(const LArTBFrontHit &right)
LArTBFrontHit::SetTrackID
void SetTrackID(int id)
Definition: LArTBFrontHit.h:61
LArTBFrontHit::GetSC
int GetSC()
Definition: LArTBFrontHit.h:50