14 |
const Float_t CaloGeomCut::_zCaloTop = -26.181; |
const Float_t CaloGeomCut::_zCaloTop = -26.181; |
15 |
|
|
16 |
CaloGeomCut::CaloGeomCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, UInt_t iMethod, |
CaloGeomCut::CaloGeomCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, UInt_t iMethod, |
17 |
Float_t xTolCaloTrack, Float_t yTolCaloTrack, Float_t mass, Float_t resMax, Float_t qualCut, Float_t chi2Cut) : |
Float_t xTolCaloTrack, Float_t yTolCaloTrack, Float_t mass, Float_t zeta, Float_t resMax, Float_t qualCut, Float_t chi2Cut) : |
18 |
PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _iMethod(iMethod), _xTolCaloTrack(xTolCaloTrack), _yTolCaloTrack( |
PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _iMethod(iMethod), _xTolCaloTrack(xTolCaloTrack), _yTolCaloTrack( |
19 |
yTolCaloTrack), _mass(mass), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut), _traj(NULL), _zIn(_nPoint) { |
yTolCaloTrack), _mass(mass), _zeta(zeta), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut), _traj(NULL), _zIn(_nPoint) { |
20 |
|
|
21 |
if (_iMethod == 1) { |
if (_iMethod == 1) { |
22 |
_traj = (Trajectory*) new Trajectory(_nPoint); |
_traj = (Trajectory*) new Trajectory(_nPoint); |
56 |
alCaloTop[3] = TMath::Pi() + atan2(tany, tanx); // [phi] |
alCaloTop[3] = TMath::Pi() + atan2(tany, tanx); // [phi] |
57 |
|
|
58 |
beta = event->GetToFLevel2()->CalcBeta(0, _resMax, _qualCut, _chi2Cut); // TOF stand-alone beta |
beta = event->GetToFLevel2()->CalcBeta(0, _resMax, _qualCut, _chi2Cut); // TOF stand-alone beta |
59 |
alCaloTop[4] = 1. / (_mass * beta / sqrt(1. - pow(beta, 2))); // [etaP] [rho = (m/Z)*(beta/(sqrt(1-beta^2)))] |
alCaloTop[4] = 1. / ((_mass/_zeta) * beta / sqrt(1. - pow(beta, 2))); // [etaP] [rho = (m/Z)*(beta/(sqrt(1-beta^2)))] |
60 |
|
|
61 |
_traj->DoTrack(alCaloTop, _zCaloTop); |
_traj->DoTrack(alCaloTop, _zCaloTop); |
62 |
|
|