CbmRoot
CbmMuchPointInfo.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMuchPointInfo header file -----
3 // ----- Created 21/11/07 by E. Kryshen -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef CBMMUCHPOINTINFO_H
7 #define CBMMUCHPOINTINFO_H
8 
9 #include "TObject.h"
10 
11 class CbmMuchPointInfo : public TObject {
12 public:
14  CbmMuchPointInfo(Int_t pdgCode,
15  Int_t motherPdg,
16  Double_t kine,
17  Double_t length,
18  Int_t stationId);
20 
21  void SetKinE(Double_t kine) { fKine = kine; }
22  void SetPdgCode(Int_t pdgCode) { fPdgCode = pdgCode; }
23  void SetMotherPdg(Int_t pdgCode) { fMotherPdg = pdgCode; }
24  void SetCharge(Int_t charge) { fCharge = charge; }
25  void SetStationId(Int_t id) { fStationId = id; }
26  void SetLength(Double_t length) { fLength = length; }
27  void AddCharge(Int_t charge) { fCharge += charge; }
28  void AddArea(Double_t s) {
29  fS += s;
30  fNPads++;
31  }
32  void Print(Option_t* = "") const;
33 
34  Double_t GetKine() { return fKine; }
35  Double_t GetLength() { return fLength; }
36  Int_t GetPdgCode() { return fPdgCode; }
37  Int_t GetMotherPdg() { return fMotherPdg; }
38  Int_t GetCharge() { return fCharge; }
39  Int_t GetStationId() { return fStationId; }
40  Double_t GetArea() { return fS; }
41  Int_t GetNPads() { return fNPads; }
42 
43 private:
44  Double_t fKine;
45  Double_t fLength;
46  Int_t fPdgCode;
47  Int_t fMotherPdg;
48  Int_t fCharge;
49  Int_t fStationId;
50  Double_t fS;
51  Int_t fNPads;
52 
53  ClassDef(CbmMuchPointInfo, 1)
54 };
55 #endif
CbmMuchPointInfo::SetMotherPdg
void SetMotherPdg(Int_t pdgCode)
Definition: CbmMuchPointInfo.h:23
CbmMuchPointInfo::fCharge
Int_t fCharge
Definition: CbmMuchPointInfo.h:48
CbmMuchPointInfo::GetNPads
Int_t GetNPads()
Definition: CbmMuchPointInfo.h:41
CbmMuchPointInfo::AddArea
void AddArea(Double_t s)
Definition: CbmMuchPointInfo.h:28
CbmMuchPointInfo::GetMotherPdg
Int_t GetMotherPdg()
Definition: CbmMuchPointInfo.h:37
CbmMuchPointInfo::SetLength
void SetLength(Double_t length)
Definition: CbmMuchPointInfo.h:26
CbmMuchPointInfo::SetStationId
void SetStationId(Int_t id)
Definition: CbmMuchPointInfo.h:25
CbmMuchPointInfo::GetStationId
Int_t GetStationId()
Definition: CbmMuchPointInfo.h:39
CbmMuchPointInfo::~CbmMuchPointInfo
~CbmMuchPointInfo()
Definition: CbmMuchPointInfo.h:19
CbmMuchPointInfo::fLength
Double_t fLength
Definition: CbmMuchPointInfo.h:45
CbmMuchPointInfo
Definition: CbmMuchPointInfo.h:11
CbmMuchPointInfo::GetCharge
Int_t GetCharge()
Definition: CbmMuchPointInfo.h:38
CbmMuchPointInfo::CbmMuchPointInfo
CbmMuchPointInfo()
CbmMuchPointInfo::fPdgCode
Int_t fPdgCode
Definition: CbmMuchPointInfo.h:46
CbmMuchPointInfo::GetLength
Double_t GetLength()
Definition: CbmMuchPointInfo.h:35
CbmMuchPointInfo::fMotherPdg
Int_t fMotherPdg
Definition: CbmMuchPointInfo.h:47
CbmMuchPointInfo::SetKinE
void SetKinE(Double_t kine)
Definition: CbmMuchPointInfo.h:21
CbmMuchPointInfo::Print
void Print(Option_t *="") const
Definition: CbmMuchPointInfo.cxx:44
CbmMuchPointInfo::fStationId
Int_t fStationId
Definition: CbmMuchPointInfo.h:49
CbmMuchPointInfo::fS
Double_t fS
Definition: CbmMuchPointInfo.h:50
CbmMuchPointInfo::fKine
Double_t fKine
Definition: CbmMuchPointInfo.h:44
CbmMuchPointInfo::GetKine
Double_t GetKine()
Definition: CbmMuchPointInfo.h:34
CbmMuchPointInfo::fNPads
Int_t fNPads
Definition: CbmMuchPointInfo.h:51
CbmMuchPointInfo::AddCharge
void AddCharge(Int_t charge)
Definition: CbmMuchPointInfo.h:27
CbmMuchPointInfo::GetPdgCode
Int_t GetPdgCode()
Definition: CbmMuchPointInfo.h:36
CbmMuchPointInfo::SetCharge
void SetCharge(Int_t charge)
Definition: CbmMuchPointInfo.h:24
CbmMuchPointInfo::SetPdgCode
void SetPdgCode(Int_t pdgCode)
Definition: CbmMuchPointInfo.h:22
CbmMuchPointInfo::GetArea
Double_t GetArea()
Definition: CbmMuchPointInfo.h:40