]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/Hmenu.C
add all histos
[u/mrichter/AliRoot.git] / HMPID / Hmenu.C
index b0bb6bfdb2f6cd667f766bb2311de40e83b60124..45400bb561538618b5c4c79b677c39ca40ccccf4 100644 (file)
@@ -1,20 +1,10 @@
 AliRun     *a; AliRunLoader *al;   TGeoManager *g; //globals for easy manual manipulations
 AliHMPID   *h; AliLoader    *hl; AliHMPIDParam *hp;
-Bool_t isGeomType=kFALSE;
 
 Int_t nCurEvt=0;
 Int_t nMaxEvt=0;
 TControlBar *pMenu=0;
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-void GetParam()
-{
-  isGeomType=!isGeomType;
-  if(g) delete g;  if(hp) delete hp; //delete current TGeoManager and AliHMPIDParam
-  if(isGeomType) g=TGeoManager::Import("geometry.root");
-  else           g=TGeoManager::Import("misaligned_geometry.root");
-  hp=AliHMPIDParam::Instance();
-}//GetParam()
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void Hmenu()
 {   
   TString status="Status: ";
@@ -32,7 +22,9 @@ void Hmenu()
     status+="PROBLEM PROBLEM PROBLEM no galice.root";
   
   status+=Form(" curent event %i",nCurEvt);
-  GetParam();
+
+  AliHMPIDParam::Instance();      // geometry loaded
+
   pMenu = new TControlBar("horizontal",status.Data(),0,0);
     pMenu->AddButton("                     ","","");
     pMenu->AddButton("       General       ","General()"  ,"general items which do not depend on any files");
@@ -115,7 +107,7 @@ void PrintMap()
  
   Double_t r2d=TMath::RadToDeg();
 
-  Double_t x=AliHMPIDDigit::SizeAllX(),y=AliHMPIDDigit::SizeAllY();
+  Double_t x=AliHMPIDParam::SizeAllX(),y=AliHMPIDParam::SizeAllY();
     
   Printf("\n\n\n");                                       
   
@@ -200,9 +192,6 @@ void t1(Int_t case=1)
   
   cl->Print();  
 }//t1()
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void hp(Int_t iEvt=0)
 {
@@ -264,16 +253,3 @@ void cp(Int_t iEvt=0)
   Printf("totally %i clusters for event %i",iCluCnt,iEvt);
 }
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-void ttt()
-{
-  TClonesArray hits ("AliHMPIDDigit");
-  TClonesArray sdigs("AliHMPIDDigit");
-  
-  AliHMPIDHit hit(0,45e-9,kProton,33,0,0);
-  hit.Hit2Sdi(&sdigs);
-  sdigs.Print();
-}
-
-
-#include "Hdisp.C"