FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairPrintFairLinks.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- FairPrintFairLinks header file -----
3 // ----- Created 20/03/07 by R.Kliemt -----
4 // -------------------------------------------------------------------------
5 
12 #ifndef FairPrintFairLinks_H
13 #define FairPrintFairLinks_H
14 
15 // framework includes
16 #include "FairTask.h"
17 #include "TObjString.h"
18 
19 #include <map>
20 
21 class TClonesArray;
22 
24 {
25  public:
28 
30  virtual ~FairPrintFairLinks();
31 
33  virtual void SetParContainers();
34 
35  virtual void AddBranchName(const TString& name) { fSelectedBranches->AddLast(new TObjString(name.Data())); }
36 
37  virtual void PrintBranchNameList(TList* branches);
38 
39  virtual InitStatus Init();
40 
42  virtual void Exec(Option_t* opt);
43 
44  virtual void Finish();
45 
46  protected:
47  void InitBranchList(TList* branches);
48 
49  private:
50  std::map<Int_t, TClonesArray*> fBranches;
51  TList* fSelectedBranches;
52 
53  void Register();
54  void Reset();
55  void ProduceHits();
56 
57  ClassDef(FairPrintFairLinks, 1);
58 };
59 
60 #endif
InitStatus
Definition: FairTask.h:33