BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnZDCEventData.h
Go to the documentation of this file.
1
/*
2
* File: BmnZDCEventData.h
3
* Author: pnaleks
4
*
5
* Created on 5 июня 2020 г., 13:43
6
*/
7
8
#ifndef BMNZDCEVENTDATA_H
9
#define BMNZDCEVENTDATA_H
10
11
#include "
BmnZDCDigit.h
"
12
13
#include <
TClonesArray.h
>
14
#include <
TNamed.h
>
15
16
class
BmnZDCEventData
:
public
TNamed
17
{
18
public
:
19
BmnZDCEventData
();
20
virtual
~BmnZDCEventData
();
21
22
///
23
/// Calculate all parameters values from BmnZDCDigits passed
24
//
25
/// \param pArrayOfBmnZDCDigits - array of BmnZDCDigit
26
/// \param pModuleScale - Array of coeffs for each ZDC module
27
/// (starting from 1 to 104, index 0 is not used)
28
/// \param pModuleThreshold - Array of thresholds for each ZDC module
29
/// (starting from 1 to 104, index 0 is not used)
30
///
31
void
Set
(
TClonesArray
* pArrayOfBmnZDCDigits,
Float_t
* pModuleScale = 0,
Float_t
* pModuleThreshold = 0);
32
33
///
34
/// Get ZDC energy
35
///
36
/// \param op - 'c' - central, 'p' - protons side, 'n' - nutrons side
37
/// or full energy by default
38
/// \return - ZDC energy in GeV
39
///
40
Float_t
GetEnergy
(
char
op);
41
Float_t
GetEnergy
() {
return
fE
; }
42
43
///
44
/// Get number of hits
45
///
46
/// \param op - 'c' - central, 'p' - protons side, 'n' - nutrons side
47
/// or full energy by default
48
/// \return - ZDC multiplicity
49
///
50
Int_t
GetNHits
(
char
op);
51
Int_t
GetNHits
() {
return
fH
; }
52
53
Float_t
GetX
() {
return
fX
; }
54
Float_t
GetY
() {
return
fY
; }
55
56
Float_t
GetAsymmetry
() {
return
fAsymmetry
; }
57
Float_t
GetMoment
() {
return
fMoment
; }
58
59
virtual
void
Print
(
Option_t
* option =
""
)
const
;
60
61
protected
:
62
Float_t
fE
;
// Full energy, GeV
63
Float_t
fEc
;
// Central part energy (small modules, A/Z ~ 0.5), GeV
64
Float_t
fEp
;
// Protons side (12 large modules), GeV
65
Float_t
fEn
;
// Nutrons side (12 large modules), GeV
66
67
UChar_t
fH
;
// Number of hits (modules triggered)
68
UChar_t
fHc
;
// Central hits
69
UChar_t
fHp
;
// Proton-side hits
70
UChar_t
fHn
;
// Nutron-side hits
71
72
Float_t
fX
;
73
Float_t
fY
;
74
Float_t
fAsymmetry
;
75
Float_t
fMoment
;
76
77
ClassDef
(
BmnZDCEventData
, 2);
78
};
79
80
#endif
/* BMNZDCEVENTDATA_H */
Int_t
int Int_t
UChar_t
unsigned char UChar_t
Float_t
float Float_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TNamed.h
BmnZDCEventData::fHn
UChar_t fHn
Definition
BmnZDCEventData.h:70
BmnZDCEventData::BmnZDCEventData
BmnZDCEventData()
Definition
BmnZDCEventData.cxx:13
BmnZDCEventData::~BmnZDCEventData
virtual ~BmnZDCEventData()
Definition
BmnZDCEventData.cxx:21
BmnZDCEventData::GetY
Float_t GetY()
Definition
BmnZDCEventData.h:54
BmnZDCEventData::GetX
Float_t GetX()
Definition
BmnZDCEventData.h:53
BmnZDCEventData::fMoment
Float_t fMoment
Definition
BmnZDCEventData.h:75
BmnZDCEventData::GetAsymmetry
Float_t GetAsymmetry()
Definition
BmnZDCEventData.h:56
BmnZDCEventData::fEc
Float_t fEc
Definition
BmnZDCEventData.h:63
BmnZDCEventData::fY
Float_t fY
Definition
BmnZDCEventData.h:73
BmnZDCEventData::fHc
UChar_t fHc
Definition
BmnZDCEventData.h:68
BmnZDCEventData::GetEnergy
Float_t GetEnergy()
Definition
BmnZDCEventData.h:41
BmnZDCEventData::fH
UChar_t fH
Definition
BmnZDCEventData.h:67
BmnZDCEventData::fEn
Float_t fEn
Definition
BmnZDCEventData.h:65
BmnZDCEventData::fAsymmetry
Float_t fAsymmetry
Definition
BmnZDCEventData.h:74
BmnZDCEventData::fE
Float_t fE
Definition
BmnZDCEventData.h:62
BmnZDCEventData::fHp
UChar_t fHp
Definition
BmnZDCEventData.h:69
BmnZDCEventData::Set
void Set(TClonesArray *pArrayOfBmnZDCDigits, Float_t *pModuleScale=0, Float_t *pModuleThreshold=0)
Calculate all parameters values from BmnZDCDigits passed.
Definition
BmnZDCEventData.cxx:23
BmnZDCEventData::GetNHits
Int_t GetNHits()
Definition
BmnZDCEventData.h:51
BmnZDCEventData::GetMoment
Float_t GetMoment()
Definition
BmnZDCEventData.h:57
BmnZDCEventData::Print
virtual void Print(Option_t *option="") const
Definition
BmnZDCEventData.cxx:135
BmnZDCEventData::fEp
Float_t fEp
Definition
BmnZDCEventData.h:64
BmnZDCEventData::fX
Float_t fX
Definition
BmnZDCEventData.h:72
TNamed::TNamed
TNamed()
TObject::TClonesArray
friend friend class TClonesArray
BmnZDCDigit.h
install
include
BmnZDCEventData.h
Generated on
for BmnRoot by
1.17.0