const Float_t AliTOFGeometry::fgkPhiSec= 20;//sector Phi width (deg)
+Bool_t AliTOFGeometry::fgHoles = 1;//logical for geometry version (w/wo holes)
+
const Float_t AliTOFGeometry::fgkTdcBin = 24.4; // time-of-flight bin width [ps]
const Float_t AliTOFGeometry::fgkToTBin = 48.8; // time-over-threshold bin width [ps]
const Float_t AliTOFGeometry::fgkBunchCrossingBin = fgkTdcBin * 1024; // bunch-crossing bin width [ps]
};
*/
//_____________________________________________________________________________
-AliTOFGeometry::AliTOFGeometry():
- fHoles(1)
+AliTOFGeometry::AliTOFGeometry()
{
//
// AliTOFGeometry default constructor
TGeoManager::Import("geometry.root");
}
//_____________________________________________________________________________
-void AliTOFGeometry::GetPosPar(Int_t *det, Float_t *pos) const
+void AliTOFGeometry::GetPosPar(Int_t *det, Float_t *pos)
{
//
// Returns space point coor (x,y,z) (cm) for Detector
}
//_____________________________________________________________________________
-void AliTOFGeometry::GetDetID( Float_t *pos, Int_t *det) const
+void AliTOFGeometry::GetDetID( Float_t *pos, Int_t *det)
{
//
// Returns Detector Indices (iSect,iPlate,iStrip,iPadX,iPadZ)
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::DistanceToPadPar(Int_t *det, const Float_t * const pos, Float_t *dist3d) const
+Float_t AliTOFGeometry::DistanceToPadPar(Int_t *det, const Float_t * pos, Float_t *dist3d)
{
//
// Returns distance of space point with coor pos (x,y,z) (cm) wrt
}
//_____________________________________________________________________________
-Bool_t AliTOFGeometry::IsInsideThePadPar(Int_t *det, const Float_t * const pos) const
+Bool_t AliTOFGeometry::IsInsideThePadPar(Int_t *det, const Float_t * pos)
{
//
// Returns true if space point with coor pos (x,y,z) (cm) falls
}
//_____________________________________________________________________________
-Bool_t AliTOFGeometry::IsInsideThePad(TGeoHMatrix *mat, const Float_t * const pos, Float_t *dist3d) const
+Bool_t AliTOFGeometry::IsInsideThePad(TGeoHMatrix *mat, const Float_t * pos, Float_t *dist3d)
{
//
// Returns true if space point with coor pos (x,y,z) [cm] falls inside
}
//_____________________________________________________________________________
-void AliTOFGeometry::GetVolumePath(const Int_t * const ind, Char_t *path ) {
+void AliTOFGeometry::GetVolumePath(const Int_t * ind, Char_t *path ) {
//--------------------------------------------------------------------
// This function returns the colume path of a given pad
//--------------------------------------------------------------------
if( iplate==4) icopy=istrip+NStripC()+2*NStripB()+NStripA();
icopy++;
snprintf(string2,kSize,"FTOA_0/FLTA_0/FSTR_%i",icopy);
- if(fHoles && (sector==13 || sector==14 || sector==15)){
+ if(fgHoles && (sector==13 || sector==14 || sector==15)){
if(iplate<2) snprintf(string2,kSize,"FTOB_0/FLTB_0/FSTR_%i",icopy);
if(iplate>2) snprintf(string2,kSize,"FTOC_0/FLTC_0/FSTR_%i",icopy);
}
if(plate==4) icopy=strip+NStripC()+2*NStripB()+NStripA();
icopy++;
snprintf(string2,kSize,"FTOA_0/FLTA_0/FSTR_%i",icopy);
- if(fHoles && (sector==13 || sector==14 || sector==15)){
+ if(fgHoles && (sector==13 || sector==14 || sector==15)){
if(plate<2) snprintf(string2,kSize,"FTOB_0/FLTB_0/FSTR_%i",icopy);
if(plate>2) snprintf(string2,kSize,"FTOC_0/FLTC_0/FSTR_%i",icopy);
}
pos[2]=tr[2];
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPlate(const Float_t * const pos) const
+Int_t AliTOFGeometry::GetPlate(const Float_t * pos)
{
//
// Returns the Plate index
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetSector(const Float_t * const pos) const
+Int_t AliTOFGeometry::GetSector(const Float_t * pos)
{
//
// Returns the Sector index
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetStrip(const Float_t * const pos) const
+Int_t AliTOFGeometry::GetStrip(const Float_t * pos)
{
//
// Returns the Strip index
Float_t posLocal[3];
for (Int_t ii=0; ii<3; ii++) posLocal[ii] = pos[ii];
- AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
- posLocal[0],posLocal[1],posLocal[2]));
+// AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
+// posLocal[0],posLocal[1],posLocal[2]));
Int_t isector = GetSector(posLocal);
if(isector == -1){
90., (isector+0.5)*fgkPhiSec
};
Rotation(posLocal,angles);
- AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
- posLocal[0],posLocal[1],posLocal[2]));
+ // AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
+ // posLocal[0],posLocal[1],posLocal[2]));
Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
Translation(posLocal,step);
- AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
- posLocal[0],posLocal[1],posLocal[2]));
+ // AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
+ // posLocal[0],posLocal[1],posLocal[2]));
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA = FLTA reference frame
angles[0] = 90.;
angles[5] =270.;
Rotation(posLocal,angles);
- AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
- posLocal[0],posLocal[1],posLocal[2]));
+ // AliDebug(1,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
+ // posLocal[0],posLocal[1],posLocal[2]));
// FTOA/B/C = FLTA/B/C reference frame -> FSTR reference frame
Int_t totStrip=0;
angles[5] = 270.;
}
Rotation(posLoc2,angles);
- AliDebug(1,Form(" strip %2d: posLoc2[0] = %f, posLoc2[1] = %f, posLoc2[2] = %f ",
- istrip, posLoc2[0],posLoc2[1],posLoc2[2]));
+ // AliDebug(1,Form(" strip %2d: posLoc2[0] = %f, posLoc2[1] = %f, posLoc2[2] = %f ",
+ // istrip, posLoc2[0],posLoc2[1],posLoc2[2]));
if ((TMath::Abs(posLoc2[0])<=klstripx*0.5) &&
(TMath::Abs(posLoc2[1])<=khstripy*0.5) &&
iStrip = istrip;
totStrip++;
for (Int_t jj=0; jj<3; jj++) posLocal[jj]=posLoc2[jj];
- AliDebug(2,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
- posLocal[0],posLocal[1],posLocal[2]));
+ // AliDebug(2,Form(" posLocal[0] = %f, posLocal[1] = %f, posLocal[2] = %f ",
+ // posLocal[0],posLocal[1],posLocal[2]));
- AliDebug(2,Form(" GetAngles(%1i,%2i) = %f, pos[0] = %f, pos[1] = %f, pos[2] = %f",
- iplate, istrip, GetAngles(iplate,istrip), pos[0], pos[1], pos[2]));
+ // AliDebug(2,Form(" GetAngles(%1i,%2i) = %f, pos[0] = %f, pos[1] = %f, pos[2] = %f",
+ // iplate, istrip, GetAngles(iplate,istrip), pos[0], pos[1], pos[2]));
break;
}
- if (totStrip>1) AliInfo(Form("total strip number found %2i",totStrip));
+ // if (totStrip>1) AliInfo(Form("total strip number found %2i",totStrip));
}
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPadZ(const Float_t * const pos) const
+Int_t AliTOFGeometry::GetPadZ(const Float_t * pos)
{
//
// Returns the Pad index along Z
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPadX(const Float_t * const pos) const
+Int_t AliTOFGeometry::GetPadX(const Float_t * pos)
{
//
// Returns the Pad index along X
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetX(const Int_t * const det) const
+Float_t AliTOFGeometry::GetX(const Int_t * det)
{
//
// Returns X coordinate (cm)
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetY(const Int_t * const det) const
+Float_t AliTOFGeometry::GetY(const Int_t * det)
{
//
// Returns Y coordinate (cm)
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetZ(const Int_t * const det) const
+Float_t AliTOFGeometry::GetZ(const Int_t * det)
{
//
// Returns Z coordinate (cm)
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetPadDx(const Float_t * const pos)
+Float_t AliTOFGeometry::GetPadDx(const Float_t * pos)
{
//
// Returns the x coordinate in the Pad reference frame
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetPadDy(const Float_t * const pos)
+Float_t AliTOFGeometry::GetPadDy(const Float_t * pos)
{
//
// Returns the y coordinate in the Pad reference frame
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetPadDz(const Float_t * const pos)
+Float_t AliTOFGeometry::GetPadDz(const Float_t * pos)
{
//
// Returns the z coordinate in the Pad reference frame
}
//_____________________________________________________________________________
-void AliTOFGeometry::Translation(Float_t *xyz, Float_t translationVector[3]) const
+void AliTOFGeometry::Translation(Float_t *xyz, Float_t translationVector[3])
{
//
// Return the vector xyz translated by translationVector vector
}
//_____________________________________________________________________________
-void AliTOFGeometry::Rotation(Float_t *xyz, Double_t rotationAngles[6]) const
+void AliTOFGeometry::Rotation(Float_t *xyz, Double_t rotationAngles[6])
{
//
// Return the vector xyz rotated according to the rotationAngles angles
}
//_____________________________________________________________________________
-void AliTOFGeometry::InverseRotation(Float_t *xyz, Double_t rotationAngles[6]) const
+void AliTOFGeometry::InverseRotation(Float_t *xyz, Double_t rotationAngles[6])
{
//
// Rotates the vector xyz acordint to the rotationAngles
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetIndex(const Int_t * const detId)
+Int_t AliTOFGeometry::GetIndex(const Int_t * detId)
{
//Retrieve calibration channel index
Int_t isector = detId[0];
}
//-------------------------------------------------------------------------
-UShort_t AliTOFGeometry::GetAliSensVolIndex(Int_t isector, Int_t iplate, Int_t istrip) const
+UShort_t AliTOFGeometry::GetAliSensVolIndex(Int_t isector, Int_t iplate, Int_t istrip)
{
//
// Get the index of the TOF alignable volume in the AliGeomManager order.
}
//-------------------------------------------------------------------------
-Int_t AliTOFGeometry::GetTOFsupermodule(const Int_t index)
+Int_t AliTOFGeometry::GetTOFsupermodule(Int_t index)
{
// Return the TOF supermodule where TOF channel index is located