#include "TGeoMatrix.h"
#include "TObject.h"
+//class TGeoMatrix;
+
class AliTOFGeometry: public TObject{
public:
static Int_t NStripA() { return kNStripA;};
static Int_t NStripB() { return kNStripB;};
static Int_t NStripC() { return kNStripC;};
+ static Int_t NStrip(Int_t nPlate);
static Int_t NMaxNstrip() { return kMaxNstrip;};
static Int_t NpadX() { return kNpadX;};
static Int_t NpadZ() { return kNpadZ;};
static Int_t NpadXStrip() { return kNpadX*kNpadZ;};
static Int_t NSectors() { return kNSectors;};
static Int_t NPlates() { return kNPlates;};
- static Int_t NStripXSector() { return (kNStripA + 2*kNStripB +
+ static Int_t NStripXSector() { return (kNStripA + 2*kNStripB +
2*kNStripC);};
- static Int_t NPadXSector() { return (kNStripA + 2*kNStripB +
+ static Int_t NPadXSector() { return (kNStripA + 2*kNStripB +
2*kNStripC)*kNpadX*kNpadZ;};
- static Float_t RinTOF() { return fgkxTOF;};
- static Float_t Rmin() { return fgkRmin;};
- static Float_t Rmax() { return fgkRmax;};
+ static Float_t RinTOF() { return fgkxTOF;};
+ static Float_t Rmin() { return fgkRmin;};
+ static Float_t Rmax() { return fgkRmax;};
static Float_t XPad() { return fgkXPad;};
static Float_t ZPad() { return fgkZPad;};
static Float_t StripLength() { return fgkStripLength;};
- static Int_t TimeDiff() { return fgkTimeDiff;};
+ static Float_t DeadTime() { return fgkDeadTime;};
+ static Float_t MatchingWindow() { return fgkMatchingWindow;};
+
static Int_t MaxTOFTree() { return kMaxTOFTree;};
static Int_t NDDL() { return kNDDL;};
static Float_t GetDistances(Int_t iplate, Int_t istrip) {return fgkDistances[iplate][istrip];};
static Int_t GetIndex(Int_t *detId); // Get channel index from det Id (for calibration mainly)
+ static void GetVolumeIndices(Int_t index, Int_t *detId); // Get volume index from channel index
+
+ UShort_t GetAliSensVolIndex(Int_t sec, Int_t pla, Int_t str) const; // Get the index of the TOF alignable volume in the AliGeomManager order
+ static Int_t GetStripNumber(Int_t isector, Int_t iplate, Int_t istrip); // Get the serial number of the TOF alignable volume, i.e. the TOF strip
+ static Int_t GetStripNumberPerSM(Int_t iplate, Int_t istrip); // Get the serial number of the TOF strip in a TOF SM
+ void PadRF2TrackingRF(Float_t *ctrackPos, Float_t *differenceT);
+
private:
kNCh = 8 // Number of channels per Tdc
};
- static const Int_t fgkTimeDiff; // Min signal separation (ps)
+ static const Float_t fgkDeadTime; // Single channel dead time (ps)
+ static const Float_t fgkMatchingWindow; // Matching window (ps)
static const Float_t fgkZlenA; // length (cm) of the A module
static const Float_t fgkZlenB; // length (cm) of the B module
static const Float_t fgkTdcBin; // time-of-flight bin width [ps]
static const Float_t fgkToTBin; // time-over-threshold bin width [ps]
- ClassDef(AliTOFGeometry,5) // TOF Geometry base class
+ ClassDef(AliTOFGeometry,8) // TOF Geometry base class
};
#endif