R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandTacquilaMapped2Cal.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#ifndef R3BNEULANDTACQUILAMAPPED2CAL_H
15#define R3BNEULANDTACQUILAMAPPED2CAL_H
16
17#include "FairTask.h"
18
19class TClonesArray;
20class TH1F;
21class R3BTCalModulePar;
22class R3BTCalPar;
23class R3BEventHeader;
25
35class R3BNeulandTacquilaMapped2Cal : public FairTask
36{
37
38 public:
44
51 R3BNeulandTacquilaMapped2Cal(const char* name, Int_t iVerbose = 1);
52
58
65 virtual InitStatus Init();
66
71 virtual void SetParContainers();
72
77 virtual InitStatus ReInit();
78
84 virtual void Exec(Option_t* option);
85
91 virtual void FinishEvent();
92
97 virtual void FinishTask();
98
103 inline void SetTrigger(Int_t trigger) { fTrigger = trigger; }
104
109 inline void SetNofModules(Int_t nPMTs) { fNofPMTs = nPMTs; }
110
115 inline void SetPulserMode(Bool_t mode = kTRUE) { fPulserMode = mode; }
116
121 inline void EnableWalk(Bool_t walk = kTRUE) { fWalkEnabled = walk; }
122
123 private:
124 void SetParameter();
125
126 Int_t fNEvents;
127 Bool_t fPulserMode;
130 TClonesArray* fRawHit;
131 TClonesArray* fPmt;
132 Int_t fNPmt;
133 R3BTCalPar* fTcalPar;
135 Int_t fTrigger;
136 Int_t fNofPMTs;
137 std::map<Int_t, Bool_t> fMap17Seen;
138 std::map<Int_t, Double_t> fMapStopTime;
139 std::map<Int_t, Int_t> fMapStopClock;
140 std::map<Int_t, Double_t> fMapQdcOffset;
141 Double_t fClockFreq;
144
145 void MakeCal();
146
147 public:
149};
150
151#endif
Double_t walk(Double_t x)
Bool_t fPulserMode
Running with pulser data.
Double_t fClockFreq
Clock cycle in [ns].
virtual void Exec(Option_t *option)
Method for event loop implementation.
Bool_t fWalkEnabled
Enable / Disable walk correction.
virtual InitStatus ReInit()
Method for re-initialization of parameter containers in case the Run ID has changed.
virtual void FinishEvent()
A method for finish of processing of an event.
std::map< Int_t, Bool_t > fMap17Seen
Map with flag of observed stop signal.
TClonesArray * fPmt
Array with time items - output data.
virtual void FinishTask()
Method for finish of the task execution.
R3BTCalPar * fTcalPar
TCAL parameter container.
Int_t fNPmt
Number of produced time items per event.
void SetPulserMode(Bool_t mode=kTRUE)
Method to set running mode for pulser data analysis.
Int_t fNofPMTs
Number of photomultipliers.
TClonesArray * fRawHit
Array with raw items - input data.
void EnableWalk(Bool_t walk=kTRUE)
Method to enable / disable walk corrections.
TH1F * fh_pulser_5_2
Resolution of one PMT.
virtual void SetParContainers()
Method for initialization of the parameter containers.
void SetNofModules(Int_t nPMTs)
Method for setting the number of NeuLAND modules.
std::map< Int_t, Double_t > fMapQdcOffset
Map with value of qdc offset.
R3BNeulandQCalPar * fQCalPar
QCAL parameter container.
virtual InitStatus Init()
Method for task initialization.
void SetTrigger(Int_t trigger)
Method for setting the trigger value.
std::map< Int_t, Double_t > fMapStopTime
Map with value of stop time.
std::map< Int_t, Int_t > fMapStopClock
Map with value of stop clock.
R3BEventHeader * header
Event header.
TH1F * fh_pulser_105_2
Resolution of one PMT.