BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnECALRaw2Digit.h
Go to the documentation of this file.
1
#ifndef BMNECALRAW2DIGIT_H
2
#define BMNECALRAW2DIGIT_H
3
4
#include "
BmnADCDigit.h
"
5
#include "
BmnECALDigit.h
"
6
#include "
TClonesArray.h
"
7
#include "
TString.h
"
8
9
#include <
TGraph.h
>
10
#include <cstdlib>
11
#include <iostream>
12
13
#define MAX_ECAL_CHANNELS 1024
14
15
class
BmnECALRaw2Digit
16
{
17
public
:
18
BmnECALRaw2Digit
() {}
19
BmnECALRaw2Digit
(
ULong_t
runId);
20
BmnECALRaw2Digit
(
const
char
* map_file_name,
const
char
* calibr_file_name,
const
char
* geo_file_name);
21
virtual
~BmnECALRaw2Digit
() {}
22
23
void
print
();
24
25
Bool_t
LoadAdcMap
(
const
char
* map_file_name);
26
Bool_t
LoadCalibration
(
const
char
* calibr_file_name);
27
Bool_t
LoadGeometry
(
const
char
* geo_file_name);
28
29
void
FillEvent
(
TClonesArray
* data,
TClonesArray
* ecaldigit);
30
31
private
:
32
BmnECALMapElement
fECALMapArray
[
MAX_ECAL_CHANNELS
+ 1];
33
34
struct
35
{
36
Int_t
sample0
;
37
Int_t
samples
;
38
Float_t
min
;
39
Float_t
max
;
40
void
Print() { printf(
"sample0=%d, samples=%d, min=%g, max=%g\n"
,
sample0
,
samples
,
min
,
max
); }
41
}
fPedestal
= {0, 8, -30., 30.},
fSignal
= {15, 20, -5e4, -50.};
42
43
Bool_t
UseNovosibirskFit
(
BmnADCDigit<Short_t>
* digit,
Int_t
chan,
TClonesArray
* ecaldigit);
44
45
static
Double_t
Novosibirsk
(
Double_t
* x,
Double_t
* p);
46
47
ClassDef
(
BmnECALRaw2Digit
, 3);
48
};
49
50
#endif
/* BMNECALRAW2DIGIT_H */
Bool_t
bool Bool_t
Int_t
int Int_t
ULong_t
unsigned long ULong_t
Float_t
float Float_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TGraph.h
TString.h
BmnADCDigit
Definition
BmnADCDigit.h:12
BmnECALMapElement
Definition
BmnECALDigit.h:9
BmnECALRaw2Digit
Definition
BmnECALRaw2Digit.h:16
BmnECALRaw2Digit::~BmnECALRaw2Digit
virtual ~BmnECALRaw2Digit()
Definition
BmnECALRaw2Digit.h:21
BmnECALRaw2Digit::max
Float_t max
Definition
BmnECALRaw2Digit.h:39
BmnECALRaw2Digit::Novosibirsk
static Double_t Novosibirsk(Double_t *x, Double_t *p)
BmnECALRaw2Digit::fSignal
struct BmnECALRaw2Digit::@112334167373002213270221073046060023217272110234 fSignal
BmnECALRaw2Digit::BmnECALRaw2Digit
BmnECALRaw2Digit()
Definition
BmnECALRaw2Digit.h:18
BmnECALRaw2Digit::BmnECALRaw2Digit
BmnECALRaw2Digit(ULong_t runId)
BmnECALRaw2Digit::FillEvent
void FillEvent(TClonesArray *data, TClonesArray *ecaldigit)
BmnECALRaw2Digit::samples
Int_t samples
Definition
BmnECALRaw2Digit.h:37
BmnECALRaw2Digit::UseNovosibirskFit
Bool_t UseNovosibirskFit(BmnADCDigit< Short_t > *digit, Int_t chan, TClonesArray *ecaldigit)
BmnECALRaw2Digit::fPedestal
struct BmnECALRaw2Digit::@112334167373002213270221073046060023217272110234 fPedestal
BmnECALRaw2Digit::print
void print()
BmnECALRaw2Digit::LoadCalibration
Bool_t LoadCalibration(const char *calibr_file_name)
BmnECALRaw2Digit::fECALMapArray
BmnECALMapElement fECALMapArray[MAX_ECAL_CHANNELS+1]
Definition
BmnECALRaw2Digit.h:32
BmnECALRaw2Digit::LoadGeometry
Bool_t LoadGeometry(const char *geo_file_name)
BmnECALRaw2Digit::min
Float_t min
Definition
BmnECALRaw2Digit.h:38
BmnECALRaw2Digit::LoadAdcMap
Bool_t LoadAdcMap(const char *map_file_name)
BmnECALRaw2Digit::BmnECALRaw2Digit
BmnECALRaw2Digit(const char *map_file_name, const char *calibr_file_name, const char *geo_file_name)
BmnECALRaw2Digit::sample0
Int_t sample0
Definition
BmnECALRaw2Digit.h:36
TClonesArray
BmnADCDigit.h
BmnECALDigit.h
MAX_ECAL_CHANNELS
#define MAX_ECAL_CHANNELS
Definition
BmnECALRaw2Digit.h:13
install
include
BmnECALRaw2Digit.h
Generated on
for BmnRoot by
1.17.0