EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicSmearTask.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicSmearTask.h
1 //
2 // AYK (ayk@bnl.gov), 2013/06/12
3 //
4 // Interface to eic-smear package;
5 //
6 
7 #ifndef _EIC_SMEAR_TASK_
8 #define _EIC_SMEAR_TASK_
9 
10 #include <TClonesArray.h>
11 
12 #include <FairTask.h>
13 
16 
17 class TTree;
18 class TFile;
19 class TBranch;
20 
21 class EicSmearTask: public FairTask {
22  public:
24  EicSmearTask(TString _inFileName, Smear::Detector *rDetector = 0):
25  inFileName(_inFileName), mcTree(0), builder(0), detector(rDetector) {};
27 
28  InitStatus Init();
29 
30  void SetParContainers();
31  void Exec(Option_t* opt);
32 
33  void FinishTask();
34 
35  private:
36  TString inFileName;
38 
39  TFile *inFile, *outFile;
40  TTree* mcTree, *smearedTree;
41  TBranch* eventbranch;
43 
44  TClonesArray *fMCTracks, *fPidChargedCand;
45 
47 };
48 
49 #endif