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("R3BNeulandCal2HitPar", 1)
42 {
43 }
44 R3BNeulandCal2HitPar(const char* name, const Int_t iVerbose = 1);
45
46 virtual InitStatus Init();
47
48 virtual void Exec(Option_t* option);
49
50 virtual void FinishTask();
51
52 void SetTpat(UInt_t CosmicTpat = 0) { fCosmicTpat = CosmicTpat; }
53
54 void SavePlots(Bool_t savePlots = true) { fSavePlots = savePlots; }
55
56 private:
57 bool IsCosmicEvent() const;
58
59 std::unique_ptr<R3B::Neuland::Calibration::HitCalibrationEngine> fHitCalEngine;
60 std::unique_ptr<R3B::Neuland::Calibration::CosmicTracker> fCosmicTracker;
61
62 TClonesArray* fCalNeuland;
63 TClonesArray* fMappedLos;
64 R3BEventHeader* fEventHeader;
65 R3BNeulandHitPar* fNeulandHitPar;
66
67 UInt_t fEventNumber = 0;
68 UInt_t fAcceptedEventNumber = 0;
69
70 UInt_t fIgorcnt0 = 0;
71 UInt_t fIgorcnt1 = 0;
72 UInt_t fIgorcnt2 = 0;
73
74 UInt_t fCosmicTpat = 0;
75
76 Bool_t fSavePlots;
77
78 public:
79 ClassDef(R3BNeulandCal2HitPar, 1)
80};
81
82#endif
void SavePlots(Bool_t savePlots=true)
void SetTpat(UInt_t CosmicTpat=0)
virtual void Exec(Option_t *option)
virtual InitStatus Init()