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
15
class
CbmMuchPointInfo
:
public
TObject {
16
public
:
17
CbmMuchPointInfo
();
18
CbmMuchPointInfo
(Int_t pdgCode, Int_t motherPdg, Double_t kine, Double_t length, Int_t stationId);
19
~CbmMuchPointInfo
() {};
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
44
private
:
45
Double_t
fKine
;
46
Double_t
fLength
;
47
Int_t
fPdgCode
;
48
Int_t
fMotherPdg
;
49
Int_t
fCharge
;
50
Int_t
fStationId
;
51
Double_t
fS
;
52
Int_t
fNPads
;
53
54
ClassDef(
CbmMuchPointInfo
, 1)
55
};
56
#endif
CbmMuchPointInfo
Definition
CbmMuchPointInfo.h:15
CbmMuchPointInfo::fMotherPdg
Int_t fMotherPdg
Definition
CbmMuchPointInfo.h:48
CbmMuchPointInfo::fS
Double_t fS
Definition
CbmMuchPointInfo.h:51
CbmMuchPointInfo::GetArea
Double_t GetArea() const
Definition
CbmMuchPointInfo.h:41
CbmMuchPointInfo::SetPdgCode
void SetPdgCode(Int_t pdgCode)
Definition
CbmMuchPointInfo.h:22
CbmMuchPointInfo::fLength
Double_t fLength
Definition
CbmMuchPointInfo.h:46
CbmMuchPointInfo::~CbmMuchPointInfo
~CbmMuchPointInfo()
Definition
CbmMuchPointInfo.h:19
CbmMuchPointInfo::Print
void Print(Option_t *="") const
Definition
CbmMuchPointInfo.cxx:48
CbmMuchPointInfo::fPdgCode
Int_t fPdgCode
Definition
CbmMuchPointInfo.h:47
CbmMuchPointInfo::GetMotherPdg
Int_t GetMotherPdg() const
Definition
CbmMuchPointInfo.h:38
CbmMuchPointInfo::SetStationId
void SetStationId(Int_t id)
Definition
CbmMuchPointInfo.h:25
CbmMuchPointInfo::GetLength
Double_t GetLength() const
Definition
CbmMuchPointInfo.h:36
CbmMuchPointInfo::fKine
Double_t fKine
Definition
CbmMuchPointInfo.h:45
CbmMuchPointInfo::CbmMuchPointInfo
CbmMuchPointInfo()
CbmMuchPointInfo::GetCharge
Int_t GetCharge() const
Definition
CbmMuchPointInfo.h:39
CbmMuchPointInfo::GetPdgCode
Int_t GetPdgCode() const
Definition
CbmMuchPointInfo.h:37
CbmMuchPointInfo::SetCharge
void SetCharge(Int_t charge)
Definition
CbmMuchPointInfo.h:24
CbmMuchPointInfo::AddCharge
void AddCharge(Int_t charge)
Definition
CbmMuchPointInfo.h:27
CbmMuchPointInfo::GetNPads
Int_t GetNPads() const
Definition
CbmMuchPointInfo.h:42
CbmMuchPointInfo::GetKine
Double_t GetKine() const
Definition
CbmMuchPointInfo.h:35
CbmMuchPointInfo::SetMotherPdg
void SetMotherPdg(Int_t pdgCode)
Definition
CbmMuchPointInfo.h:23
CbmMuchPointInfo::fNPads
Int_t fNPads
Definition
CbmMuchPointInfo.h:52
CbmMuchPointInfo::GetStationId
Int_t GetStationId() const
Definition
CbmMuchPointInfo.h:40
CbmMuchPointInfo::fCharge
Int_t fCharge
Definition
CbmMuchPointInfo.h:49
CbmMuchPointInfo::SetLength
void SetLength(Double_t length)
Definition
CbmMuchPointInfo.h:26
CbmMuchPointInfo::SetKinE
void SetKinE(Double_t kine)
Definition
CbmMuchPointInfo.h:21
CbmMuchPointInfo::fStationId
Int_t fStationId
Definition
CbmMuchPointInfo.h:50
CbmMuchPointInfo::AddArea
void AddArea(Double_t s)
Definition
CbmMuchPointInfo.h:28
core
detectors
much
CbmMuchPointInfo.h
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0