35 if (!fmdEsd)
return kFALSE;
38 for (UShort_t det = 1; det <= 3; det++) {
39 UShort_t nrng = (det == 1 ? 1 : 2);
40 for (UShort_t ir = 0; ir < nrng; ir++) {
41 Char_t rng = (ir == 0 ?
'I' :
'O');
42 UShort_t nsec = (ir == 0 ? 20 : 40);
43 UShort_t nstr = (ir == 0 ? 512 : 256);
44 for (UShort_t str = 0; str < nstr; str++) {
45 Double_t phi, r, theta;
47 Double_t oldEta = fmdEsd->
Eta(det, rng, 0, str);
53 fmdEsd->
SetEta(det, rng, 0, str, eta);
59 AliWarning(Form(
"Failed to calculate eta, phi for " 60 "FMD%d%c[%02d,%03d] with v_z=%9.4f",
61 det, rng, 0, str, vz));
66 Double_t corr = TMath::Abs(TMath::Cos(theta));
69 corr /= TMath::Abs(TMath::Cos(oldTheta));
70 for (UShort_t sec = 0; sec < nsec; sec++) {
71 Double_t mult = fmdEsd->
Multiplicity(det, rng, sec, str);
88 return 2 * TMath::ATan(TMath::Exp(-eta));
102 Double_t& theta)
const 108 Double_t x=0, y=0, z=0;
Geometry mananger for the FMD.
virtual void InitTransformations(Bool_t force=kFALSE)
Bool_t IsAngleCorrected() const
#define AliWarning(message)
void SetMultiplicity(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t mult)
void SetEta(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t eta)
Singleton object of FMD geometry descriptions and parameters. This class is a singleton that handles ...
Float_t Multiplicity(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const
Float_t Eta(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const
Double_t Eta2Theta(Double_t eta) const
void Detector2XYZ(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Double_t &x, Double_t &y, Double_t &z) const
Event Summary Data for the Forward Multiplicity Detector.This stores the psuedo-multiplicity and -rap...
Bool_t PhysicalCoordinates(UShort_t det, Char_t rng, UShort_t sec, UShort_t str, Double_t vz, Double_t &eta, Double_t &phi, Double_t &r, Double_t &theta) const
static Bool_t XYZ2REtaPhiTheta(Double_t x, Double_t y, Double_t z, Double_t &r, Double_t &eta, Double_t &phi, Double_t &theta)
Bool_t Revertex(AliESDFMD *fmdEsd, Double_t vz) const
static AliFMDGeometry * Instance()