CbmRoot
Loading...
Searching...
No Matches
CbmStsCoincHodo.h
Go to the documentation of this file.
1/* Copyright (C) 2021 GSI/IKF-UFra, Darmstadt/Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Alberica Toia [committer] */
4
5#ifndef CBMCHECKCOINCHODO_H
6#define CBMCHECKCOINCHODO_H
7
8#include "FairTask.h"
9
10#include "TClonesArray.h"
11#include "TH3.h"
12#include "TString.h"
13
14//class TClonesArray;
15class TH1;
16class TH2;
17class TH3;
18
19class CbmStsCoincHodo : public FairTask {
20public:
23
26
28 // CbmStsCoincHodo(Int_t verbose);
29
30
33
34
36 virtual InitStatus Init();
37
39 virtual InitStatus ReInit();
40
41
43 virtual void Exec(Option_t*);
44
46 virtual void Finish();
47
48 inline void SetOutFilename(TString sNameIn) { fOutFileName = sNameIn; }
49
50 inline void SetTsStart(Int_t i) { TsStart = i; }
51 inline void SetTsStop(Int_t i) { TsStop = i; }
52
53private:
54 void CreateHistos();
55 void WriteHistos();
56
57
59 TClonesArray* arrayClusters = nullptr;
60 TClonesArray* arrayHits = nullptr;
61
63 Double_t dPosZHodoA = 200.0;
64 Double_t dPosZSts = 229.0;
65 Double_t dPosZHodoB = 264.0;
68
69 Double_t dMidStsHodoA = (dPosZHodoA + dPosZSts) / 2.0;
70 Double_t dMidStsHodoB = (dPosZHodoB + dPosZSts) / 2.0;
71
72 Int_t iCoincLimitClk = 100;
73 Double_t dClockCycle = 3.125; // ns
75
76 //
77 Int_t fNbTs = 0;
78 Int_t fNrOfStsDigis = 0;
79
80 //
81 Int_t TsStart;
82 Int_t TsStop;
83
84 // Histos
88
95
106
117
128
130
140
152
154
155 TString fOutFileName {"testCoincHodo.root"};
156
158};
159
160#endif
TH2 * phHitsStsBestPositionDiffInv
TH2 * phHitsStsBestPositionDiff
TH2 * phHitsStsBestPositionShiftCoinc
TH2 * phHitsSinglePositionCoincA
virtual void Finish()
TH2 * phHitsStsBestPositionCoincExtr
TH2 * phHitsSinglePositionCoincB
CbmStsCoincHodo(const CbmStsCoincHodo &)=delete
ClassDef(CbmStsCoincHodo, 1)
TH2 * phHitsStsBestPositionCoinc
void SetTsStart(Int_t i)
TH2 * phHitsStsPositionCoincExtr
Double_t dPosZHodoA
Constants.
void SetOutFilename(TString sNameIn)
virtual void Exec(Option_t *)
CbmStsCoincHodo operator=(const CbmStsCoincHodo &)=delete
virtual InitStatus Init()
TClonesArray * arrayClusters
TClonesArray * arrayHits
virtual InitStatus ReInit()
void SetTsStop(Int_t i)