// Email : alberto.pulvirenti@ct.infn.it
// ---------------------------------------------------------------------------------
+#include <Riostream.h>
#include <TMath.h>
#include <TString.h>
#include <TObjArray.h>
#include "AliITStrackerANN.h"
-class iostream;
-using namespace std;
+const Double_t AliITStrackerANN::fgkPi = 3.141592653; // pi
+const Double_t AliITStrackerANN::fgkHalfPi = 1.570796327; // pi / 2
+const Double_t AliITStrackerANN::fgkTwoPi = 6.283185307; // 2 * pi
ClassImp(AliITStrackerANN)
******************************************/
//__________________________________________________________________________________
-inline AliITStrackerANN::AliITSnode::AliITSnode()
+AliITStrackerANN::AliITSnode::AliITSnode()
: fUsed(kFALSE), fClusterRef(-1),
fMatches(NULL), fInnerOf(NULL), fOuterOf(NULL),
fNext(NULL), fPrev(NULL)
}
//__________________________________________________________________________________
-inline Double_t AliITStrackerANN::AliITSnode::GetPhi() const
+Double_t AliITStrackerANN::AliITSnode::GetPhi() const
{
// Calculates the 'phi' (azimutal) angle, and returns it
// in the range between 0 and 2Pi radians.
}
//__________________________________________________________________________________
-inline Double_t AliITStrackerANN::AliITSnode::GetError(Option_t *option)
+Double_t AliITStrackerANN::AliITSnode::GetError(Option_t *option)
{
// Returns the error or the square error of
// values related to the coordinates in different systems.
}
//__________________________________________________________________________________
-inline Double_t AliITStrackerANN::AliITSneuron::Activate(Double_t temperature)
+Double_t AliITStrackerANN::AliITSneuron::Activate(Double_t temperature)
{
// This computes the new activation of a neuron, and returns
// its activation variation as a consequence of the updating.
//----
s[j] = (p->GetR2sq() - dt * dt) / (1. + curv * dt);
if (s[j] < 0.) {
- if (fabs(s[j]) < 1.E-6) s[j] = 0.;
+ if (TMath::Abs(s[j]) < 1.E-6) s[j] = 0.;
else {
Error("RiemannFit", "Square root argument error: %17.15g < 0", s[j]);
return kFALSE;
{
public:
+
/* Constructors */
AliITStrackerANN() : AliITStrackerV2() { /* does nothing */ };
AliITStrackerANN(const AliITSgeom *geom, Int_t msglev = 0);
Double_t Weight(AliITSneuron *nAB, AliITSneuron *nBC);
/* Usefuls constant angle values */
- static const Double_t fgkPi = 3.141592653; // pi
- static const Double_t fgkHalfPi = 1.570796327; // pi / 2
- static const Double_t fgkTwoPi = 6.283185307; // 2 * pi
+ static const Double_t fgkPi; // pi
+ static const Double_t fgkHalfPi; // pi / 2
+ static const Double_t fgkTwoPi; // 2 * pi
/* Primary vertex position */
Double_t fVertexX; // X
/* ALICE related objects */
AliITSgeom *fGeom; //! ITS Geometry
+ friend class AliITStrackerANN::AliITStrackANN;
+
/* ROOT class implementation routines */
ClassDef(AliITStrackerANN, 1)
};