FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetectorTimeDigiTask.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FairTestDetectorTimeDigiTask_H
9 #define FairTestDetectorTimeDigiTask_H
10 
11 #include "FairTask.h" // for FairTask, InitStatus
12 
13 #include <Rtypes.h> // for Double_t, etc
14 
15 class TClonesArray;
17 
19 {
20  public:
23 
26 
28  virtual InitStatus Init();
29 
31  virtual void Exec(Option_t* opt);
32 
33  void SetTimeResolution(Double_t timeInNs) { fTimeResolution = timeInNs; }
34  Double_t GetTimeResolution() { return fTimeResolution; }
35 
36  void RunTimeBased() { fTimeOrderedDigi = kTRUE; }
37 
38  private:
39  Int_t CalcPad(Double_t posIn, Double_t posOut);
40  Double_t CalcTimeStamp(Double_t timeOfFlight);
41 
42  Double_t fTimeResolution;
43 
44  TClonesArray* fPointArray;
45  TClonesArray* fDigiArray;
46 
48 
49  Bool_t fTimeOrderedDigi;
50 
53 
54  ClassDef(FairTestDetectorTimeDigiTask, 1);
55 };
56 
57 #endif
InitStatus
Definition: FairTask.h:33