PPM-DU analysis  2.3
conversion and analysis of the PPM-DU data
 All Classes Files Functions Variables Pages
/home/alex/Work/Research/Km3NeT/PPM-DU/ppm-du-v2.3/pmt.h
Go to the documentation of this file.
1 #ifndef _pmt_h_
2 #define _pmt_h_
3 
4 #include <vector>
5 #include "signal.h"
6 
34 class pmt {
35  public:
36 
37  pmt(const int pmtId, const int offset) :
38  fPmtId(pmtId), fTimeOffset(offset)
39  { }
40 
42  const int GetPmtId() const { return fPmtId; }
44  void SetPmtId(const int id) { fPmtId = id; }
46  const bool HasSignal() const { return fTimeList.size() == 0? false : true; }
48  const std::vector<signal> GetSignal() const { return fTimeList; }
50  void SetSignal(std::vector<signal> list) { fTimeList = list; }
52  const int GetPmtOffset() const { return fTimeOffset; }
54  void SetPmtOffset(const int offset) { fTimeOffset = offset; }
56  const int GetHitNumber() const { return fTimeList.size(); }
58  void ClearSignalData() { fTimeList.clear(); }
59 
60  private:
61  int fPmtId;
62  int fTimeOffset;
63  std::vector<signal> fTimeList;
64 };
65 
66 #endif
void SetSignal(std::vector< signal > list)
set the signal of the pmt (to use only when reading the binary)
Definition: pmt.h:50
const bool HasSignal() const
test if one pmt has signal during the slice reading
Definition: pmt.h:46
const int GetPmtOffset() const
get the time offset of the pmt (due to the time transit???)
Definition: pmt.h:52
Identify and fill the pmts with data.
Definition: pmt.h:34
const std::vector< signal > GetSignal() const
get the signal measured by the pmt (see signal.h for the format)
Definition: pmt.h:48
void SetPmtId(const int id)
set the identity of the pmt (shoud be careful with this one)
Definition: pmt.h:44
void SetPmtOffset(const int offset)
set the offset of the pmt
Definition: pmt.h:54
const int GetPmtId() const
get the identity of the pmt (from 0 to 30)
Definition: pmt.h:42
pmt(const int pmtId, const int offset)
Definition: pmt.h:37
const int pmtId
Definition: constants.h:11
const int GetHitNumber() const
get the number of hit detected by the pmt (one hit can be several photons!!!)
Definition: pmt.h:56
void ClearSignalData()
clear the pmt signal before to fill it again
Definition: pmt.h:58