PandaRoot
PndEmcPackClusters.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 PNDEMCPACKCLUSTERS_H
19 #define PNDEMCPACKCLUSTERS_H
20 
21 #include "FairTask.h"
22 #include <vector>
23 
24 #include "FairTSBufferFunctional.h"
25 #include "TStopwatch.h"
26 
27 class TClonesArray;
28 class TObjectArray;
29 class PndEmcDigi;
30 class PndEmcCluster;
31 class PndEmcRecoPar;
32 class BinaryFunctor;
33 
34 
35 class PndEmcPackClusters : public FairTask
36 {
37 public:
38 
39  // Constructors
40 
41  PndEmcPackClusters(Int_t verbose=0);
42 
43  // Destructor
44 
45  virtual ~PndEmcPackClusters( );
46 
48  virtual InitStatus Init();
49 
51  virtual void Exec(Option_t* opt);
52 
53  virtual void FinishTask();
54 
56  void SetTimebunchCutTime(Double_t time) { fTimebunchCutTime = time; fAutoTime=kFALSE; }
57 
58 private:
59 
61  TClonesArray* fDigiArray;
62  TClonesArray* fClusterArray;
63  TClonesArray* fDigiOutArray;
64 
65  PndEmcRecoPar* fRecoPar;
67  Double_t fTimebunchCutTime;
68  BinaryFunctor* fClusterFunctor;
69 
70  Int_t fNrOfEvents;
71 
73  virtual void SetParContainers();
74 
76  PndEmcPackClusters& operator= (const PndEmcPackClusters&) {return *this;};
77 
78  TStopwatch fTimer;
79 
80  Bool_t fAutoTime; // toggle manual overwriting of timebunch cut time
81 
82  ClassDef(PndEmcPackClusters, 1)
83 };
84 #endif // PNDEMCPACKCLUSTERS_HH
void SetTimebunchCutTime(Double_t time)
Override EmcRecoPar timebunch cutting parameter - to be set in ns!
PndEmcPackClusters(Int_t verbose=0)
virtual void Exec(Option_t *opt)
virtual void FinishTask()
virtual InitStatus Init()
virtual ~PndEmcPackClusters()
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:25