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#include <Rtypes.h>
24#include <RtypesCore.h>
25
26class TClonesArray;
27class R3BTCalModulePar;
28class R3BTCalPar;
29class R3BEventHeader;
30
38class R3BNeulandTcal : public FairTask
39{
40
41 public:
47
54 explicit R3BNeulandTcal(const char* name, Int_t iVerbose = 1);
55
60 ~R3BNeulandTcal() override;
61
68 auto Init() -> InitStatus override;
69
74 void SetParContainers() override;
75
80 auto ReInit() -> InitStatus override;
81
87 void Exec(Option_t* option) override;
88
94 void FinishEvent() override;
95
100 void FinishTask() override;
101
106 void SetTrigger(Int_t trigger) { fTrigger = trigger; }
107
113 void SetNofModules(Int_t nPlanes, Int_t nBars, Int_t n17)
114 {
116 fNofBars = nBars;
117 fNof17 = n17;
118 }
119
120 private:
121 Int_t fNEvents;
123 TClonesArray* fMappedHit;
124 TClonesArray* fPmt;
125 Int_t fNPmt;
126 R3BTCalPar* fTcalPar;
127 Int_t fTrigger;
129 Int_t fNofBars;
130 Int_t fNof17;
131 // std::map<Int_t, Bool_t> fMap17Seen; /**< Map with flag of observed stop signal. */
132 // std::map<Int_t, Double_t> fMapStopTime; /**< Map with value of stop time. */
133 // std::map<Int_t, Int_t> fMapStopClock; /**< Map with value of stop clock. */
134 Double_t fClockFreq;
135
136 public:
137 ClassDefOverride(R3BNeulandTcal, 1)
138};
139
140#endif
Int_t fNPmt
Number of produced time items per event.
Int_t fTrigger
Trigger value.
auto ReInit() -> InitStatus override
Method for re-initialization of parameter containers in case the Run ID has changed.
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.
~R3BNeulandTcal() override
Destructor.
R3BEventHeader * header
Event header.
R3BTCalPar * fTcalPar
TCAL parameter container.
void FinishEvent() override
A method for finish of processing of an event.
void SetParContainers() override
Method for initialization of the parameter containers.
Int_t fNof17
Number of channels with stop signal.
R3BNeulandTcal()
Default constructor.
void FinishTask() override
Method for finish of the task execution.
Double_t fClockFreq
Clock cycle in [ns].
Int_t fNofPlanes
Number of planes.
Int_t fNofBars
Number of bars per plane.
void Exec(Option_t *option) override
Method for event loop implementation.
void SetTrigger(Int_t trigger)
Method for setting the trigger value.
auto Init() -> InitStatus override
Method for task initialization.
constexpr Int_t nPlanes