Initialization of TVector3 data member is corrected
[u/mrichter/AliRoot.git] / PHOS / MakePHOSZeroMisAlignment.C
index 72032a0..edd7861 100644 (file)
@@ -1,6 +1,7 @@
 void MakePHOSZeroMisAlignment(){
   // Create TClonesArray of zero misalignment objects for PHOS
   //
+  const char* macroname = "MakePHOSZeroMisAlignment.C";
   const AliPHOSGeometry *phosGeom = AliPHOSGeometry::GetInstance("IHEP", "IHEP");
   if (!phosGeom) {
     Error("MakePHOSFullMisAlignment", "Cannot obtain AliPHOSGeometry singleton\n");
@@ -62,8 +63,7 @@ void MakePHOSZeroMisAlignment(){
   AliPHOSSurvey geodesicData;
   geodesicData.CreateNullObjects(alobj, phosGeom);
 
-  const char* macroname = "MakePHOSZeroMisAlignment.C";
-  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
+  if( TString(gSystem->Getenv("TOCDB")) != TString("kTRUE") ){
     // save on file
     const char* filename = "PHOSzeroMisalignment.root";
     TFile f(filename,"RECREATE");