CbmRoot
Loading...
Searching...
No Matches
CbmBuildEventsIdeal.h
Go to the documentation of this file.
1/* Copyright (C) 2016-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
10#ifndef CBMBUILDEVENTSIDEAL_H
11#define CBMBUILDEVENTSIDEAL_H 1
12
13
14#include "CbmDefs.h"
15#include "CbmDigiEvent.h"
16#include "CbmMatch.h"
17
18#include <FairTask.h>
19
20#include <vector>
21
22class TClonesArray;
23class CbmDigiManager;
24class CbmMCEventList;
25class CbmTimeSlice;
26
27
47class CbmBuildEventsIdeal : public FairTask {
48
49 public:
52
55
57 virtual ~CbmBuildEventsIdeal();
58
60 virtual void Exec(Option_t* opt);
61
63 virtual void Finish();
64
67
68
69 private: // methods
71 virtual InitStatus Init();
72
74 CbmMatch EventsInMatch(const CbmMatch* match);
75
76
77 private: // members
80 CbmMCEventList* fMCEvents = nullptr; // Input (MC events)
81 TClonesArray* fEvents = nullptr;
82 std::vector<CbmDigiEvent>* fDigiEvents = nullptr; // Output (CbmDigiEvent)
83 std::vector<ECbmModuleId> fSystems{}; // List of detector systems
84 int32_t fNumEntries = 0; // Number of processed time slices
85 Long64_t fNumEvents = 0;
86 Double_t fNumDigisTotal = 0.;
87 Double_t fNumDigisAmbig = 0.;
88 Double_t fNumDigisNoise = 0.;
89 Double_t fTime = 0.;
90
91
93};
94
95#endif /* CBMBUILDEVENTSIDEAL_H */
CbmMatch EventsInMatch(const CbmMatch *match)
Number of different MC events in a match object.
CbmBuildEventsIdeal()
Constructor.
virtual void Finish()
Finish timeslice.
CbmDigiManager * fDigiMan
CbmBuildEventsIdeal & operator=(const CbmBuildEventsIdeal &)=delete
Assignment operator (disabled)
virtual InitStatus Init()
Task initialisation.
virtual void Exec(Option_t *opt)
Task execution.
ClassDef(CbmBuildEventsIdeal, 4)
CbmBuildEventsIdeal(const CbmBuildEventsIdeal &)=delete
Copy constructor (disabled)
CbmTimeSlice * fTimeslice
Input (digis)
virtual ~CbmBuildEventsIdeal()
Destructor.
CbmMCEventList * fMCEvents
Input (timeslice meta-data)
std::vector< CbmDigiEvent > * fDigiEvents
Output (CbmEvent)
std::vector< ECbmModuleId > fSystems
CbmDigiManager.
Container class for MC events with number, file and start time.
Bookkeeping of time-slice content.