R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandTcal.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// ------------------------------------------------------------
15// ----- R3BNeuLandTcal -----
16// ----- Created 27-01-2015 by M.Heil -----
17// ------------------------------------------------------------
18
19#ifndef R3BNEULANDTCAL
20#define R3BNEULANDTCAL
21
22#include "FairTask.h"
23
24class TClonesArray;
25class R3BTCalModulePar;
26class R3BTCalPar;
27class R3BEventHeader;
28
36class R3BNeulandTcal : public FairTask
37{
38
39 public:
45
52 R3BNeulandTcal(const char* name, Int_t iVerbose = 1);
53
58 virtual ~R3BNeulandTcal();
59
66 virtual InitStatus Init();
67
72 virtual void SetParContainers();
73
78 virtual InitStatus ReInit();
79
85 virtual void Exec(Option_t* option);
86
92 virtual void FinishEvent();
93
98 virtual void FinishTask();
99
104 inline void SetTrigger(Int_t trigger) { fTrigger = trigger; }
105
111 inline void SetNofModules(Int_t nPlanes, Int_t nBars, Int_t n17)
112 {
114 fNofBars = nBars;
115 fNof17 = n17;
116 }
117
118 private:
119 Int_t fNEvents;
121 TClonesArray* fMappedHit;
122 TClonesArray* fPmt;
123 Int_t fNPmt;
124 R3BTCalPar* fTcalPar;
125 Int_t fTrigger;
127 Int_t fNofBars;
128 Int_t fNof17;
129 // std::map<Int_t, Bool_t> fMap17Seen; /**< Map with flag of observed stop signal. */
130 // std::map<Int_t, Double_t> fMapStopTime; /**< Map with value of stop time. */
131 // std::map<Int_t, Int_t> fMapStopClock; /**< Map with value of stop clock. */
132 Double_t fClockFreq;
133
134 public:
135 ClassDef(R3BNeulandTcal, 1)
136};
137
138#endif
Int_t fNPmt
Number of produced time items per event.
virtual InitStatus Init()
Method for task initialization.
Int_t fTrigger
Trigger value.
TClonesArray * fMappedHit
Array with raw items - input data.
Int_t fNEvents
Event counter.
TClonesArray * fPmt
Array with time items - output data.
void SetNofModules(Int_t nPlanes, Int_t nBars, Int_t n17)
Method for setting the number of NeuLAND modules.
R3BEventHeader * header
Event header.
R3BTCalPar * fTcalPar
TCAL parameter container.
virtual void FinishEvent()
A method for finish of processing of an event.
Int_t fNof17
Number of channels with stop signal.
R3BNeulandTcal()
Default constructor.
Double_t fClockFreq
Clock cycle in [ns].
Int_t fNofPlanes
Number of planes.
Int_t fNofBars
Number of bars per plane.
virtual ~R3BNeulandTcal()
Destructor.
virtual void SetParContainers()
Method for initialization of the parameter containers.
virtual void FinishTask()
Method for finish of the task execution.
virtual InitStatus ReInit()
Method for re-initialization of parameter containers in case the Run ID has changed.
void SetTrigger(Int_t trigger)
Method for setting the trigger value.
virtual void Exec(Option_t *option)
Method for event loop implementation.
constexpr Int_t nPlanes