]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONSurveyCh8L.C
next50 trigger mask in AliHLTGlobalEsdConverterComponent
[u/mrichter/AliRoot.git] / MUON / MUONSurveyCh8L.C
index 71792143d7c8b75d66f4cddab84bc6bb92da99bd..db9533601c0945d1783ace7698e1704dbdcb670a 100644 (file)
 
 /* $Id$ */
 
-// ---
-// Macro to process survey and photogrammetry data of chamber 8L
-// 
-// Macro loads the survey data from .txt file using AliSurveyObj.
-// Macro MUONSurveyUtil.C is then loaded.
-// The transformations of the slats are obatained in 2 steps:
-//   1. Fit a plane to the sticker targets -> psi, theta
-//   2. Using above psi in theta obtain xc, yc, zc and phi by solving 
-//      the equations from a local to global transformation of the
-//      fixed button targets
-// Various histograms are filled and printed for monitoring.
-// MisAlignment object is then created.
-//
-// Author: Javier Castillo
-// ---
+/// \ingroup macros
+/// \file MUONSurveyCh8L.C
+/// \brief Macro to process survey and photogrammetry data of chamber 8L
+///  
+///  Macro loads the survey data from .txt file using AliSurveyObj.
+///  Macro MUONSurveyUtil.C is then loaded.
+///
+///  The transformations of the slats are obatained in 2 steps:
+///  -  1. Fit a plane to the sticker targets -> psi, theta
+///  -  2. Using above psi in theta obtain xc, yc, zc and phi by solving 
+///        the equations from a local to global transformation of the
+///        fixed button targets
+///
+///  Various histograms are filled and printed for monitoring.
+///  MisAlignment object is then created.
+/// 
+/// \author Javier Castillo
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 
@@ -87,18 +89,13 @@ AliMUONGeometryTransformer *ReAlign(const AliMUONGeometryTransformer * transform
 void MUONSurveyCh8L() {
   
   char str[100];
-  char opt[100];
-  char var[100];
   char filename[100];
-  Char_t histoName[20];
-  Char_t histoTitle[50];
   
   int saveps = 1;
-  const int font = 41; // Helvetica + precision 1
   const int cWidth = (int)(700*(29./21.));
   const int cHeight = 700;
-  const int   lineColor = 1;
-  const int   fillColor = 4;
+//   const int   lineColor = 1;
+//   const int   fillColor = 4;
 //   const int   filetype  = 111; // portrait  
   const int   filetype  = 112; // landscape  
   
@@ -276,7 +273,7 @@ void MUONSurveyCh8L() {
   }
   
   // Keep the id of slat sticker targets next to slat button targets
-  Int_t iSSBT[13][2] = {0};
+  Int_t iSSBT[13][2] = {{0}};
   
   // Fill graph with sticker target positions
   for (int iSlat=0; iSlat<nSlats; iSlat++){
@@ -398,12 +395,12 @@ void MUONSurveyCh8L() {
     fPhiYSlat[iSlat][1][1] = new TF2(fphiyName,phiypp,yMin,yMax,yMin,yMax,7);   
   }
 
-  Double_t *xce = new Double_t[nSlats]; 
-  Double_t *yce = new Double_t[nSlats]; 
-  Double_t *zce = new Double_t[nSlats]; 
+//   Double_t *xce = new Double_t[nSlats]; 
+//   Double_t *yce = new Double_t[nSlats]; 
+//   Double_t *zce = new Double_t[nSlats]; 
   Double_t *psi = new Double_t[nSlats]; 
   Double_t *tht = new Double_t[nSlats]; 
-  Double_t *phi = new Double_t[nSlats]; 
+//   Double_t *phi = new Double_t[nSlats]; 
 
   Double_t **lCenSlat = new Double_t*[nSlats];
   Double_t **lRotSlat = new Double_t*[nSlats];
@@ -525,14 +522,14 @@ void MUONSurveyCh8L() {
     cout << "BSdiff: " << TMath::Abs(pointSBT[0]->GetY() - pointSSBT[0]->GetY()) << " " << TMath::Abs(pointSBT[1]->GetY() - pointSSBT[1]->GetY()) << " " << tempDiff1/(iSlat+1) << " " << tempDiff2/(iSlat+1) << " " << tempDiff/(iSlat+1) << endl;
 
 
-    Double_t p0l[3] = {0};
+    //    Double_t p0l[3] = {0};
     Double_t p1l[3] = {0};
     Double_t p2l[3] = {0};
-    Double_t p0g[3] = {0};
+    //    Double_t p0g[3] = {0};
     Double_t p1g[3] = {0};
     Double_t p2g[3] = {0};
 
-    p0l[2] = lSBTLoc6[iSlat][0][2];
+    //    p0l[2] = lSBTLoc6[iSlat][0][2];
     // Button targets local coordinates
     for(Int_t iCor=0; iCor<3; iCor++){
       p1l[iCor]= lSBTLoc6[iSlat][0][iCor];
@@ -744,7 +741,6 @@ void MUONSurveyCh8L() {
     trfSlat[iSlat].SetTranslation(lCenSlat[iSlat]); 
   }
 
-  Double_t *myTrans = 0;
   for(Int_t iSlat=0; iSlat<nSlats; iSlat++){
     dtrfSlat[iSlat].SetTranslation(dtransSlat[iSlat]);
     dtrfSlat[iSlat].SetRotation(drotSlat[iSlat]);