|
Global Misalignment
The current code DchSimGeom and the dbio data base dch.db, include
the possibility to introduce a global misalignment of the Drift Chamber.
In dch.db two templates have been defined, DchRotm and DchVol, with the structures:
-
- template DchRotm ! Rotation matrix parameters
-
- char name ! Name
- int irot ! Number of the rotation matrix
- real the1 ! Angle from X axis
- real phi1 ! Angle from Y axis
- real the2 ! Angle from Z axis
- real phi2 ! Angle from Y axis
- real the3 ! Angle from Z axis
- real phi3 ! Angle from Y axis
- end DchRotm
-
- template DchVol ! Parameters necessary to define completely the drift Ch
-
- char name ! name
- char shape ! shape
- char medium ! medium name previously defined
- int npar ! # of parameters
- real par(4) ! parameters to define volume
- char mother ! mother volume containing the present volume
- int nin ! position number in the mother
- real xyz(3) ! X,Y,Z position of the present volume inside the mother
- char rotm ! Rotation Matrix name ( if not exist insert "null")
- char only ! flag to select many or only attribute
- end DchVol
!
The drift chamber is defined in the current release (V00-01-05) like:
make DchVol DCHA "DCHA" "TUBE" "DCHA-mot" 3 23.60 80.90 164.8 0.0 "BFAC" 1 0.0 0.0 14.80 "null" "ONLY"
A misalignment may be introduced (like a rotation) defining the rotation matrix ( for example with the name DCHR) and the declaration:
make DchRotm DchR "DchR" xxx 90.0 22.5 90.0 112. 0.000E+00 .000E+00
or/and introducing not zero values in xyz(3) for a linear shift in the declaration :
make DchVol DCHA "DCHA" "TUBE" "DCHA-mot" 3 23.60 80.90 164.8 0.0 "BFAC" 1 0.0 0.0 14.80 "DchR" "ONLY"
Local Misalignment
A local misalignment for cells or wires requires the introduction of a new template to define
the interested wires.
A possibility may be the use of the same structure used to input the wire parameters with some new information:
-
- template DchWir ! sense wire characteristics
-
-
- int layer ! Layer number
- int cell ! Cell Number
- int wire ! Wire identifier (like the Kelsey numbering method)
- real rend ! radius at the rear endplate
- real phiE ! Phi at the rear endplate
- real twist ! twist angle at endplate
- real ster ! stereo angle
- real sag ! sagitta
- real diam ! wire diameter
- end DchWir
and the declaration of each wire to be simulated directly.
|