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;
128 Bool_t fWalkEnabled;
129 R3BEventHeader* header;
130 TClonesArray* fRawHit;
131 TClonesArray* fPmt;
132 Int_t fNPmt;
133 R3BTCalPar* fTcalPar;
134 R3BNeulandQCalPar* fQCalPar;
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;
142 TH1F* fh_pulser_5_2;
143 TH1F* fh_pulser_105_2;
144
145 void MakeCal();
146
147 public:
149};
150
151#endif
Double_t walk(Double_t x)
An analysis task to apply TCAL calibration for NeuLAND.
virtual void Exec(Option_t *option)
Method for event loop implementation.
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.
virtual void FinishTask()
Method for finish of the task execution.
void SetPulserMode(Bool_t mode=kTRUE)
Method to set running mode for pulser data analysis.
void EnableWalk(Bool_t walk=kTRUE)
Method to enable / disable walk corrections.
virtual void SetParContainers()
Method for initialization of the parameter containers.
void SetNofModules(Int_t nPMTs)
Method for setting the number of NeuLAND modules.
virtual InitStatus Init()
Method for task initialization.
void SetTrigger(Int_t trigger)
Method for setting the trigger value.