}
//_____________________________________________________________________________
-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
//--------------------------------------------------------------------
pos[2]=tr[2];
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPlate(const Float_t * const pos)
+Int_t AliTOFGeometry::GetPlate(const Float_t * pos)
{
//
// Returns the Plate index
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA = FLTA reference frame
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetSector(const Float_t * const pos)
+Int_t AliTOFGeometry::GetSector(const Float_t * pos)
{
//
// Returns the Sector index
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetStrip(const Float_t * const pos)
+Int_t AliTOFGeometry::GetStrip(const Float_t * pos)
{
//
// Returns the Strip index
// 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};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((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]));
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPadZ(const Float_t * const pos)
+Int_t AliTOFGeometry::GetPadZ(const Float_t * pos)
{
//
// Returns the Pad index along Z
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA = FLTA reference frame
}
//_____________________________________________________________________________
-Int_t AliTOFGeometry::GetPadX(const Float_t * const pos)
+Int_t AliTOFGeometry::GetPadX(const Float_t * pos)
{
//
// Returns the Pad index along X
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA/B/C = FLTA/B/C reference frame
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetX(const Int_t * const det)
+Float_t AliTOFGeometry::GetX(const Int_t * det)
{
//
// Returns X coordinate (cm)
// Pad reference frame -> FSTR reference frame
Float_t posLocal[3] = {0., 0., 0.};
- Float_t step[3] = {-(ipadx+0.5)*fgkXPad, 0., -(ipadz+0.5)*fgkZPad};
+ Float_t step[3] = {static_cast<Float_t>(-(ipadx+0.5)*fgkXPad), 0., static_cast<Float_t>(-(ipadz+0.5)*fgkZPad)};
Translation(posLocal,step);
step[0] = kNpadX*0.5*fgkXPad;
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetY(const Int_t * const det)
+Float_t AliTOFGeometry::GetY(const Int_t * det)
{
//
// Returns Y coordinate (cm)
// Pad reference frame -> FSTR reference frame
Float_t posLocal[3] = {0., 0., 0.};
- Float_t step[3] = {-(ipadx+0.5)*fgkXPad, 0., -(ipadz+0.5)*fgkZPad};
+ Float_t step[3] = {static_cast<Float_t>(-(ipadx+0.5)*fgkXPad), 0., static_cast<Float_t>(-(ipadz+0.5)*fgkZPad)};
Translation(posLocal,step);
step[0] = kNpadX*0.5*fgkXPad;
}
//_____________________________________________________________________________
-Float_t AliTOFGeometry::GetZ(const Int_t * const det)
+Float_t AliTOFGeometry::GetZ(const Int_t * det)
{
//
// Returns Z coordinate (cm)
// Pad reference frame -> FSTR reference frame
Float_t posLocal[3] = {0., 0., 0.};
- Float_t step[3] = {-(ipadx+0.5)*fgkXPad, 0., -(ipadz+0.5)*fgkZPad};
+ Float_t step[3] = {static_cast<Float_t>(-(ipadx+0.5)*fgkXPad), 0., static_cast<Float_t>(-(ipadz+0.5)*fgkZPad)};
Translation(posLocal,step);
step[0] = kNpadX*0.5*fgkXPad;
}
//_____________________________________________________________________________
-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
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA/B/C = FLTA/B/C 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
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA/B/C = FLTA/B/C 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
};
Rotation(posLocal,angles);
- Float_t step[3] = {0., 0., (fgkRmax+fgkRmin)*0.5};
+ Float_t step[3] = {0., 0., static_cast<Float_t>((fgkRmax+fgkRmin)*0.5)};
Translation(posLocal,step);
// B071/B074/B075 = BTO1/2/3 reference frame -> FTOA/B/C = FLTA/B/C reference frame
}
//_____________________________________________________________________________
-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];
}
//-------------------------------------------------------------------------
-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