R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandMapped2CalPar.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 R3BNEULANDMAPPED2CALPAR_H
15#define R3BNEULANDMAPPED2CALPAR_H
16
17#include "FairTask.h"
18#include <TClonesArray.h>
19
20class R3BTCalPar;
21class R3BEventHeader;
22class R3BTCalEngine;
23
32class R3BNeulandMapped2CalPar : public FairTask
33{
34
35 public:
41
48 R3BNeulandMapped2CalPar(const char* name, Int_t iVerbose = 1);
49
55
62 virtual InitStatus Init();
63
69 virtual void Exec(Option_t* option);
70
76 virtual void FinishEvent();
77
82 virtual void FinishTask();
83
91 inline void SetMinStats(Int_t minStats) { fMinStats = minStats; }
92
97 inline void SetTrigger(Int_t trigger) { fTrigger = trigger; }
98
103 inline void SetNofModules(Int_t nPlanes, Int_t nBars)
104 {
105 fNofPlanes = nPlanes;
106 fNofBarsPerPlane = nBars;
107 fNofPMTs = nPlanes * nBars * 4;
108 }
109
110 private:
111 Int_t fMinStats;
112 Int_t fTrigger;
113
114 Int_t fNofPlanes;
115 Int_t fNofBarsPerPlane;
116 Int_t fNofPMTs;
117
118 Int_t checkcounts;
119 Int_t counts[60][50][4];
120
121 Int_t fNEvents;
122 R3BTCalPar* fCal_Par;
123 TClonesArray* fHits;
124 TClonesArray* fHitsTrigger;
125 R3BEventHeader* header;
126
127 R3BTCalEngine* fEngine;
128
129 public:
130 ClassDef(R3BNeulandMapped2CalPar, 1)
131};
132
133#endif
An analysis task for TCAL calibration of NeuLAND data.
virtual ~R3BNeulandMapped2CalPar()
Destructor.
virtual void FinishTask()
Method for finish of the task execution.
void SetMinStats(Int_t minStats)
Method for setting minimum required statistics per module.
virtual void Exec(Option_t *option)
Method for event loop implementation.
void SetTrigger(Int_t trigger)
Method for selecting events with certain trigger value.
R3BNeulandMapped2CalPar()
Default constructor.
virtual void FinishEvent()
A method for finish of processing of an event.
virtual InitStatus Init()
Method for task initialization.
void SetNofModules(Int_t nPlanes, Int_t nBars)
Method for setting number of modules in NeuLAND setup.
constexpr Int_t nPlanes