CbmRoot
Loading...
Searching...
No Matches
CbmMuchPointInfo.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Evgeny Kryshen, Sergey Gorbunov [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmMuchPointInfo header file -----
7// ----- Created 21/11/07 by E. Kryshen -----
8// -------------------------------------------------------------------------
9
10#ifndef CBMMUCHPOINTINFO_H
11#define CBMMUCHPOINTINFO_H
12
13#include "TObject.h"
14
15class CbmMuchPointInfo : public TObject {
16public:
18 CbmMuchPointInfo(Int_t pdgCode, Int_t motherPdg, Double_t kine, Double_t length, 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 {
30 fS += s;
31 fNPads++;
32 }
33 void Print(Option_t* = "") const;
34
35 Double_t GetKine() const { return fKine; }
36 Double_t GetLength() const { return fLength; }
37 Int_t GetPdgCode() const { return fPdgCode; }
38 Int_t GetMotherPdg() const { return fMotherPdg; }
39 Int_t GetCharge() const { return fCharge; }
40 Int_t GetStationId() const { return fStationId; }
41 Double_t GetArea() const { return fS; }
42 Int_t GetNPads() const { return fNPads; }
43
44private:
45 Double_t fKine;
46 Double_t fLength;
47 Int_t fPdgCode;
49 Int_t fCharge;
51 Double_t fS;
52 Int_t fNPads;
53
54 ClassDef(CbmMuchPointInfo, 1)
55};
56#endif
Double_t GetArea() const
void SetPdgCode(Int_t pdgCode)
void Print(Option_t *="") const
Int_t GetMotherPdg() const
void SetStationId(Int_t id)
Double_t GetLength() const
Int_t GetCharge() const
Int_t GetPdgCode() const
void SetCharge(Int_t charge)
void AddCharge(Int_t charge)
Int_t GetNPads() const
Double_t GetKine() const
void SetMotherPdg(Int_t pdgCode)
Int_t GetStationId() const
void SetLength(Double_t length)
void SetKinE(Double_t kine)
void AddArea(Double_t s)