forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR3BAlpideMapped2Cal.h
More file actions
74 lines (54 loc) · 2.49 KB
/
Copy pathR3BAlpideMapped2Cal.h
File metadata and controls
74 lines (54 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/******************************************************************************
* Copyright (C) 2022 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2022-2026 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
* copied verbatim in the file "LICENSE". *
* *
* In applying this license GSI does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *
* or submit itself to any jurisdiction. *
******************************************************************************/
// -------------------------------------------------------------
// ----- R3BAlpideMapped2Cal -----
// ----- Created 09/02/22 by J.L. Rodriguez-Sanchez -----
// -------------------------------------------------------------
#pragma once
#include <FairTask.h>
#include "R3BAlpideCalData.h"
#include <Rtypes.h>
class TClonesArray;
class R3BAlpideMappingPar;
class R3BAlpideMapped2Cal : public FairTask
{
public:
/** Default constructor **/
R3BAlpideMapped2Cal();
/** Standard constructor **/
R3BAlpideMapped2Cal(const TString& name, Int_t iVerbose = 1);
/** Destructor **/
~R3BAlpideMapped2Cal() override;
/** Method Exec **/
void Exec(Option_t*) override;
/** Virtual method Reset **/
virtual void Reset();
void SetParContainers() override;
/** Method Init **/
InitStatus Init() override;
/** Method ReInit **/
InitStatus ReInit() override;
// Method to setup online mode
void SetOnline(bool option = true) { fOnline = option; }
private:
void SetParameter();
bool fOnline = false; // Don't store data for online
R3BAlpideMappingPar* fMap_Par = nullptr; // Parameter container
TClonesArray* fAlpideMappedData = nullptr; // Array with Alpide Mapped input data
TClonesArray* fAlpideCalData = nullptr; // Array with Alpide Cal output data
// Private method AddCalData
R3BAlpideCalData* AddCalData(uint16_t senId, uint16_t row, uint16_t col);
public:
// Class definition
ClassDefOverride(R3BAlpideMapped2Cal, 1); // NOLINT
};