]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
avoid writing of Geometry helper, create them in UserCreateOutputObjects()
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jun 2010 14:05:08 +0000 (14:05 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jun 2010 14:05:08 +0000 (14:05 +0000)
PWG4/JCORRAN/AliJCORRANTask.cxx
PWG4/JCORRAN/AliJCORRANTask.h

index 6af95b901a12c49391a294c3c5cf9525a0e3f6e7..76257f278c983cc71f180533246d33d6108ab769 100755 (executable)
@@ -131,16 +131,7 @@ AliJCORRANTask::AliJCORRANTask(const char *name, TString inputformat) :
   
   DefineInput (0, TChain::Class());
 
-  fTrackList    = new AliPhJTrackList(kALICE);
-  fMCTrackList  = new AliPhJMCTrackList(kALICE);
-  fPhotonList   = new AliPhJPhotonList(kALICE);
-  fHeaderList   = new AliPhJHeaderList(kALICE);
-  
-  fAliRunHeader = new AliJRunHeader();
-
-  fPHOSGeom  = new AliPHOSGeoUtils("PHOSgeo") ;
-  fEMCALGeom = new AliEMCALGeoUtils("EMCAL_COMPLETE");
-  
 
 }
 
@@ -194,6 +185,17 @@ AliJCORRANTask::~AliJCORRANTask()
 //________________________________________________________________________
 void AliJCORRANTask::UserCreateOutputObjects()
 {  
+
+  fTrackList    = new AliPhJTrackList(kALICE);
+  fMCTrackList  = new AliPhJMCTrackList(kALICE);
+  fPhotonList   = new AliPhJPhotonList(kALICE);
+  fHeaderList   = new AliPhJHeaderList(kALICE);
+  
+  fAliRunHeader = new AliJRunHeader();
+
+  fPHOSGeom  = new AliPHOSGeoUtils("PHOSgeo") ;
+  fEMCALGeom = new AliEMCALGeoUtils("EMCAL_COMPLETE");
   // create the jcorran output deltaAOD
   //if(fDebug > 5) cout << "AliJCORRANTask UserCreateOutputObjects----------------------"<<endl;
   
index c6672c910afa570b794b460f8e1cbc9dcb1185e4..42d959e0e953d89569b3b334d26c97fdde8bc303 100755 (executable)
@@ -137,8 +137,8 @@ private:
 
   AliJRunHeader*     fAliRunHeader; // run details
  
-  AliPHOSGeoUtils  * fPHOSGeom;  //phos geometry matrix 
-  AliEMCALGeoUtils * fEMCALGeom; //emcal geometry matrix
+  AliPHOSGeoUtils  * fPHOSGeom;  //phos geometry matrix 
+  AliEMCALGeoUtils * fEMCALGeom; //emcal geometry matrix
    
   ClassDef(AliJCORRANTask, 2) // JCORRAN analysis task 
 };