Code checker fixies
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibCosmic.h
CommitLineData
f7f33dec 1#ifndef ALITPCCALIBCOSMIC_H
2#define ALITPCCALIBCOSMIC_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7#include "AliTPCcalibBase.h"
3326b323 8class TH2F;
f7f33dec 9class TH1F;
f7f33dec 10class TList;
11class AliESDEvent;
54b76c13 12class AliESDtrack;
91fd44c9 13class THnSparse;
f7f33dec 14
f7f33dec 15class AliTPCcalibCosmic:public AliTPCcalibBase {
16public:
17 AliTPCcalibCosmic();
18 AliTPCcalibCosmic(const Text_t *name, const Text_t *title);
19 virtual ~AliTPCcalibCosmic();
20
54b76c13 21 virtual void Process(AliESDEvent *event);
3326b323 22 virtual Long64_t Merge(TCollection *const li);
54b76c13 23 virtual void Analyze();
91fd44c9 24 void Add(const AliTPCcalibCosmic* cosmic);
54b76c13 25 //
860b3d93 26 //
91fd44c9 27 void Init();
54b76c13 28 void FindPairs(AliESDEvent *event);
76c58ee2 29 void FindCosmicPairs(AliESDEvent * event);
30
54b76c13 31 Bool_t IsPair(AliExternalTrackParam *tr0, AliExternalTrackParam *tr1);
54b76c13 32 static void CalculateBetheParams(TH2F *hist, Double_t * initialParam);
33 static Double_t CalculateMIPvalue(TH1F * hist);
860b3d93 34 AliExternalTrackParam *MakeTrack(const AliExternalTrackParam *track0, const AliExternalTrackParam *track1);
15e48021 35 AliExternalTrackParam *MakeCombinedTrack(const AliExternalTrackParam *track0, const AliExternalTrackParam *track1);
36
860b3d93 37 void UpdateTrack(AliExternalTrackParam &track0, const AliExternalTrackParam &track1);
91fd44c9 38 //
76c58ee2 39 void FillHistoPerformance(const AliExternalTrackParam *par0, const AliExternalTrackParam *par1, const AliExternalTrackParam *inner0, const AliExternalTrackParam *inner1, AliTPCseed *seed0, AliTPCseed *seed1, const AliExternalTrackParam *param0Combined, Int_t cross);
3326b323 40 void MaterialBudgetDump(AliExternalTrackParam *const par0, AliExternalTrackParam *const par1, const AliExternalTrackParam *inner0, const AliExternalTrackParam *inner1, AliTPCseed *const seed0, AliTPCseed *const seed1, AliExternalTrackParam *const param0Combined, AliExternalTrackParam *const param1Combined);
76c58ee2 41 static void MakeFitTree(TTree * treeInput, TTreeSRedirector *pcstream, const TObjArray * corrArray, Int_t step, Int_t run);
42 TTree * GetCosmicTree() const {return fCosmicTree;}
54b76c13 43 //
76273318 44 TH1F * GetHistNTracks() const {return fHistNTracks;};
45 TH1F * GetHistClusters() const {return fClusters;};
46 TH2F * GetHistAcorde()const {return fModules;};
47 TH1F * GetHistPt() const {return fHistPt;};
48 TH2F * GetHistDeDx() const {return fDeDx;};
49 TH1F * GetHistMIP() const {return fDeDxMIP;};
54b76c13 50 //
76273318 51 Double_t GetMIPvalue()const {return fMIPvalue;};
54b76c13 52 //
3326b323 53 static void BinLogX(TH1 *const h); // method for correct histogram binning
54 static void BinLogX(THnSparse *const h, Int_t axisDim); // method for correct histogram binning
54b76c13 55
3326b323 56 void Process(AliESDtrack *const track, Int_t runNo=-1) {AliTPCcalibBase::Process(track,runNo);};
57 void Process(AliTPCseed *const track) {return AliTPCcalibBase::Process(track);}
76c58ee2 58 virtual void Terminate();
59 static Double_t GetDeltaTime(Double_t rmin0, Double_t rmax0, Double_t rmin1, Double_t rmax1, Double_t tmin0, Double_t tmax0, Double_t tmin1, Double_t tmax1, Double_t dcaR, TVectorD& vectorDT);
0b736a46 60public:
91fd44c9 61 //
62 // Performance histograms
63 //
64 THnSparse *fHistoDelta[6]; // histograms of tracking performance delta
65 THnSparse *fHistoPull[6]; // histograms of tracking performance pull
8a92e133 66 THnSparse *fHistodEdxMax[4]; // histograms of dEdx perfomance - max charge
67 THnSparse *fHistodEdxTot[4]; // histograms of dEdx perfomance - tot charge
76c58ee2 68 static void AddTree(TTree* treeOutput, TTree * treeInput);
54b76c13 69private:
91fd44c9 70
54b76c13 71 void FillAcordeHist(AliESDtrack *upperTrack);
72
91fd44c9 73
74
54b76c13 75 TH1F *fHistNTracks; // histogram showing number of ESD tracks per event
76 TH1F *fClusters; // histogram showing the number of clusters per track
77 TH2F *fModules; // 2d histogram of tracks which are propagated to the ACORDE scintillator array
78 TH1F *fHistPt; // Pt histogram of reconstructed tracks
79 TH2F *fDeDx; // dEdx spectrum showing the different particle types
80 TH1F *fDeDxMIP; // TPC signal close to the MIP region of muons 0.4 < p < 0.45 GeV
81
82 Double_t fMIPvalue; // MIP value calculated via a fit to fDeDxMIP
108953e9 83 //
9b27d39b 84 // cuts
85 //
86 Float_t fCutMaxD; // maximal distance in rfi ditection
a6dc0cf6 87 Float_t fCutMaxDz; // maximal distance in z ditection
9b27d39b 88 Float_t fCutTheta; // maximal distance in theta ditection
89 Float_t fCutMinDir; // direction vector products
54b76c13 90
76c58ee2 91 TTree *fCosmicTree; // tree with the cosmic tracks
f7f33dec 92 AliTPCcalibCosmic(const AliTPCcalibCosmic&);
93 AliTPCcalibCosmic& operator=(const AliTPCcalibCosmic&);
94
76c58ee2 95 ClassDef(AliTPCcalibCosmic, 3);
f7f33dec 96};
97
98#endif
99