New directory for the VMC tests (Ivana, Eva)
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDalignmentTask.cxx
index 9a1557b..37681fa 100644 (file)
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/
 
+///////////////////////////////////////////////
+// TRD alignment task
+//
+// Some documentation
+//
+// Authors :
+//
+////////////////////////////////////////////////
+
 #include "TTreeStream.h"
 #include "TROOT.h"
 #include "TH1.h"
@@ -62,6 +71,8 @@ void AliTRDalignmentTask::CreateOutputObjects()
 //________________________________________________________
 void AliTRDalignmentTask::Exec(Option_t *opt)
 {
+// Documentation to come
+
   AliTRDrecoTask::Exec(opt);
   PostData(1, fTree);
 }
@@ -70,21 +81,23 @@ void AliTRDalignmentTask::Exec(Option_t *opt)
 //________________________________________________________
 TH1* AliTRDalignmentTask::PlotTrackPoints(const AliTRDtrackV1 *track)
 {
-  if(track) fTrack = track;
-  if(!fTrack){
+// Documentation to come 
+
+  if(track) fkTrack = track;
+  if(!fkTrack){
     AliWarning("No Track defined.");
     return 0x0;
   }
 
   if (fArray) delete fArray;
-  fArray = new AliTrackPointArray(fTrack->GetNumberOfTracklets());
+  fArray = new AliTrackPointArray(fkTrack->GetNumberOfTracklets());
 
   // Filling the track points array
   Float_t x, y, z;
   AliTrackPoint p; Int_t ip = 0;
   AliTRDseedV1 *tracklet = 0x0;
   for(Int_t il=0; il<AliTRDgeometry::kNlayer; il++){
-    if(!(tracklet = fTrack->GetTracklet(il))) continue;
+    if(!(tracklet = fkTrack->GetTracklet(il))) continue;
     if(!tracklet->IsOK()) continue;
     tracklet->Fit(kTRUE);
 
@@ -113,52 +126,7 @@ TH1* AliTRDalignmentTask::PlotTrackPoints(const AliTRDtrackV1 *track)
 
 
 //________________________________________________________
-void AliTRDalignmentTask::GetRefFigure(Int_t ifig)
-{
-  AliInfo(Form("Reference plot [%d] missing result", ifig));
-}
-
-
-//________________________________________________________
-void AliTRDalignmentTask::Terminate(Option_t *)
-{
-  if(fDebugStream){ 
-    delete fDebugStream;
-    fDebugStream = 0x0;
-    fDebugLevel = 0;
-  }
-  if(HasPostProcess()) PostProcess();
-}
-
-
-//________________________________________________________
-TObjArray* AliTRDalignmentTask::Histos()
-{
-  return 0x0;
-/*  if(fContainer) return fContainer;
-
-  fContainer  = new TObjArray(3);
-
-  TH1 *h = 0x0;
-  
-  if(!(h = (TH1D*)gROOT->FindObject("cuttra"))){
-    h = new TH1D("cuttra","cuttra",20,0.5,20.5); 
-  } else h->Reset();
-
-  if(!(h = (TH1D*)gROOT->FindObject("cutpoi"))){
-    h = new TH1D("cutpoi","cutpoi",20,0.5,20.5);
-  } else h->Reset();
-
-  if(!(h = (TH2D*)gROOT->FindObject("modpop"))){
-    h = new TH2D("modpop","modpop",90,-0.5,89.5,30,-0.5,29.5);
-    h->SetXTitle("module nr");
-    h->SetYTitle("layer nr");
-  } else h->Reset();*/
-}
-
-
-//________________________________________________________
-Bool_t AliTRDalignmentTask::IsIdenticalWithOneOf(AliTrackPoint *p, AliTrackPointArray *parray, int nmax) {
+Bool_t AliTRDalignmentTask::IsIdenticalWithOneOf(AliTrackPoint * const p, AliTrackPointArray *parray, int nmax) {
 
   // Is the point p identical with one of the points on the list parray?
   // This is a fix for aliroot 4-16-Rev-01 (and before) writing some