HESDfromKin adapted for HTA+minors
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 May 2007 15:35:20 +0000 (15:35 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 May 2007 15:35:20 +0000 (15:35 +0000)
HMPID/AliHMPIDRecon.cxx
HMPID/HESDfromKin.C
HMPID/Hdisp.C

index b778dfb..9fd6366 100644 (file)
@@ -554,8 +554,8 @@ Bool_t AliHMPIDRecon::FitEllipse(Double_t &phiRec)
   if(!gMinuit) gMinuit = new TMinuit(5);                                               //init MINUIT with this number of parameters (5 params)
   gMinuit->mncler();                                                                   // reset Minuit list of paramters
   gMinuit->SetObjectFit((TObject*)this);  gMinuit->SetFCN(AliHMPIDRecon::FunMinEl);    //set fit function
-//  gMinuit->mnexcm("SET PRI",&aArg,1,iErrFlg);                                          //suspend all printout from TMinuit 
-//  gMinuit->mnexcm("SET NOW",&aArg,0,iErrFlg);                                          //suspend all warning printout from TMinuit
+  gMinuit->mnexcm("SET PRI",&aArg,1,iErrFlg);                                          //suspend all printout from TMinuit 
+  gMinuit->mnexcm("SET NOW",&aArg,0,iErrFlg);                                          //suspend all warning printout from TMinuit
   
   Double_t d1,d2,d3;
   TString sName;
index 3a78e86..d5ee5ab 100644 (file)
@@ -3,7 +3,7 @@ Int_t gEvt=0; Int_t gMaxEvt=0;
 TObjArray *pNmean;
 TTree *gEsdTr;
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-void HESDfromKin()
+void HESDfromKin(const char *name)
 {//simulate ESD from kinematics
 
   if(gSystem->IsFileInIncludePath("galice.root")){// tries to open session
@@ -24,17 +24,17 @@ void HESDfromKin()
 
   OpenCalib();
     
-//  SimEsd(pHL,pEsd);
-  SimEsdHidden(pHL,pEsd);
-  
+  TString ttl=name;
+  Bool_t htaCheck=ttl.Contains("HTA");
+  if(!htaCheck) SimEsd(pHL,pEsd); else SimEsdHidden(pHL,pEsd);
   pEsdFl->Write();pEsdFl->Close();        
 }
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void SimEsd(AliLoader *pHL,AliESD *pEsd)
 {
-  Printf("---------------------------------------");
-  Printf("| Utility to embed ESD from kinematics|");
-  Printf("---------------------------------------");
+  Printf("-----------------------------------------------");
+  Printf("| SimESD: Utility to embed ESD from kinematics|");
+  Printf("-----------------------------------------------");
   AliHMPIDTracker::SetFieldMap(gAL->GetAliRun()->Field(),kTRUE);
   AliHMPID *pH=(AliHMPID*)gAL->GetAliRun()->GetDetector("HMPID");
   Int_t mtid=-1;
@@ -64,9 +64,10 @@ void SimEsd(AliLoader *pHL,AliESD *pEsd)
 void SimEsdHidden(AliLoader *pHL,AliESD *pEsd)
 {
   Double_t rd=TMath::RadToDeg();
-  Printf("---------------------------------------");
-  Printf("| Utility to embed ESD from kinematics|");
-  Printf("---------------------------------------");
+  Printf("----------------------------------------------");
+  Printf("| SimHTA:Utility to embed ESD from kinematics|");
+  Printf("|     with  Hidden Track Algorithm (HTA)     |");
+  Printf("----------------------------------------------");
   AliHMPIDTracker::SetFieldMap(gAL->GetAliRun()->Field(),kTRUE);
   AliHMPID *pH=(AliHMPID*)gAL->GetAliRun()->GetDetector("HMPID");
   Int_t mtid=-1;
index 95041b7..7ef673c 100644 (file)
@@ -1,3 +1,5 @@
+#if !defined(__CINT__) || defined(__MAKECINT__)
+
 #include <TSystem.h>
 #include <TFile.h>
 #include <TTree.h>
@@ -21,6 +23,8 @@
 #include "AliHMPIDCluster.h"
 #include <TChain.h>
 
+#endif
+
 TCanvas *fCanvas=0; Int_t fType=3; Int_t fEvt=0; Int_t fNevt=0;                      
 TFile *fHitFile; TTree *fHitTree; TClonesArray *fHitLst; TPolyMarker *fRenMip[7]; TPolyMarker *fRenCko[7]; TPolyMarker *fRenFee[7];
                                   TClonesArray *fSdiLst;