]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/AliComparisonDCA.h
Restoring backward compatibility of the SSD calibration objects + output of the SSD...
[u/mrichter/AliRoot.git] / PWG1 / AliComparisonDCA.h
CommitLineData
09b20ad1 1#ifndef ALICOMPARISONDCA_H
2#define ALICOMPARISONDCA_H
3
4//------------------------------------------------------------------------------
5// Class to keep information from comparison of
6// reconstructed and MC particle tracks (DCA - Distance of Closest Approach
7// to the vertex).
8//
9// Author: J.Otwinowski 04/02/2008
10//------------------------------------------------------------------------------
11
12class TFile;
13class AliMCInfo;
14class AliESDRecInfo;
15class AliESDEvent;
16class AliESD;
17class AliESDfriend;
18class AliRecInfoCuts;
19class AliMCInfoCuts;
20class TH1I;
21class TH3F;
22class TH3;
23class TProfile;
24class TProfile2D;
3baa4bfd 25class TString;
09b20ad1 26class AliESDVertex;
27
28#include "TNamed.h"
3baa4bfd 29#include "AliComparisonObject.h"
09b20ad1 30
3baa4bfd 31//class AliComparisonDCA : public TNamed {
32class AliComparisonDCA : public AliComparisonObject {
09b20ad1 33public :
34 AliComparisonDCA();
35 ~AliComparisonDCA();
09b20ad1 36
3baa4bfd 37 // Init data members
38 virtual void Init();
39
40 // Execute analysis
41 virtual void Exec(AliMCInfo* infoMC, AliESDRecInfo *infoRC);
09b20ad1 42
43 // Merge output objects (needed by PROOF)
44 virtual Long64_t Merge(TCollection* list);
45
46 // Analyse output histograms
3baa4bfd 47 virtual void Analyse();
48
49 // Get analysis folder
50 virtual TFolder* GetAnalysisFolder() {return fAnalysisFolder;}
51
52 // Create folder for analysed histograms
53 TFolder *CreateFolder(TString folder = "folderDCA",TString title = "Analysed DCA histograms");
54
b4126c69 55 // Export objects to folder
56 TFolder *ExportToFolder(TObjArray * array=0);
57
3baa4bfd 58 // Process events
59 void Process(AliMCInfo* infoMC, AliESDRecInfo *infoRC);
60
61 // Selection cuts
62 void SetAliRecInfoCuts(AliRecInfoCuts* cuts=0) {fCutsRC = cuts;}
63 void SetAliMCInfoCuts(AliMCInfoCuts* cuts=0) {fCutsMC = cuts;}
64
65 AliRecInfoCuts* GetAliRecInfoCuts() const {return fCutsRC;}
66 AliMCInfoCuts* GetAliMCInfoCuts() const {return fCutsMC;}
09b20ad1 67
68private:
69 // DCA resolution
70 TH3F *fD0TanSPtB1; //-> distance to vertex y (no ITS clusters)
71 TH3F *fD1TanSPtB1; //-> distance to vertex z (no ITS clusters)
72 TH3F *fD0TanSPtL1; //-> distance to vertex y
73 TH3F *fD1TanSPtL1; //-> distance to vertex z
74 TH3F *fD0TanSPtInTPC; //-> distance to vertex y (Inner TPC track parameters)
75 TH3F *fD1TanSPtInTPC; //-> distance to vertex z (Inner TPC track parameters)
76
77 AliESDVertex *fVertex; //!
78
79 // Global cuts objects
80 AliRecInfoCuts* fCutsRC; // selection cuts for reconstructed tracks
81 AliMCInfoCuts* fCutsMC; // selection cuts for MC tracks
82
3baa4bfd 83 // analysis folder
84 TFolder *fAnalysisFolder; // folder for analysed histograms
85
09b20ad1 86 AliComparisonDCA(const AliComparisonDCA&); // not implemented
87 AliComparisonDCA& operator=(const AliComparisonDCA&); // not implemented
88
89 ClassDef(AliComparisonDCA,1);
90};
91
92#endif