R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandCheckMapping.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 R3BNEULANDCHECKMAPPING_H
15#define R3BNEULANDCHECKMAPPING_H
16
17#include "FairTask.h"
18#include "R3BChannelAccessEPICS.h"
19#include "R3BEventHeader.h"
20#include "TH1.h"
21#include "TTimeStamp.h"
22#include <TClonesArray.h>
23
24class R3BNeulandCheckMapping : public FairTask
25{
26
27 public:
33
40 R3BNeulandCheckMapping(const char* name, Int_t iVerbose = 1);
41
47
54 virtual InitStatus Init();
55
61 virtual void Exec(Option_t* option);
62
68 virtual void FinishEvent();
69
74 virtual void FinishTask();
75
76 inline void SetNofModules(Int_t nPlanes, Int_t nBars)
77 {
78 fNofPlanes = nPlanes;
79 fPaddlesPerPlane = nBars;
80 }
81
82 private:
83 UInt_t fNofPlanes;
84 UInt_t fPaddlesPerPlane;
85
86 Int_t fTrigger;
87
88 UInt_t iPlnHvOn;
89 UInt_t iBarHvOn;
90 UInt_t iPmtHvOn;
91
92 Bool_t finished;
93
94 TTimeStamp timestamp0, timestamp1;
95 R3BChannelAccessMasterEPICS epics;
96
97 time_t timer0; // start time
98 time_t timer1; // current
99
100 struct
101 {
102 R3BChannelAccessGroup* group;
103 R3BChannelAccess* vmon;
104 R3BChannelAccess* vtarget;
105 } ca[60][50][2];
106
107 UInt_t cntOk[60][50][2];
108
109 TClonesArray* fMapped;
110 R3BEventHeader* header;
111
112 TH1F* h_countsok;
113
114 public:
115 ClassDef(R3BNeulandCheckMapping, 1)
116};
117
118#endif
R3BChannelAccessGroup * group
virtual void Exec(Option_t *option)
Method for event loop implementation.
virtual void FinishTask()
Method for finish of the task execution.
virtual InitStatus Init()
Method for task initialization.
virtual void FinishEvent()
A method for finish of processing of an event.
void SetNofModules(Int_t nPlanes, Int_t nBars)
virtual ~R3BNeulandCheckMapping()
Destructor.
R3BNeulandCheckMapping()
Default constructor.
constexpr Int_t nPlanes