]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSNeuralTrack.h
Making check for zero explicit.
[u/mrichter/AliRoot.git] / ITS / AliITSNeuralTrack.h
index a00d01471719e8b97368d20afe4ff9e7caa9c7df..c924dc54a3c6dc27c2f3307961045b5b6fe9733a 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef ALIITSNEURALTRACK_H
 #define ALIITSNEURALTRACK_H
-
+///////////////////////////////////////////////////
+//                                               //
+// Neural track class                            //
+///////////////////////////////////////////////////
 #include <TMatrixD.h>
 
 class TObjArray;
@@ -11,9 +14,10 @@ class AliITSIOTrack;
 class AliITSNeuralTrack : public TObject {
 
 public:
-                AliITSNeuralTrack();
-                               AliITSNeuralTrack(AliITSNeuralTrack &track);
-       virtual ~AliITSNeuralTrack();
+  AliITSNeuralTrack();
+  AliITSNeuralTrack(const AliITSNeuralTrack &track);
+  AliITSNeuralTrack& operator=(const AliITSNeuralTrack& track );
+  virtual ~AliITSNeuralTrack();
                
        // Points insertion and goodness evaluation
 
@@ -22,8 +26,8 @@ public:
        void     CleanAllSlots(Bool_t del = kFALSE)        {Int_t i; for(i=0;i<6;i++) CleanSlot(i,del);}
        void     GetModuleData(Int_t i, Int_t &mod, Int_t &pos);
        void     Insert(AliITSNeuralPoint *point);
-       Bool_t   IsGood(Int_t min)                         {return (fCount >= min);}
-       Int_t    OccupationMask();
+       Bool_t   IsGood(Int_t min)                   const      {return (fCount >= min);}
+       Int_t    OccupationMask() const;
        void     PrintLabels();
                
        // Fit procedures
@@ -60,10 +64,10 @@ public:
        Double_t GetZ(Double_t r) const;    // z = dz + (tanl / C) * asin(argz(rho))
 
        Double_t GetP()       {return GetPt() * (1.0 + fTanL * fTanL);}
-       Double_t GetPt()      {return 0.299792658 * 0.2 * fField * fabs(1./fC/100.);}
+       Double_t GetPt()      {return 0.299792658 * 0.2 * fField * TMath::Abs(1./fC/100.);}
        Double_t GetPz()      {return GetPt() * fTanL;}
-       Double_t GetE()       {return sqrt(fMass*fMass + GetPt()*GetPt());}
-       Double_t GetLambda()  {return atan(fTanL);}
+       Double_t GetE()       {return TMath::Sqrt(fMass*fMass + GetPt()*GetPt());}
+       Double_t GetLambda()  {return TMath::ATan(fTanL);}
        Int_t    GetPDGcode() const {return fPDG;}
        Double_t GetdEdX();