PandaRoot
PndGetEventTimeTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
24 #pragma once
25 
26 #include "TClonesArray.h"
27 #include "FairTask.h"
28 #include "FairEventHeader.h"
29 //#include "PndSdsHit.h"
30 
31 
32 #include <vector>
33 
34 class PndGetEventTimeTask : public FairTask {
35  public:
37  virtual ~PndGetEventTimeTask();
38 
40  virtual void SetParContainers();
41  virtual InitStatus Init();
42  virtual InitStatus ReInit();
43 
45  virtual void Exec(Option_t *opt);
46  virtual void FinishEvent();
47 
48  private:
49  int fEventNr = -1;
50 
51  FairEventHeader* fHeader = nullptr;
52  TBranch* fBranch = nullptr;
53 
54 
55  std::vector<double>* fEventTime = nullptr;
56  std::vector<double> fEventTimeCopy;
57  bool fRunOnce = true;
58 
59  void Register();
60  void Reset();
61  void ProduceHits();
62 
63  ClassDef(PndGetEventTimeTask, 1);
64 };
65 
virtual void Exec(Option_t *opt)
virtual ~PndGetEventTimeTask()
virtual void FinishEvent()
Task to extract the event time from a digi file into a vector.
virtual InitStatus Init()
virtual void SetParContainers()
virtual InitStatus ReInit()