BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
16{
17 public:
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:
33
34 struct
35 {
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
44
46
48};
49
50#endif /* BMNECALRAW2DIGIT_H */
bool Bool_t
int Int_t
unsigned long ULong_t
float Float_t
double Double_t
#define ClassDef(name, id)
virtual ~BmnECALRaw2Digit()
static Double_t Novosibirsk(Double_t *x, Double_t *p)
struct BmnECALRaw2Digit::@112334167373002213270221073046060023217272110234 fSignal
BmnECALRaw2Digit(ULong_t runId)
void FillEvent(TClonesArray *data, TClonesArray *ecaldigit)
Bool_t UseNovosibirskFit(BmnADCDigit< Short_t > *digit, Int_t chan, TClonesArray *ecaldigit)
struct BmnECALRaw2Digit::@112334167373002213270221073046060023217272110234 fPedestal
Bool_t LoadCalibration(const char *calibr_file_name)
BmnECALMapElement fECALMapArray[MAX_ECAL_CHANNELS+1]
Bool_t LoadGeometry(const char *geo_file_name)
Bool_t LoadAdcMap(const char *map_file_name)
BmnECALRaw2Digit(const char *map_file_name, const char *calibr_file_name, const char *geo_file_name)
#define MAX_ECAL_CHANNELS