]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding the histograms for the TPC-only track impact parameters.
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 22:38:09 +0000 (22:38 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 22:38:09 +0000 (22:38 +0000)
STEER/AliGlobalQADataMaker.cxx
STEER/AliGlobalQADataMaker.h

index a002b65aac7cbbc24b14c5997607561c5ef07421..c4fb17039607e859ab7d462964ec47f91fa8175d 100644 (file)
@@ -164,7 +164,11 @@ void AliGlobalQADataMaker::InitESDs() {
       "hGlobalTPCITSMatchedpT",                             // kTrk3
       "hGlobalTPCTOFMatchedpT",                             // kTrk4
       "hGlobalTPCITSMatchingProbability",                   // kTrk5
-      "hGlobalTPCTOFMatchingProbability"                    // kTrk6
+      "hGlobalTPCTOFMatchingProbability",                   // kTrk6
+      "hGlobalTPCsideAposDCA",                              // kTrk7
+      "hGlobalTPCsideAnegDCA",                              // kTrk8
+      "hGlobalTPCsideCposDCA",                              // kTrk9
+      "hGlobalTPCsideCnegDCA"                               // kTrk10
   };
     const Char_t *title[]={
       "Track azimuthal distribution (rad)",                   // kTrk0
@@ -173,7 +177,11 @@ void AliGlobalQADataMaker::InitESDs() {
       "TPC-ITS matched: track momentum distribution (GeV)",   // kTrk3
       "TPC-TOF matched: track momentum distribution (GeV)",   // kTrk4
       "TPC-ITS track-matching probability",                   // kTrk5
-      "TPC-TOF track-matching probability"                    // kTrk6
+      "TPC-TOF track-matching probability",                   // kTrk6
+      "TPC side A: DCA for the positive tracks (mm)",         // kTrk7
+      "TPC side A: DCA for the negative tracks (mm)",         // kTrk8
+      "TPC side C: DCA for the positive tracks (mm)",         // kTrk9
+      "TPC side C: DCA for the negative tracks (mm)"          // kTrk10
     };
   Add2ESDsList(new TH1F(name[0],title[0],100, 0.,TMath::TwoPi()),kTrk0);
   Add2ESDsList(new TH1F(name[1],title[1],100,-2.00,2.00),kTrk1);
@@ -182,6 +190,10 @@ void AliGlobalQADataMaker::InitESDs() {
   Add2ESDsList(new TH1F(name[4],title[4],50,  0.20,5.00),kTrk4);
   Add2ESDsList(new TH1F(name[5],title[5],50,  0.20,5.00),kTrk5);
   Add2ESDsList(new TH1F(name[6],title[6],50,  0.20,5.00),kTrk6);
+  Add2ESDsList(new TH1F(name[7],title[7],50, -25.0,25.0),kTrk7);
+  Add2ESDsList(new TH1F(name[8],title[8],50, -25.0,25.0),kTrk8);
+  Add2ESDsList(new TH1F(name[9],title[9],50, -25.0,25.0),kTrk9);
+  Add2ESDsList(new TH1F(name[10],title[10],50, -25.0,25.0),kTrk10);
   }
 
   {// V0 related QA
@@ -286,6 +298,28 @@ void AliGlobalQADataMaker::MakeESDs(AliESDEvent * event) {
        }
       }
     }
+    const AliExternalTrackParam *tpcTrack=track->GetTPCInnerParam();
+    const AliExternalTrackParam *innTrack=track->GetInnerParam();
+    if (tpcTrack)
+    if (innTrack) {
+       const AliESDVertex *vtx=esd->GetPrimaryVertex();
+       Double_t xv=vtx->GetXv();
+       Double_t yv=vtx->GetYv();
+       Double_t zv=vtx->GetZv();
+       Float_t dz[2];
+       tpcTrack->GetDZ(xv,yv,zv,esd->GetMagneticField(),dz);
+       dz[0]*=10.; // in mm
+       if (innTrack->GetZ()  > 0)
+       if (innTrack->GetTgl()> 0) { // TPC side A
+         if (tpcTrack->GetSign() > 0) GetESDsData(kTrk7)->Fill(dz[0]);
+          else                         GetESDsData(kTrk8)->Fill(dz[0]);
+       }
+       if (innTrack->GetZ()  < 0)
+       if (innTrack->GetTgl()< 0) { // TPC side C
+         if (tpcTrack->GetSign() > 0) GetESDsData(kTrk9)->Fill(dz[0]);
+          else                         GetESDsData(kTrk10)->Fill(dz[0]);
+       }
+    }
 
     // PID related QA
     if ((p>0.4) && (p<0.5)) {
index 97a745fdef7682f205df745f86cc84731cc143ad..acbae29740e89108f480345b5a20d8f1b5274df2 100644 (file)
@@ -16,7 +16,7 @@ class AliGlobalQADataMaker: public AliQADataMakerRec {
 public:
   enum {
     kClr0,kClr1,kClr2,
-    kTrk0,kTrk1,kTrk2,kTrk3,kTrk4,kTrk5,kTrk6,
+    kTrk0,kTrk1,kTrk2,kTrk3,kTrk4,kTrk5,kTrk6,kTrk7,kTrk8,kTrk9,kTrk10,
     kK0on,kK0off,kL0on,kL0off,
     kPid0,kPid1,kPid2,
     kLast