CbmRoot
Loading...
Searching...
No Matches
CbmFsdHitProducer.h
Go to the documentation of this file.
1/* Copyright (C) 2023 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Lukas Chlad [committer] */
4
15#ifndef CBMFSDHITPRODUCER_H
16#define CBMFSDHITPRODUCER_H
17
18#include "CbmDigiManager.h"
19
20#include <FairTask.h>
21
22#include <RtypesCore.h> // for Int_t, etc.
23
24#include <utility>
25
26class TVector3;
27class TClonesArray;
28class CbmEvent;
29
30class CbmFsdHitProducer : public FairTask {
31
32 public:
35
36
39
42
45
46
48 virtual InitStatus Init();
49
50
52 virtual void Exec(Option_t* opt);
53
55 virtual void Finish();
56
57 private:
58 Int_t fNHits = 0;
59
61 TClonesArray* fHitArray = nullptr;
62
65
67 TClonesArray* fEvents = nullptr;
68
72 std::pair<Int_t, Int_t> ProcessData(CbmEvent* event);
73
75 ULong64_t fNofTs = 0;
76 ULong64_t fNofEvents = 0;
77 ULong64_t fNofDigis = 0;
78 ULong64_t fNofHits = 0;
79 Double_t fTimeTot = 0.;
80
81 void Reset();
82
84};
85
86#endif // CBMFSDHITPRODUCER_H
CbmDigiManager.
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
CbmDigiManager * fDigiMan
virtual InitStatus Init()
Virtual method Init.
TClonesArray * fHitArray
CbmFsdHitProducer(const CbmFsdHitProducer &)=delete
Copy constructor.
TClonesArray * fEvents
CbmFsdHitProducer()
Default constructor.
virtual void Exec(Option_t *opt)
Virtual method Exec.
ClassDef(CbmFsdHitProducer, 1)
virtual void Finish()
Virtual method Finish.
std::pair< Int_t, Int_t > ProcessData(CbmEvent *event)
~CbmFsdHitProducer()
Destructor.
CbmFsdHitProducer operator=(const CbmFsdHitProducer &)=delete
Assignment operator.