R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandCal2HitPar.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 R3BNEULANDCAL2HITPAR_H
15#define R3BNEULANDCAL2HITPAR_H
16
17#include <memory>
18
19#include "TGraph.h"
20
21#include "FairTask.h"
22
23#include "R3BNeulandCommon.h"
24
25class TClonesArray;
26
27class R3BEventHeader;
30
32{
34 class CosmicTracker;
35} // namespace R3B::Neuland::Calibration
36
37class R3BNeulandCal2HitPar : public FairTask
38{
39 public:
41 R3BNeulandCal2HitPar(const char* name, const Int_t iVerbose = 1);
42
43 virtual InitStatus Init();
44
45 virtual void Exec(Option_t* option);
46
47 virtual void FinishTask();
48
49 void SetTpat(UInt_t CosmicTpat = 0) { fCosmicTpat = CosmicTpat; }
50
51 void SavePlots(Bool_t savePlots = true) { fSavePlots = savePlots; }
52
53 private:
54 bool IsCosmicEvent() const;
55
56 std::unique_ptr<R3B::Neuland::Calibration::HitCalibrationEngine> fHitCalEngine;
57 std::unique_ptr<R3B::Neuland::Calibration::CosmicTracker> fCosmicTracker;
58
59 TClonesArray* fCalNeuland;
60 TClonesArray* fMappedLos;
63
64 UInt_t fEventNumber = 0;
66
67 UInt_t fIgorcnt0 = 0;
68 UInt_t fIgorcnt1 = 0;
69 UInt_t fIgorcnt2 = 0;
70
71 UInt_t fCosmicTpat = 0;
72
73 Bool_t fSavePlots;
74
75 public:
76 ClassDef(R3BNeulandCal2HitPar, 1)
77};
78
79#endif
std::unique_ptr< R3B::Neuland::Calibration::CosmicTracker > fCosmicTracker
void SavePlots(Bool_t savePlots=true)
void SetTpat(UInt_t CosmicTpat=0)
R3BEventHeader * fEventHeader
R3BNeulandHitPar * fNeulandHitPar
std::unique_ptr< R3B::Neuland::Calibration::HitCalibrationEngine > fHitCalEngine
virtual void Exec(Option_t *option)
virtual InitStatus Init()