FairRoot/PandaRoot
PndSdsTask.h
Go to the documentation of this file.
1 /*
2  * PndSdsTask.h
3  *
4  * Created on: Jul 7, 2010
5  * Author: stockman
6  */
7 
8 #ifndef PNDSDSTASK_H_
9 #define PNDSDSTASK_H_
10 #include <PndPersistencyTask.h>
11 #include "FairRootManager.h"
12 
13 #include <iostream>
14 
16 public:
17  PndSdsTask();
18 
19  PndSdsTask(const char* name, Int_t iVerbose = 1) :
21  fInBranchName(""),
22  fOutBranchName(""),
23  fFolderName(""),
24  fInBranchId(-1),
25  fOutBranchId(-1)
26  {};
27  virtual ~PndSdsTask();
28 
29  virtual void SetBranchNames()= 0;
30  virtual void SetInBranchId(){
31  FairRootManager *ioman = FairRootManager::Instance();
32  fInBranchId = ioman->GetBranchId(fInBranchName);
33  fOutBranchId = ioman->GetBranchId(fOutBranchName);
34  std::cout << "InBranchId: " << fInBranchId << " for Branch: " << fInBranchName.Data() << std::endl;
35  std::cout << "OutBranchId: " << fOutBranchId << " for Branch: " << fOutBranchName.Data() << std::endl;
36  }
37 
38 protected:
42 
43  Int_t fInBranchId;
44  Int_t fOutBranchId;
45 
47 };
48 
49 #endif /* PNDSDSTASK_H_ */
ClassDef(PndSdsTask, 1)
Int_t fInBranchId
Definition: PndSdsTask.h:43
TString fOutBranchName
Definition: PndSdsTask.h:40
PndSdsTask(const char *name, Int_t iVerbose=1)
Definition: PndSdsTask.h:19
Int_t fOutBranchId
Definition: PndSdsTask.h:44
TString fInBranchName
Definition: PndSdsTask.h:39
virtual void SetBranchNames()=0
TString fFolderName
Definition: PndSdsTask.h:41
TString name
Int_t iVerbose
virtual ~PndSdsTask()
Definition: PndSdsTask.cxx:22
virtual void SetInBranchId()
Definition: PndSdsTask.h:30