PandaRoot
BSEmcMCDepositProducerTask.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 #ifndef BSEMCMCDEPOSITPRODUCERTASK_HH
14 #define BSEMCMCDEPOSITPRODUCERTASK_HH
15 
16 #include "FairLogger.h"
17 
18 #include "PndContainerI.h"
19 #include "PndConstContainer.h"
20 #include "PndMutableContainer.h"
21 #include "PndProcessTask.h"
22 
23 #include "BSEmcMCDeposit.h"
24 #include "BSEmcMCPoint.h"
25 #include "PndMCTrack.h"
26 
37  public:
38  BSEmcMCDepositProducerTask(const std::string &t_detectorName = "Barrel", Bool_t t_storeDeposits = kTRUE);
40 
41  void SetPointBranchName(const std::string &t_depositbranchname) { fPointBranchname = t_depositbranchname; }
42  void SetMCDepositBranchName(const std::string &t_depositbranchname) { fMCDepositBranchname = t_depositbranchname; }
43 
44  protected:
45  virtual void PreProcessing(Option_t * /*unused*/) /*override*/;
46  virtual void PostProcessing(Option_t * /*unused*/) /*override*/;
47 
48  virtual void SetupDataArrays() /*override*/;
49 
50  private:
51  std::string fPointBranchname{""};
52  std::string fMCDepositBranchname{""};
53  ClassDef(BSEmcMCDepositProducerTask, 1);
54 };
55 
56 #endif /*BSEMCMCDEPOSITPRODUCERTASK_HH*/
Task based version of a PndProcessHandler.
virtual ~BSEmcMCDepositProducerTask()
void SetPointBranchName(const std::string &t_depositbranchname)
virtual void PostProcessing(Option_t *)
Do some task post clean up after PndProcesses are run once per event.
Container to wrap PndTCA/STDMutableContainer (not needed anymore)
virtual void PreProcessing(Option_t *)
Do some task preparation before PndProcesses are run once per event.
BSEmcMCDepositProducerTask(const std::string &t_detectorName="Barrel", Bool_t t_storeDeposits=kTRUE)
virtual void SetupDataArrays()
Define which data containers need to be fetched from the FairRootManager, pass the data container add...
void SetMCDepositBranchName(const std::string &t_depositbranchname)
Interface to a datacontainer to be used in PandaROOT.
Container to wrap PndTCA/STDConstContainer (not needed anymore)
Task to manage all Processes required to transfrom BSEmcMCPoints into BSEmcMCDeposits.