/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/ds/include/RAT/DS/LAPPD.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/ds/include/RAT/DS/LAPPD.hh Source File
Ratpac-two
LAPPD.hh
1 
8 #ifndef __RAT_DS_LAPPD__
9 #define __RAT_DS_LAPPD__
10 
11 #include <Rtypes.h>
12 
13 #include <RAT/DS/LAPPDHit.hh>
14 
15 namespace RAT {
16 namespace DS {
17 
18 class LAPPD : public TObject {
19  public:
20  LAPPD() : TObject() {}
21  virtual ~LAPPD() {}
22 
24  virtual void SetID(Int_t _id) { this->id = _id; }
25  virtual Int_t GetID() { return id; }
26 
28  virtual void SetTotalCharge(Double_t _charge) { this->totalcharge = _charge; }
29  virtual Double_t GetTotalCharge() { return totalcharge; }
30 
32  virtual void SetTotalTime(Double_t _time) { this->totaltime = _time; }
33  virtual Double_t GetTotalTime() { return totaltime; }
34 
36  LAPPDHit *GetHit(Int_t i) { return &hits[i]; }
37  Int_t GetNHits() const { return hits.size(); }
38  LAPPDHit *AddNewHit() {
39  hits.resize(hits.size() + 1);
40  return &hits.back();
41  }
42  void PruneHits() { hits.resize(0); }
43 
44  ClassDef(LAPPD, 2);
45 
46  protected:
47  Int_t id;
48  std::vector<LAPPDHit> hits;
49  Double_t totalcharge;
50  Double_t totaltime;
51 };
52 
53 } // namespace DS
54 } // namespace RAT
55 
56 #endif
Definition: LAPPDHit.hh:19
Definition: LAPPD.hh:18
LAPPDHit * GetHit(Int_t i)
Definition: LAPPD.hh:36
virtual void SetTotalCharge(Double_t _charge)
Definition: LAPPD.hh:28
virtual void SetID(Int_t _id)
Definition: LAPPD.hh:24
virtual void SetTotalTime(Double_t _time)
Definition: LAPPD.hh:32
Definition: CCCrossSecMessenger.hh:29