BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
16class BmnZDCEventData : public TNamed
17{
18 public:
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 ///
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
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;
76
78};
79
80#endif /* BMNZDCEVENTDATA_H */
int Int_t
unsigned char UChar_t
float Float_t
const char Option_t
#define ClassDef(name, id)
Float_t GetEnergy(char op)
Get ZDC energy.
Float_t GetAsymmetry()
Int_t GetNHits(char op)
Get number of hits.
virtual void Print(Option_t *option="") const
void Set(TClonesArray *pArrayOfBmnZDCDigits, Float_t *pModuleScale=0, Float_t *pModuleThreshold=0)
Calculate all parameters values from BmnZDCDigits passed.
virtual ~BmnZDCEventData()
friend friend class TClonesArray