1 #ifndef ALITPCCALIBCOSMIC_H
2 #define ALITPCCALIBCOSMIC_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 #include "AliTPCcalibBase.h"
8 #include "AliTPCCalPad.h"
15 #include "TTreeStream.h"
18 class AliTPCcalibCosmic:public AliTPCcalibBase {
21 AliTPCcalibCosmic(const Text_t *name, const Text_t *title);
22 virtual ~AliTPCcalibCosmic();
24 virtual void Process(AliESDEvent *event);
25 virtual Long64_t Merge(TCollection *li);
26 virtual void Analyze();
28 void FindPairs(AliESDEvent *event);
29 Bool_t IsPair(AliExternalTrackParam *tr0, AliExternalTrackParam *tr1);
30 void SetGainMap(AliTPCCalPad *GainMap){fGainMap = GainMap;};
31 static void CalculateBetheParams(TH2F *hist, Double_t * initialParam);
32 static Double_t CalculateMIPvalue(TH1F * hist);
33 AliExternalTrackParam *Invert(AliExternalTrackParam *input);
35 TH1F * GetHistNTracks(){return fHistNTracks;};
36 TH1F * GetHistClusters(){return fClusters;};
37 TH2F * GetHistAcorde(){return fModules;};
38 TH1F * GetHistPt(){return fHistPt;};
39 TH2F * GetHistDeDx(){return fDeDx;};
40 TH1F * GetHistMIP(){return fDeDxMIP;};
42 Double_t GetMIPvalue(){return fMIPvalue;};
44 static void BinLogX(TH1 * h); // method for correct histogram binning
49 void FillAcordeHist(AliESDtrack *upperTrack);
51 AliTPCCalPad *fGainMap; // gain map from Krypton calibration
52 TH1F *fHistNTracks; // histogram showing number of ESD tracks per event
53 TH1F *fClusters; // histogram showing the number of clusters per track
54 TH2F *fModules; // 2d histogram of tracks which are propagated to the ACORDE scintillator array
55 TH1F *fHistPt; // Pt histogram of reconstructed tracks
56 TH2F *fDeDx; // dEdx spectrum showing the different particle types
57 TH1F *fDeDxMIP; // TPC signal close to the MIP region of muons 0.4 < p < 0.45 GeV
59 Double_t fMIPvalue; // MIP value calculated via a fit to fDeDxMIP
63 Float_t fCutMaxD; // maximal distance in rfi ditection
64 Float_t fCutTheta; // maximal distance in theta ditection
65 Float_t fCutMinDir; // direction vector products
67 AliTPCcalibCosmic(const AliTPCcalibCosmic&);
68 AliTPCcalibCosmic& operator=(const AliTPCcalibCosmic&);
70 ClassDef(AliTPCcalibCosmic, 1);