]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcalibLaser.cxx
17fae5aa68ac91e12b39d576fa203513e3187c8d
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibLaser.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /*
17   laser track clasification;
18   TCut cutFi("cutFi","abs((180*atan2(x1,x0)/pi-20)%60)<5");
19   TCut cutFi("cutFi","abs((180*atan2(x1,x0)/pi-20)%40)<5");
20   
21 */
22
23
24
25 #include "TLinearFitter.h"
26 #include "AliTPCcalibLaser.h"
27 #include "AliExternalTrackParam.h"
28 #include "AliESDtrack.h"
29 #include "AliTPCTracklet.h"
30 #include "TH1D.h"
31 #include "TVectorD.h"
32 #include "TTreeStream.h"
33 #include "TFile.h"
34 #include "TF1.h"
35 #include "TGraphErrors.h"
36 #include "AliTPCclusterMI.h"
37 #include "AliTPCseed.h"
38 #include "AliTracker.h"
39 #include "TClonesArray.h"
40
41
42 #include "TTreeStream.h"
43 #include <iostream>
44 #include <sstream>
45 using namespace std;
46
47 ClassImp(AliTPCcalibLaser)
48
49 AliTPCcalibLaser::AliTPCcalibLaser():
50   AliTPCcalibBase()
51 {
52   //
53   // Constructor
54   //
55 }
56
57 AliTPCcalibLaser::AliTPCcalibLaser(const Text_t *name, const Text_t *title):
58   AliTPCcalibBase()  
59 {
60   SetName(name);
61   SetTitle(title);
62   //
63   // Constructor
64   //
65   
66 }
67
68 AliTPCcalibLaser::~AliTPCcalibLaser() {
69   //
70   // destructor
71   //
72 }
73
74 void AliTPCcalibLaser::Process(AliESDtrack *track) {
75   //
76   // 
77   //
78   // 1. Propagate track to the mirror radius
79   Float_t kRadius = 271.6;
80   if (!track->GetOuterParam()) return;
81   AliExternalTrackParam param(*(track->GetOuterParam()));
82   AliTracker::PropagateTrackTo(&param,270.,0.0005,3,kTRUE);
83   AliTracker::PropagateTrackTo(&param,kRadius,0.0005,0.1,kTRUE);
84   //
85   if (fStreamLevel>0){
86     TTreeSRedirector *cstream = GetDebugStreamer();
87     Double_t xyz[3];
88     Double_t pxyz[3];
89     param.GetXYZ(xyz);
90     param.GetPxPyPz(pxyz);
91     if (cstream){
92       (*cstream)<<"Track"<<
93         "Tr.="<<&param<<
94         "x0="<<xyz[0]<<
95         "x1="<<xyz[1]<<
96         "x2="<<xyz[2]<<
97         "px0="<<pxyz[0]<<
98         "px1="<<pxyz[1]<<
99         "px2="<<pxyz[2]<<
100         "\n";
101     }
102   }
103 }
104
105 void AliTPCcalibLaser::Analyze(){
106   //
107   //
108   //
109 }
110
111
112 void AliTPCcalibLaser::Terminate(){
113   //
114   //
115   //
116 }
117
118
119
120