AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MUONCheckMisAligner.C File Reference

This macro performs the misalignment on an existing muon arm geometry. More...

#include "AliMUONGeometryTransformer.h"
#include "AliMUONGeometryMisAligner.h"
#include "AliGeomManager.h"
#include "AliCDBManager.h"
#include "AliCDBMetaData.h"
#include "AliCDBId.h"
#include <TGeoManager.h>
#include <TClonesArray.h>
Include dependency graph for MUONCheckMisAligner.C:

Go to the source code of this file.

Functions

void MUONCheckMisAligner (Double_t xcartmisaligm=0.0, Double_t xcartmisaligw=0.004, Double_t ycartmisaligm=0.0, Double_t ycartmisaligw=0.003, Double_t angmisaligm=0.0, Double_t angmisaligw=0.0023, TString nameCDB="ResMisAlignCDB", const TString &geomFileName="geometry.root")
 

Detailed Description

This macro performs the misalignment on an existing muon arm geometry.

This macro performs the misalignment on an existing muon arm geometry based on the standard definition of the detector elements in the AliMUONGeometryTransformer class.

It uses AliMUONGeometryMisAligner :

  • Creates a new AliMUONGeometryTransformer and AliMUONGeometryMisAligner
  • Loads the geometry from the specified geometry file (default is geometry.root)
  • Creates a second AliMUONGeometryTransformer by misaligning the existing one using AliMUONGeometryMisAligner::MisAlign
  • User has to specify the magnitude of the alignments, in the Cartesian co-ordiantes (which are used to apply translation misalignments) and in the spherical co-ordinates (which are used to apply angular displacements)
  • User can also set misalignment ranges by hand using the methods : SetMaxCartMisAlig, SetMaxAngMisAlig, SetXYAngMisAligFactor (last method takes account of the fact that the misalingment is greatest in the XY plane, since the detection elements are fixed to a support structure in this plane. Misalignments in the XZ and YZ plane will be very small compared to those in the XY plane, which are small already - of the order of microns)
  • Default behavior generates a "residual" misalignment using gaussian distributions. Uniform distributions can still be used, see AliMUONGeometryMisAligner.
  • User can also generate module misalignments using SetModuleCartMisAlig and SetModuleAngMisAlig

Note: If the detection elements are allowed to be misaligned in all directions, this has consequences for the alignment algorithm, which needs to know the number of free parameters. Eric only allowed 3 : x,y,theta_xy, but in principle z and the other two angles are alignable as well.

Author
:Bruce Becker

Definition in file MUONCheckMisAligner.C.

Function Documentation

void MUONCheckMisAligner ( Double_t  xcartmisaligm = 0.0,
Double_t  xcartmisaligw = 0.004,
Double_t  ycartmisaligm = 0.0,
Double_t  ycartmisaligw = 0.003,
Double_t  angmisaligm = 0.0,
Double_t  angmisaligw = 0.0023,
TString  nameCDB = "ResMisAlignCDB",
const TString &  geomFileName = "geometry.root" 
)

Definition at line 70 of file MUONCheckMisAligner.C.