Set values to zero in constructor. Added print function.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2004 11:31:12 +0000 (11:31 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2004 11:31:12 +0000 (11:31 +0000)
HLT/src/AliL3Track.cxx
HLT/src/AliL3Track.h

index 270ca79b484159e1cd63b59459d8c2e9ceb2d29e..abe10b0902f4bf645b1cd579dcfe21f491af916f 100644 (file)
@@ -34,7 +34,6 @@ ClassImp(AliL3Track)
 AliL3Track::AliL3Track()
 {
   //Constructor
-
   fNHits = 0;
   fMCid = -1;
   fKappa=0;
@@ -57,6 +56,14 @@ AliL3Track::AliL3Track()
   SetLastPoint(0,0,0);
   memset(fHitNumbers,0,159*sizeof(UInt_t));
   fPID = 0;
+
+  fSector=0;
+  fPterr=0;
+  fPsierr=0;
+  fZ0err=0;
+  fTanlerr=0;
+  fPoint[0]=fPoint[1]=fPoint[2]=0;
+  fPointPsi=0;
 }
 
 void AliL3Track::Set(AliL3Track *tpt)
@@ -508,3 +515,10 @@ void AliL3Track::GetClosestPoint(AliL3Vertex *vertex,Double_t &closestx,Double_t
   Double_t stot = fabs(diff_angle)*GetRadius();
   closestz = GetFirstPointZ() - stot*GetTgl();
 }
+
+void AliL3Track::Print() const
+{
+  LOG(AliL3Log::kInformational,"AliL3Track::Print","Print values")
+    <<fNHits<<" "<<fMCid<<" "<<fKappa<<" "<<fRadius<<" "<<fCenterX<<" "<<fCenterY<<" "<<fFromMainVertex<<" "<<fRowRange[0]<<" "<<fRowRange[1]<<" "<<fSector<<" "<<fQ<<" "<<fTanl<<" "<<fPsi<<" "<<fPt<<" "<<fLength<<" "<<fPterr<<" "<<fPsierr<<" "<<fZ0err<<" "<<fTanlerr<<" "<<fPhi0<<" "<<fR0<<" "<<fZ0<<" "<<fFirstPoint[0]<<" "<<fFirstPoint[1]<<" "<<fFirstPoint[2]<<" "<<fLastPoint[0]<<" "<<fLastPoint[1]<<" "<<fLastPoint[2]<<" "<<fPoint[0]<<" "<<fPoint[1]<<" "<<fPoint[2]<<" "<<fPointPsi<<" "<<fIsPoint<<" "<<fIsLocal<<" "<<fPID<<ENDLOG; 
+
+}
index 73dc454f20a2304940ca6bac93ae02be1ae7f2d3..3e10038fd36f217ac9fd9b05dd558f50a3fb439c 100644 (file)
@@ -31,10 +31,10 @@ class AliL3Track {
   Double_t fPt;   //transverse momentum
   Double_t fLength; //length of track (s)
   
-  Double_t fPterr;   //errors for fast hough
-  Double_t fPsierr;  //errors for fast hough
-  Double_t fZ0err;   //errors for fast hough
-  Double_t fTanlerr; //errors for fast hough
+  Double_t fPterr;   //error in pt
+  Double_t fPsierr;  //error in psi
+  Double_t fZ0err;   //error in first point
+  Double_t fTanlerr; //error in tanl
 
   Double_t fPhi0; //azimuthal angle of the first point
   Double_t fR0;   //radius of the first point
@@ -127,6 +127,7 @@ class AliL3Track {
 
   UInt_t *GetHitNumbers() {return fHitNumbers;}
 
+  void Print() const;
   // setter   
   
   void SetMCid(Int_t f) {fMCid = f;}