]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/macros/AnalyzeLaser.C
Updated flags for low flux case (A. Dainese)
[u/mrichter/AliRoot.git] / TPC / macros / AnalyzeLaser.C
CommitLineData
13ba3684 1
2gSystem->Load("libSTAT.so");
3TStatToolkit stat;
4Int_t npoints;
5Double_t chi2;
6TVectorD vec;
7TMatrixD mat;
8
9
10TObjArray * array = AliTPCCalibViewerGUI::ShowGUI("laserTree.root");
11AliTPCCalibViewerGUI * viewer = (AliTPCCalibViewerGUI*)array->At(0);
12TTree * tree = viewer->GetViewer()->GetTree();
13TFile fp("/data/calib/CalibTreePulser_run33834_Cside.root");
14tree->AddFriend(treePulser,"P.");
15
16
17tree->SetAlias("dt","(sector%36>30)*2+(sector<36)*0.3");
18tree->SetAlias("T","T0_100_220.fElements-P..StandardTime0.fElements");
19tree->SetAlias("Tm","T0_100_220_Median.fElements");
20tree->SetAlias("Q","Q_100_220.fElements");
21tree->SetAlias("Qm","Q_100_220_Median.fElements");
22
23tree->SetAlias("Qcut","abs(Q/Qm-2)<1.4&&Q>6&&Q<200");
24tree->SetAlias("Tcut","abs(T-Tm)<2");
25
26
27
28TString strSector="";
29{
30 for (Int_t isec=54;isec<71;isec+=1){
31 if (isec!=64) {
32 strSector+="(sector==";
33 strSector+=isec;
34 strSector+=")++";
35 strSector+="(lx.fElements-195.)*(sector==";
36 strSector+=isec;
37 strSector+=")++";
38 strSector+="((lx.fElements-195)^2)*(sector==";
39 strSector+=isec;
40 strSector+=")++";
41 }
42 }
43}
44
45
46TCut cutA="Tcut&&Qcut&&sector%36>17";
47
48TString *strFitG =stat.FitPlane(tree,"T+dt","gx.fElements++gy.fElements",cutA,chi2,npoints,vec,mat);
49
50TString *strFitGL =stat.FitPlane(tree,"T+dt","lx.fElements++ly.fElements++gx.fElements++gy.fElements",cutA,chi2,npoints,vec,mat);
51
52TString *strFitGL2 =stat.FitPlane(tree,"T+dt","lx.fElements++ly.fElements++gx.fElements++gy.fElements++lx.fElements^2++ly.fElements^2",cutA,chi2,npoints,vec,mat);
53
54TString *strFitGLA =stat.FitPlane(tree,"T+dt",strSector+"lx.fElements++ly.fElements++gx.fElements++gy.fElements++lx.fElements^2++ly.fElements^2",cutA,chi2,npoints,vec,mat);
55
56
57tree->SetAlias("tfitG",strFitG->Data())
58tree->SetAlias("tfitGL",strFitGL->Data())
59tree->SetAlias("tfitGL2",strFitGL2->Data())
60tree->SetAlias("tfitGLA",strFitGLA->Data())
61
62