BmnRoot
Loading...
Searching...
No Matches
BmnZdcDigitizer.h
Go to the documentation of this file.
1/*
2 * File: BmnZdcDigitizer.h
3 * Author: Petr Alekseev
4 *
5 * Created on 29.05.2020, 18:00
6 */
7
8#ifndef BMNZDCDIGITIZER_H
9#define BMNZDCDIGITIZER_H
10
11#include <iostream>
12#include <fstream>
13
14#include <FairTask.h>
15#include <TClonesArray.h>
16
17#include "BmnZDCDigit.h"
18
19class BmnZdcDigitizer : public FairTask {
20public:
22 virtual ~BmnZdcDigitizer();
23
24 void LoadMap(const char * fileName);
25
26 void SetScale(Double_t val) { fScale = val; }
27 void SetThreshold(Double_t val) { fSmallModThreshold = fLargeModThreshold = val; }
28 void SetThreshold(Double_t small, Double_t lagre) {
29 fSmallModThreshold = small;
30 fLargeModThreshold = lagre;
31 }
32
33 virtual InitStatus Init();
34 virtual void Exec(Option_t* opt);
35
36private:
37
38 BmnZDCDigit fModules[106];
39
40 TClonesArray * fArrayOfZdcPoints; // input
41 TClonesArray * fArrayOfZdcDigits; // output
42
43 Double_t fScale = 1.;
44 Double_t fSmallModThreshold = 0.;
45 Double_t fLargeModThreshold = 0.;
46
47 ClassDef(BmnZdcDigitizer,3);
48};
49
50#endif /* BMNZDCDIGITIZER_H */
51
virtual InitStatus Init()
void SetScale(Double_t val)
virtual void Exec(Option_t *opt)
virtual ~BmnZdcDigitizer()
void LoadMap(const char *fileName)
void SetThreshold(Double_t small, Double_t lagre)
void SetThreshold(Double_t val)