BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnZdcDigi.h
Go to the documentation of this file.
1/*************************************************************************************
2 *
3 * BmnZdcDigi
4 * Class for digital data taken from BmnZdc detector
5 *
6 * Author: Elena Litvinenko
7 * e-mail: litvin@nf.jinr.ru
8 * Version: 18-11-2015
9 *
10 ************************************************************************************/
11
12#ifndef BMNZDCDIGI_H
13#define BMNZDCDIGI_H
14
15#include "BmnZdcPoint.h"
16
17class BmnZdcDigi : public TObject
18{
19 public:
21 BmnZdcDigi(Int_t pfGroupID, Int_t pfModuleID, Int_t pfChannelID, Double_t pfELoss, Double_t pfELossDigi = 0);
23
24 virtual ~BmnZdcDigi();
25 void Clear();
26
27 void InitStatic();
28 virtual void Print(const Option_t* opt = "");
29
30 inline Int_t GetGroupID() { return fGroupID; }
31 inline Int_t GetModuleID() { return fModuleID; }
32 inline Int_t GetChannelID() { return fChannelID; }
33 inline Double_t GetELossDigi() { return fELossDigi; }
34 inline Double_t GetELoss() { return fELoss; }
35
36 inline Int_t SetGroupID(UInt_t pfGroupID)
37 {
38 fGroupID = pfGroupID;
39 return fGroupID;
40 }
41 inline Int_t SetChannelID(UInt_t pfChannelID)
42 {
43 fChannelID = pfChannelID;
44 return fChannelID;
45 }
46
47 inline Double_t AddEloss(Double_t pfELoss)
48 {
49 fELoss += pfELoss;
50 return fELoss;
51 }
53
54 protected:
55 Int_t fGroupID; // Module Group number = "size" (1: central small, 2 - periferal big, can be also 0 - for hardware
56 // summators)
57 Int_t fModuleID; // Module number inside module group (36 central small modules, up to 58 periferal big modules)
58 Int_t fChannelID; // Hardware ZDC channel number (corresponds to the ascii map file)
59 Double_t fELossDigi; // Digital response of the ZDC channel (taken from experimental data)
60 Double_t fELoss; // Sum of the energy losses from MC or from experimental data after calibration
61
63};
64
65#endif // BMNZDCDIGI_H
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Int_t fModuleID
Definition BmnZdcDigi.h:57
Double_t GetELossDigi()
Definition BmnZdcDigi.h:33
Double_t AddEloss(Double_t pfELoss)
Definition BmnZdcDigi.h:47
Int_t GetModuleID()
Definition BmnZdcDigi.h:31
BmnZdcDigi(Int_t pfGroupID, Int_t pfModuleID, Int_t pfChannelID, Double_t pfELoss, Double_t pfELossDigi=0)
virtual ~BmnZdcDigi()
Int_t fChannelID
Definition BmnZdcDigi.h:58
Double_t fELossDigi
Definition BmnZdcDigi.h:59
Int_t GetGroupID()
Definition BmnZdcDigi.h:30
Double_t GetELoss()
Definition BmnZdcDigi.h:34
Int_t fGroupID
Definition BmnZdcDigi.h:55
void Clear()
Int_t GetChannelID()
Definition BmnZdcDigi.h:32
BmnZdcDigi(BmnZdcPoint *p)
Int_t SetChannelID(UInt_t pfChannelID)
Definition BmnZdcDigi.h:41
virtual void Print(const Option_t *opt="")
Int_t SetGroupID(UInt_t pfGroupID)
Definition BmnZdcDigi.h:36
Double_t fELoss
Definition BmnZdcDigi.h:60
UInt_t AddZdcPoint(BmnZdcPoint *p)
void InitStatic()