BmnRoot
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 <TNamed.h>
12#include <TClonesArray.h>
13
14#include "BmnZDCDigit.h"
15
16class BmnZDCEventData : public TNamed {
17public:
19 virtual ~BmnZDCEventData();
20
23 //
30 void Set(TClonesArray * pArrayOfBmnZDCDigits, Float_t * pModuleScale = 0, Float_t * pModuleThreshold = 0);
31
39 Float_t GetEnergy(char op);
40 Float_t GetEnergy() { return fE; }
41
49 Int_t GetNHits(char op);
50 Int_t GetNHits() { return fH; }
51
52 Float_t GetX() { return fX; }
53 Float_t GetY() { return fY; }
54
55 Float_t GetAsymmetry() { return fAsymmetry; }
56 Float_t GetMoment() { return fMoment; }
57
58 virtual void Print(Option_t *option="") const;
59protected:
60 Float_t fE; // Full energy, GeV
61 Float_t fEc; // Central part energy (small modules, A/Z ~ 0.5), GeV
62 Float_t fEp; // Protons side (12 large modules), GeV
63 Float_t fEn; // Nutrons side (12 large modules), GeV
64
65 UChar_t fH; // Number of hits (modules triggered)
66 UChar_t fHc; // Central hits
67 UChar_t fHp; // Proton-side hits
68 UChar_t fHn; // Nutron-side hits
69
70 Float_t fX;
71 Float_t fY;
72 Float_t fAsymmetry;
73 Float_t fMoment;
74
76};
77
78#endif /* BMNZDCEVENTDATA_H */
79
virtual ~BmnZDCEventData()
Float_t GetAsymmetry()
ClassDef(BmnZDCEventData, 2)
void Set(TClonesArray *pArrayOfBmnZDCDigits, Float_t *pModuleScale=0, Float_t *pModuleThreshold=0)
virtual void Print(Option_t *option="") const