Display() method is replaced by more general utility Hdisp.C
authorkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Feb 2007 16:25:31 +0000 (16:25 +0000)
committerkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Feb 2007 16:25:31 +0000 (16:25 +0000)
HMPID/AliHMPIDRecon.cxx
HMPID/AliHMPIDRecon.h

index f44e55a..99905b5 100644 (file)
@@ -378,60 +378,3 @@ Double_t AliHMPIDRecon::SigGeom(Double_t thetaC, Double_t phiC,Double_t betaM)co
   return trErr*err;
 }//SigGeom()
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-void AliHMPIDRecon::Display() 
-{
-// Display digits, reconstructed tracks intersections and HMPID rings if available 
-// Arguments: none
-//   Returns: none    
-  TFile *pEsdFl=TFile::Open("AliESDs.root");     if(!pEsdFl || !pEsdFl->IsOpen()) return;//open AliESDs.root                                                                    
-  TTree *pEsdTr=(TTree*) pEsdFl->Get("esdTree"); if(!pEsdTr)                      return;//get ESD tree
-                                                                 
-  AliESD *pEsd=new AliESD;  pEsdTr->SetBranchAddress("ESD", &pEsd);
-  
-  TPolyMarker  *pDigMap[7]; //digits map
-  TPolyMarker  *pTrkMap[7]; Int_t aTrkCnt[7]; //TRKxPC intersection map
-  
-  for(Int_t i=0;i<7;i++){
-                  pDigMap[i]=new TPolyMarker(); pDigMap[i]->SetMarkerStyle(25); pDigMap[i]->SetMarkerSize(0.5); pDigMap[i]->SetMarkerColor(kGreen); 
-    aTrkCnt[i]=0; pTrkMap[i]=new TPolyMarker(); pTrkMap[i]->SetMarkerStyle(4);  pTrkMap[i]->SetMarkerSize(0.5); pTrkMap[i]->SetMarkerColor(kRed); 
-  }
-
-  AliHMPIDRecon rec;
-  
-  TLatex t;
-  TCanvas *pC = new TCanvas("HMPIDDisplay","HMPID Display",0,0,1226,900);  pC->Divide(3,3);
-  
-  for(Int_t iEvt=0;iEvt<pEsdTr->GetEntries();iEvt++) {                //events loop
-    pC->cd(3);  t.DrawText(0.2,0.4,Form("Event %i",iEvt));        //print current event number
-    pEsdTr->GetEntry(iEvt);                                       //get ESD for this event   
-    for(Int_t iTrk=0;iTrk<pEsd->GetNumberOfTracks();iTrk++){//ESD tracks loop
-      AliESDtrack *pTrk = pEsd->GetTrack(iTrk);             //
-      Float_t th,ph,x,y; pTrk->GetHMPIDtrk(x,y,th,ph); if(x<0) continue;
-      Int_t ch=pTrk->GetHMPIDcluIdx()/1000000;
-      pTrkMap[ch]->SetPoint(aTrkCnt[ch]++,x,y);
-    }//ESD tracks loop
-    
-//     al->GetEvent(iEvt);   rl->TreeD()->GetEntry(0); //get digits list
-    for(Int_t iCh=0;iCh<7;iCh++) {//chambers loop
-//       for(Int_t iDig=0;iDig < r->DigLst(iCh)->GetEntries();iDig++) {      //digits loop
-//         AliHMPIDDigit *pDig = (AliHMPIDDigit*)r->DigLst(iCh)->At(iDig);     
-//         pDigMap[iCh]->SetPoint(iDig,pDig->LorsX(),pDig->LorsY());
-//       }                                                             //digits loop
-// 
-//       
-      if(iCh==6) pC->cd(1); if(iCh==5) pC->cd(2);
-      if(iCh==4) pC->cd(4); if(iCh==3) pC->cd(5); if(iCh==2) pC->cd(6);
-                            if(iCh==1) pC->cd(8); if(iCh==0) pC->cd(9);
-                          
-      AliHMPIDDigit::DrawPc();  pTrkMap[iCh]->Draw(); pDigMap[iCh]->Draw();
-    }//chambers loop
-//    pC->Update();
-//    pC->Modified();
-//    if(iEvt<iEvtTo) {gPad->WaitPrimitive();pC->Clear();}
-    
-    
-    
-  }//events loop
-  delete pEsd;  pEsdFl->Close();//close AliESDs.root
-//  rl->UnloadDigits();
-}//Display()
index 144ce2f..f8bddad 100644 (file)
@@ -40,10 +40,6 @@ public :
   Double_t SigGeom      (Double_t ckovTh,Double_t ckovPh,Double_t beta                      )const;//error due to unknown photon origin
   Double_t SigCrom      (Double_t ckovTh,Double_t ckovPh,Double_t beta                      )const;//error due to unknonw photon energy
   Double_t Sigma2       (Double_t ckovTh,Double_t ckovPh                                    )const;//photon candidate sigma
-  
-  static void  Display  (                                                                   );    //event display  
-   
-  
 protected:
   static const Double_t fgkRadThick;                      //radiator thickness
   static const Double_t fgkWinThick;                      //window thickness