PandaRoot
PndEmcGetTimebunchContent.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 
13 //-----------------------------------------------------------------------
14 // File and Version Information:
15 // $Id: $
16 //---------------------------------------------------------------------
17 //#pragma once
18 #ifndef PNDEMCGETTIMEBUNCHCONTENT_H
19 #define PNDEMCGETTIMEBUNCHCONTENT_H
20 
21 #include "FairTask.h"
22 #include <vector>
23 
24 #include "FairTSBufferFunctional.h"
25 #include "TStopwatch.h"
26 #include "TH1.h"
27 
28 class TClonesArray;
29 class TObjectArray;
30 class PndEmcDigi;
31 class PndEmcGeoPar;
32 class PndEmcRecoPar;
33 class BinaryFunctor;
34 
35 
36 class PndEmcGetTimebunchContent : public FairTask
37 {
38 public:
39 
40  // Constructors
41 
42  PndEmcGetTimebunchContent(Int_t verbose=0);
43 
44  // Destructor
45 
46  virtual ~PndEmcGetTimebunchContent( );
47 
49  virtual InitStatus Init();
50 
52  virtual void Exec(Option_t* opt);
53 
54  virtual void FinishTask();
55 
57  void SetClusterActiveTime(Double_t time) { fClusterActiveTime = time; }
58 
59 private:
61  TClonesArray* fDigiArray;
62 
63  PndEmcGeoPar* fGeoPar;
64  PndEmcRecoPar* fRecoPar;
66  Double_t fDigiEnergyTresholdBarrel;
67  Double_t fDigiEnergyTresholdFWD;
68  Double_t fDigiEnergyTresholdBWD;
69  Double_t fDigiEnergyTresholdShashlyk;
70 
71  Double_t fClusterActiveTime;
72  BinaryFunctor* fDigiFunctor;
73 
74  TH1I* hEventMultiplicity;
75 
76  Int_t fNrOfEvents;
77 
79  virtual void SetParContainers();
80 
81  TStopwatch fTimer;
82 
83  ClassDef(PndEmcGetTimebunchContent, 1)
84 };
85 #endif // PNDEMCGETTIMEBUNCHCONTENT_HH
virtual ~PndEmcGetTimebunchContent()
virtual void FinishTask()
PndEmcGetTimebunchContent(Int_t verbose=0)
void SetClusterActiveTime(Double_t time)
Override EmcRecoPar active time parameter ..to be set in ns!!!
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:25