]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ACORDE/AliACORDEAlign.cxx
ATO-97 - adding defaul aliases for per pad calibrations
[u/mrichter/AliRoot.git] / ACORDE / AliACORDEAlign.cxx
index e908bed1263da67eb4558b447f0e5b977ae9260d..8d6fe805fa103889332ba0f7c9170d16aa3cca7b 100644 (file)
@@ -34,8 +34,8 @@
 // Survey results are fetched from 
 // Survey Depot, based on survey results 
 // position of ACORDE alignment objects is computed.
-
-
+using std::cout;
+using std::endl;
 ClassImp(AliACORDEAlign)
 
 
@@ -55,11 +55,11 @@ AliACORDEAlign::AliACORDEAlign() :
   //
 }
 
-AliACORDEAlign::AliACORDEAlign(Int_t reportloc,Int_t reportglob):
+AliACORDEAlign::AliACORDEAlign(/*Int_t reportloc,*/Int_t reportglob):
   TObject(),
   fFileGlob(0x0),
-  fRepLoc(reportloc),
-  fRepGlob(reportglob),
+  fRepLoc(0),
+  fRepGlob(0),
   fUser(0x0),
   fX(120,4),
   fAlignACORDEObjArray(0x0),
@@ -71,45 +71,14 @@ AliACORDEAlign::AliACORDEAlign(Int_t reportloc,Int_t reportglob):
   //fRepLoc = new reportloc[80];
   //fRepGlob = new reportglob[80];
   Char_t path[50];
-  //fFileGlob = new Char_t[80];
-  //fUser = new Char_t[10];
-  snprintf(path,50,gSystem->Getenv("ALICE_ROOT")); 
+   fFileGlob = new Char_t[80];
+   fUser = new Char_t[10];
+  snprintf(path,50,"%s",gSystem->Getenv("ALICE_ROOT")); 
   // 
   snprintf(fFileGlob,80,"%s/ACORDE/Survey_%d_ACORDE.txt",path,reportglob);
   //
- snprintf(fUser,80,gSystem->Getenv("alien_API_USER"));
-
-}
-
-
-
-
-AliACORDEAlign::AliACORDEAlign(const AliACORDEAlign &align):
-  TObject(),
-  fFileGlob(0x0),
-  fRepLoc(0),
-  fRepGlob(0),
-  fUser(0x0),
-  fX(),
-  fAlignACORDEObjArray(0x0),
-  fDebug(0)
-{
-  //
-  //  default copy constructor
-fDebug = align.fDebug;
-}
-
-//__________________________________________________________________________
-AliACORDEAlign & AliACORDEAlign::operator =(const AliACORDEAlign &align)
-
-{
-  //
-  // assignment operator - dummy
+ snprintf(fUser,10,"%s",gSystem->Getenv("alien_API_USER"));
 
- //
-fDebug = align.fDebug;
-  return (*this);
 }
 
 //__________________________________________________________________________
@@ -204,7 +173,8 @@ Int_t  nid=0;
 
 //Read  two points 
 AliSurveyPoint  *InnerPoint;
-AliSurveyPoint *OuterPoint; 
+AliSurveyPoint *OuterPoint
+; 
 AliSurveyPoint  *CenterPoint;
 
 
@@ -465,7 +435,7 @@ void AliACORDEAlign::StoreAlignObj()
 
     
 
-    snprintf(fullname,80,filename);
+    snprintf(fullname,80,"%s",filename);
        
    
     TFile *f = new TFile(fullname,"RECREATE");