R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandTcalFill.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// ----- R3BNeulandTcalFill -----
16// ----- Created 27-01-2015 by M.Heil -----
17// ----------------------------------------------------------------
18
19#ifndef R3BNEULANDTCALFILL_H
20#define R3BNEULANDTCALFILL_H
21
22#include "FairTask.h"
23#include <Rtypes.h>
24#include <RtypesCore.h>
25
26class R3BTCalPar;
27class TClonesArray;
28class R3BEventHeader;
29class R3BTCalEngine;
30
39class R3BNeulandTcalFill : public FairTask
40{
41
42 public:
48
55 explicit R3BNeulandTcalFill(const char* name, Int_t iVerbose = 1);
56
61 ~R3BNeulandTcalFill() override;
62
69 auto Init() -> InitStatus override;
70
76 void Exec(Option_t* option) override;
77
83 void FinishEvent() override;
84
89 void FinishTask() override;
90
95 void SetUpdateRate(Int_t rate) { fUpdateRate = rate; }
96
104 void SetMinStats(Int_t minStats) { fMinStats = minStats; }
105
110 void SetTrigger(Int_t trigger) { fTrigger = trigger; }
111
118 void SetNofModules(Int_t nPlanes, Int_t nBars, Int_t n17)
119 {
121 fNofBars = nBars;
122 fNof17 = n17;
123 }
124
125 private:
127 Int_t fMinStats;
128 Int_t fTrigger;
129
131 Int_t fNofBars;
132 Int_t fNof17;
133
134 Int_t fNEvents;
135 R3BTCalPar* fCal_Par;
136 TClonesArray* fHits;
138
139 R3BTCalEngine* fEngine;
140
141 public:
142 ClassDefOverride(R3BNeulandTcalFill, 1)
143};
144
145#endif // Test 1
Int_t fNofBars
Number of NeuLAND bars per plane.
~R3BNeulandTcalFill() override
Destructor.
R3BTCalPar * fCal_Par
Parameter container.
Int_t fNof17
Number of channels with stop signal.
void SetTrigger(Int_t trigger)
Method for selecting events with certain trigger value.
Int_t fNEvents
Event counter.
Int_t fMinStats
Minimum statistics required per module.
R3BNeulandTcalFill()
Default constructor.
auto Init() -> InitStatus override
Method for task initialization.
Int_t fTrigger
Trigger value.
R3BEventHeader * header
Event header - input data.
void Exec(Option_t *option) override
Method for event loop implementation.
void SetMinStats(Int_t minStats)
Method for setting minimum required statistics per module.
TClonesArray * fHits
Array with NeuLAND hits - input data.
Int_t fUpdateRate
An update rate.
void FinishEvent() override
A method for finish of processing of an event.
void SetNofModules(Int_t nPlanes, Int_t nBars, Int_t n17)
Method for setting number of modules in NeuLAND setup.
R3BTCalEngine * fEngine
Instance of the TCAL engine.
void FinishTask() override
Method for finish of the task execution.
void SetUpdateRate(Int_t rate)
Method for setting the update rate.
Int_t fNofPlanes
Number of NeuLAND planes.
constexpr Int_t nPlanes