AliRoot Core  3dc7879 (3dc7879)
MUONSurveyCh8L.C File Reference

Macro to process survey and photogrammetry data of chamber 8L. More...

#include "AliMUONGeometryTransformer.h"
#include "AliMUONGeometryMisAligner.h"
#include "AliSurveyObj.h"
#include "AliSurveyPoint.h"
#include "AliGeomManager.h"
#include "AliCDBManager.h"
#include "AliCDBMetaData.h"
#include "AliCDBId.h"
#include <TROOT.h>
#include <TGeoManager.h>
#include <TClonesArray.h>
#include <TObjArray.h>
#include <TObjString.h>
#include <TMath.h>
#include <TString.h>
#include <Riostream.h>
#include <TF2.h>
#include <TH2.h>
#include <TGraph2DErrors.h>
#include <TGraph.h>
#include <TVector3.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TPostScript.h>
#include <TPaveLabel.h>
#include <TStyle.h>
#include <fstream>
Include dependency graph for MUONSurveyCh8L.C:

Go to the source code of this file.

Functions

Bool_t MatrixToAngles (const Double_t *rot, Double_t *angles)
 
Double_t eqPlane (Double_t *x, Double_t *par)
 
Double_t xpCenter (Double_t *x, Double_t *par)
 
Double_t xnCenter (Double_t *x, Double_t *par)
 
Double_t ypCenter (Double_t *x, Double_t *par)
 
Double_t ynCenter (Double_t *x, Double_t *par)
 
Double_t zpCenter (Double_t *x, Double_t *par)
 
Double_t znCenter (Double_t *x, Double_t *par)
 
Double_t phixpp (Double_t *x, Double_t *par)
 
Double_t phixpn (Double_t *x, Double_t *par)
 
Double_t phixnp (Double_t *x, Double_t *par)
 
Double_t phixnn (Double_t *x, Double_t *par)
 
Double_t phiypp (Double_t *x, Double_t *par)
 
Double_t phiypn (Double_t *x, Double_t *par)
 
Double_t phiynp (Double_t *x, Double_t *par)
 
Double_t phiynn (Double_t *x, Double_t *par)
 
AliMUONGeometryTransformerReAlign (const AliMUONGeometryTransformer *transformer, int rMod, TGeoCombiTrans deltaDetElemTransf[], Bool_t verbose)
 
void MUONSurveyCh8L ()
 

Detailed Description

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

Definition in file MUONSurveyCh8L.C.

Function Documentation

Double_t eqPlane ( Double_t *  x,
Double_t *  par 
)

Definition at line 74 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Bool_t MatrixToAngles ( const Double_t *  rot,
Double_t *  angles 
)

Definition at line 55 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

void MUONSurveyCh8L ( )

Definition at line 89 of file MUONSurveyCh8L.C.

Double_t phixnn ( Double_t *  x,
Double_t *  par 
)

Definition at line 177 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phixnp ( Double_t *  x,
Double_t *  par 
)

Definition at line 199 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phixpn ( Double_t *  x,
Double_t *  par 
)

Definition at line 133 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phixpp ( Double_t *  x,
Double_t *  par 
)

Definition at line 155 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phiynn ( Double_t *  x,
Double_t *  par 
)

Definition at line 352 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phiynp ( Double_t *  x,
Double_t *  par 
)

Definition at line 389 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phiypn ( Double_t *  x,
Double_t *  par 
)

Definition at line 250 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t phiypp ( Double_t *  x,
Double_t *  par 
)

Definition at line 287 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

AliMUONGeometryTransformer* ReAlign ( const AliMUONGeometryTransformer transformer,
int  rMod,
TGeoCombiTrans  deltaDetElemTransf[],
Bool_t  verbose 
)

make a new detection element

Definition at line 504 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L(), and AliMUONAlignment::SetParameterNonLinear().

Double_t xnCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 106 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t xpCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 78 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t ynCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 322 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t ypCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 221 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t znCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 425 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().

Double_t zpCenter ( Double_t *  x,
Double_t *  par 
)

Definition at line 464 of file MUONSurveyUtil.C.

Referenced by MUONSurveyCh8L().