HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoSimStrips.h
Go to the documentation of this file.
1 #ifndef HARPOSIMSTRIPS_H
2 #define HARPOSIMSTRIPS_H
3 
5 //
6 //
7 //
8 //
9 //
11 
12 #include "TObject.h"
13 #include "TClonesArray.h"
14 
15 #define NSTRIPSX 288
16 #define NSTRIPSY 288
17 
18 
19 class HarpoSimStripHit : public TObject {
20 
21  public:
23  HarpoSimStripHit(Int_t stripId, Double_t t, Double_t q);
25  virtual ~HarpoSimStripHit() {}
26 
27  Int_t GetStripId(){return fStripId;}
28  Double_t GetTime(){return fTime;}
29  Double_t GetQ(){return fQ;}
30 
31  void SetStripId(Int_t value){fStripId = value;}
32  void SetTime(Double_t value){fTime = value;}
33  void SetQ(Double_t value){fQ = value;}
34 
35  private:
36 
37  Int_t fStripId;
38  Double_t fTime;
39  Double_t fQ;
40 
42 };
43 
44 
45 class HarpoSimStrips : public TObject {
46 
47 
48  public:
49 
50  HarpoSimStrips();
51  HarpoSimStrips(const HarpoSimStrips &strips);
52  virtual ~HarpoSimStrips();
53 
54  // Int_t AddCharge(Double_t charge, Double_t sigma, Double_t x, Double_t y, Double_t t);
55 
56  Int_t Reset();
57  void SetTrackId(Int_t id){fTrackId = id;}
58 
59  TClonesArray* GetHitsX(){return fStripHitsX;}
60  TClonesArray* GetHitsY(){return fStripHitsY;}
61 
62  Int_t GetNhitsX(){return fNhitsX;}
63  Int_t GetNhitsY(){return fNhitsY;}
64 
65  Int_t AddHit(Int_t plane, Int_t ch, Double_t t, Double_t q);
66 
67  private:
68 
69  static const Int_t fkMaxNhits = 200000;
70  TClonesArray* fStripHitsX;
71  TClonesArray* fStripHitsY;
72 
73  Int_t fNhitsX;
74  Int_t fNhitsY;
75  Int_t fTrackId;
76  Double_t fStripWidth;
77 
79 
80 };
81 
82 #endif
static const Int_t fkMaxNhits
TClonesArray * GetHitsX()
TClonesArray * fStripHitsY
virtual ~HarpoSimStripHit()
void SetQ(Double_t value)
TClonesArray * fStripHitsX
Double_t GetTime()
void SetTrackId(Int_t id)
Int_t AddHit(Int_t plane, Int_t ch, Double_t t, Double_t q)
void SetStripId(Int_t value)
ClassDef(HarpoSimStrips, 1)
void SetTime(Double_t value)
virtual ~HarpoSimStrips()
ClassDef(HarpoSimStripHit, 1)
Double_t fStripWidth
TClonesArray * GetHitsY()