FairRoot/PandaRoot
PndDrcLutFill.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // PndDrcLutFill.h
3 //
4 // Created on: 08.07.2013
5 // Author: R.Dzhygadlo at gsi.de
6 // -----------------------------------------
7 // Class allows to fill look-up tables for reconstruction in DIRC
8 
9 #ifndef PNDDRCLUTFILL_H
10 #define PNDDRCLUTFILL_H
11 
12 #include "FairTask.h"
13 #include "TClonesArray.h"
14 #include "PndMCTrack.h"
15 #include "PndDrcBarPoint.h"
16 #include "PndDrcPDPoint.h"
17 #include "PndDrcEVPoint.h"
18 #include "PndDrcHit.h"
19 #include "PndDrcPDHit.h"
20 #include "PndDrcDigi.h"
21 #include "PndGeoDrc.h"
22 
23 #include "TString.h"
24 #include "TFile.h"
25 
26 class PndDrcLutFill : public FairTask {
27 
28 public:
29 
30  // Default constructor
31  PndDrcLutFill();
32 
33  // Standard constructors
34  PndDrcLutFill(Int_t verbose);
35  PndDrcLutFill(Int_t verbose, TString outfilename);
36 
37  // Destructor
38  virtual ~PndDrcLutFill();
39 
40  virtual InitStatus Init();
41 
42  // Executed task
43  virtual void Exec(Option_t* option);
44 
45  // Finish task
46  virtual void Finish();
47 
48  // Look-up table initialization
49  void InitLut();
50 
51  void SetOutputFile(TString outfilename = "luttab.root"){fOutputFile = outfilename;}
52 
53 private:
54 
55  void ProcessPhotonHit();
56 
58  Int_t fDetectorID;
60 
61  TClonesArray* fMCArray; // DRC MCPoints in the photon detector
62  TClonesArray *fBarPointArray;
63  TClonesArray* fPDPointArray; // DRC points in the photon detector
64  TClonesArray* fEVPointArray;
65  TClonesArray* fDigiArray;
66  TClonesArray* fPDHitArray; // DRC Hits in the photon detector
67  TClonesArray* fLut[5];
68 
69  TFile *fFile;
70  TTree *fTree;
71 
78 
79  // Set the parameters to the default values.
80  void SetDefaultParameters();
81 
82  // Verbosity level
83  Int_t fVerbose;
84  Int_t nevents;
86 
87  ClassDef(PndDrcLutFill,1)
88 
89 };
90 
91 #endif
PndDrcBarPoint * fBarPoint
Definition: PndDrcLutFill.h:73
void SetOutputFile(TString outfilename="luttab.root")
Definition: PndDrcLutFill.h:51
Double_t fPipehAngle
Definition: PndDrcLutFill.h:59
PndGeoDrc * fGeo
Definition: PndDrcLutFill.h:57
#define verbose
virtual void Exec(Option_t *option)
TClonesArray * fBarPointArray
Definition: PndDrcLutFill.h:62
PndDrcPDHit * fPDHit
Definition: PndDrcLutFill.h:76
TString fOutputFile
Definition: PndDrcLutFill.h:85
void SetDefaultParameters()
PndDrcPDPoint * fPDPoint
Definition: PndDrcLutFill.h:74
virtual ~PndDrcLutFill()
virtual InitStatus Init()
void ProcessPhotonHit()
TClonesArray * fEVPointArray
Definition: PndDrcLutFill.h:64
Double_t
PndMCTrack * fMCTrack
Definition: PndDrcLutFill.h:72
TClonesArray * fMCArray
Definition: PndDrcLutFill.h:61
PndDrcEVPoint * fEVPoint
Definition: PndDrcLutFill.h:77
TClonesArray * fPDPointArray
Definition: PndDrcLutFill.h:63
PndDrcDigi * fDigi
Definition: PndDrcLutFill.h:75
virtual void Finish()
TClonesArray * fPDHitArray
Definition: PndDrcLutFill.h:66
Double_t fBboxNum
Definition: PndDrcLutFill.h:59
Double_t fDphi
Definition: PndDrcLutFill.h:59
TClonesArray * fDigiArray
Definition: PndDrcLutFill.h:65
TClonesArray * fLut[5]
Definition: PndDrcLutFill.h:67