Added dummy task for deleting geometry in Terminate of runCalibTrain (both cpass0...
[u/mrichter/AliRoot.git] / PWGPP / CalibMacros / commonMacros / CleanGeom.C
1 #include <TGeoManager.h>
2 #include <TChain.h>
3 #include "AliAnalysisTask.h"
4 #include "AliGeomManager.h"
5
6 // dummy task to delete geometry in Terminate
7 class CleanGeom : public AliAnalysisTask {
8 public:
9   CleanGeom(const char *name, const char *title="dummy") : AliAnalysisTask(name,title)  {DefineInput(0, TChain::Class());}
10   virtual void Terminate(Option_t * = "") {delete AliGeomManager::GetGeometry();}
11   virtual void Exec(Option_t * = "") {}
12   ClassDef(CleanGeom,0)
13 };
14 ClassImp(CleanGeom)