FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMCMatchCreatorTask.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 // -------------------------------------------------------------------------
9 // ----- FAIRMCMATCHCREATORTASK header file -----
10 // ----- Created 20/03/07 by R.Kliemt -----
11 // -------------------------------------------------------------------------
12 
19 #ifndef FAIRMCMATCHCREATORTASK_H
20 #define FAIRMCMATCHCREATORTASK_H
21 
22 #include "FairTask.h" // for InitStatus, FairTask
23 
24 #include <Rtypes.h> // for Bool_t, etc
25 #include <map> // for map
26 #include <string> // for string
27 
28 class FairMCMatch;
29 class TClonesArray;
30 
32 {
33  public:
36 
38  virtual ~FairMCMatchCreatorTask();
39 
41  virtual void SetParContainers();
42  void SetPersistance(Bool_t pers) { fPersistance = pers; }
43  Bool_t GetPersistance() { return fPersistance; }
44 
45  virtual InitStatus Init();
46 
48  virtual void Exec(Option_t* opt);
49 
50  virtual void Finish();
51 
52  virtual void InitDataStages() = 0;
53 
54  protected:
56 
57  private:
58  std::map<std::string, TClonesArray*> fBranches;
59  Bool_t fPersistance;
60  TClonesArray* fMCLink; //->
61  Int_t fEventNr;
62 
63  InitStatus InitBranches();
64 
65  void Register();
66 
67  void Reset();
68 
69  void ProduceHits();
70 
73 
74  ClassDef(FairMCMatchCreatorTask, 1);
75 };
76 
77 #endif
void SetPersistance(Bool_t pers)
InitStatus
Definition: FairTask.h:33
virtual void Exec(Option_t *opt)
virtual void InitDataStages()=0