]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add a "real" default constructor.
authorgosset <gosset@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Feb 2001 10:34:41 +0000 (10:34 +0000)
committergosset <gosset@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Feb 2001 10:34:41 +0000 (10:34 +0000)
MUON/AliMUONSegment.cxx
MUON/AliMUONSegment.h

index aff7f4a82b13ab53b6bfcd4b51babe05861b95ca..374b9d1d7912a81760153e3d64bbf9b4c4121518 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2001/02/05 14:49:29  hristov
+Compare() declared const (R.Brun)
+
 Revision 1.5  2001/01/08 11:01:02  gosset
 Modifications used for addendum to Dimuon TDR (JP Cussonneau):
 *. MaxBendingMomentum to make both a segment and a track (default 500)
@@ -74,6 +77,31 @@ Addition of files for track reconstruction in C++
 
 ClassImp(AliMUONSegment) // Class implementation in ROOT context
 
+  //__________________________________________________________________________
+AliMUONSegment::AliMUONSegment()
+{
+  // Default constructor
+  fHitForRecPtr1 = 0; // pointer to HitForRec in first chamber
+  fHitForRecPtr2 = 0; // pointer to HitForRec in second chamber
+  // Bending plane:
+  fBendingCoor = 0.0; // Coordinate in bending plane
+  fBendingSlope = 0.0; // Slope in bending plane
+  // Covariance in bending plane:
+  fBendingCoorReso2 = 0.0; // Covariance(coordinate C1 in first chamber)
+  fBendingSlopeReso2 = 0.0; // Covariance(slope)
+  fBendingCoorSlopeReso2 = 0.0; // Covariance(C1,slope)
+  fBendingImpact = 0.0; // Impact parameter in bending plane
+  // Non Bending plane:
+  fNonBendingCoor = 0.0; // Coordinate in non bending plane
+  fNonBendingSlope = 0.0; // Slope in non bending plane
+  // Covariance in non bending plane:
+  fNonBendingCoorReso2 = 0.0; // Covariance(coordinate C1 in first chamber)
+  fNonBendingSlopeReso2 = 0.0; // Covariance(slope)
+  fNonBendingCoorSlopeReso2 = 0.0; // Covariance(C1,slope)
+  fNonBendingImpact = 0.0; // Impact parameter in non bending plane
+  fInTrack = kFALSE; // TRUE if segment belongs to one track
+}
+
   //__________________________________________________________________________
 AliMUONSegment::AliMUONSegment(AliMUONHitForRec* Hit1, AliMUONHitForRec* Hit2)
 {
index ffd0233d58355c14aad02eb7dbe944689e61e945..d3ae77f403052773f4c50db435ac90b9698fd3f1 100644 (file)
@@ -12,12 +12,13 @@ class AliMUONTrackParam;
 
 class AliMUONSegment : public TObject {
  public:
+  AliMUONSegment(); // default constructor
   virtual ~AliMUONSegment(){
     // Destructor
     ;} // Destructor
   AliMUONSegment (const AliMUONSegment& AliMUONSegment); // copy constructor
   AliMUONSegment& operator=(const AliMUONSegment& AliMUONSegment); // assignment operator
-  AliMUONSegment(AliMUONHitForRec* Hit1=0, AliMUONHitForRec* Hit2=0); // Constructor from two HitForRec's
+  AliMUONSegment(AliMUONHitForRec* Hit1, AliMUONHitForRec* Hit2); // Constructor from two HitForRec's
 
   // Inline functions for Get and Set
   AliMUONHitForRec* GetHitForRec1(void) {