PandaRoot
PndMvdEventMergerTask.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 
18 #ifndef PndMvdEventMergerTask_H
19 #define PndMvdEventMergerTask_H
20 
21 #include "FairTask.h"
22 #include "PndMvdEventMerger.h"
23 
24 #include <string>
25 #include <vector>
26 
27 class TClonesArray;
28 
29 class PndMvdEventMergerTask : public FairTask {
30  public:
33 
34  PndMvdEventMergerTask(TString signalBranch, TString bgFile, TString bgBranch, Int_t events, Int_t mergedEvents, Bool_t signalIsBg);
35 
37  virtual ~PndMvdEventMergerTask();
38 
40  virtual void SetParContainers();
41  virtual InitStatus Init();
42  virtual InitStatus ReInit();
43 
45  virtual void Exec(Option_t *opt);
46 
47  private:
48  TString fSignalBranch;
49  TString fBgBranch;
50  TString fBgFile;
51  Int_t fNEvents;
52  Int_t fNMergedEvents;
53  Int_t fEventNr;
54  Bool_t fSignalIsBg;
56  TClonesArray *fSignalArray;
57 
59  TClonesArray *fMergedArray;
60 
61  PndMvdEventMerger *fMerger;
62 
63  void Register();
64  void Reset();
65  void ProduceHits();
66 
67  ClassDef(PndMvdEventMergerTask, 7);
68 };
69 
70 #endif
virtual void Exec(Option_t *opt)
virtual void SetParContainers()
virtual InitStatus ReInit()
virtual ~PndMvdEventMergerTask()
virtual InitStatus Init()