Adding flag to reject lasers events
[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"
d6920632 8#include "AliTPCCalPad.h"
54b76c13 9#include "TH2F.h"
f7f33dec 10class TH1F;
f7f33dec 11class TList;
12class AliESDEvent;
54b76c13 13class AliESDtrack;
f7f33dec 14
15#include "TTreeStream.h"
16
17
18class AliTPCcalibCosmic:public AliTPCcalibBase {
19public:
20 AliTPCcalibCosmic();
21 AliTPCcalibCosmic(const Text_t *name, const Text_t *title);
22 virtual ~AliTPCcalibCosmic();
23
54b76c13 24 virtual void Process(AliESDEvent *event);
25 virtual Long64_t Merge(TCollection *li);
26 virtual void Analyze();
27 //
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);
428b47be 33 AliExternalTrackParam *Invert(AliExternalTrackParam *input);
54b76c13 34 //
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;};
41 //
42 Double_t GetMIPvalue(){return fMIPvalue;};
43 //
44 static void BinLogX(TH1 * h); // method for correct histogram binning
45
1aa15e8d 46 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
47 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
54b76c13 48
49private:
50
51 void FillAcordeHist(AliESDtrack *upperTrack);
52
53 AliTPCCalPad *fGainMap; // gain map from Krypton calibration
54 TH1F *fHistNTracks; // histogram showing number of ESD tracks per event
55 TH1F *fClusters; // histogram showing the number of clusters per track
56 TH2F *fModules; // 2d histogram of tracks which are propagated to the ACORDE scintillator array
57 TH1F *fHistPt; // Pt histogram of reconstructed tracks
58 TH2F *fDeDx; // dEdx spectrum showing the different particle types
59 TH1F *fDeDxMIP; // TPC signal close to the MIP region of muons 0.4 < p < 0.45 GeV
60
61 Double_t fMIPvalue; // MIP value calculated via a fit to fDeDxMIP
108953e9 62 //
9b27d39b 63 // cuts
64 //
65 Float_t fCutMaxD; // maximal distance in rfi ditection
a6dc0cf6 66 Float_t fCutMaxDz; // maximal distance in z ditection
9b27d39b 67 Float_t fCutTheta; // maximal distance in theta ditection
68 Float_t fCutMinDir; // direction vector products
54b76c13 69
f7f33dec 70 AliTPCcalibCosmic(const AliTPCcalibCosmic&);
71 AliTPCcalibCosmic& operator=(const AliTPCcalibCosmic&);
72
73 ClassDef(AliTPCcalibCosmic, 1);
74};
75
76#endif
77