}
//____________________________________________
-Int_t AliITSHNode::Compare(TObject *obj)
+Int_t AliITSHNode::Compare(const TObject *obj) const
{
// function called by Sort method of TObjArray
// is sortable
return kTRUE;
}
- Int_t Compare(TObject *obj);
+ Int_t Compare(const TObject *obj) const;
ClassDef(AliITSHNode,1) //HuffT node object for set:ITS
fQ=-fQ;
}
Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} // checks Use condision
- Int_t Compare(TObject *o) {
+ Int_t Compare(const TObject *o) const {
//to be defined
return 0;
}
/*
$Log$
+Revision 1.5 2001/01/26 21:46:33 morsch
+Use access functions to MUONHit, ... data members.
+
Revision 1.4 2000/10/02 21:28:09 fca
Removal of useless dependecies via forward declarations
return *this;
}
//__________________________________________________________________________
-Int_t AliMUONHitForRec::Compare(TObject* Hit)
+Int_t AliMUONHitForRec::Compare(const TObject* Hit) const
{
// "Compare" function to sort with increasing chamber number.
// Returns -1 (0, +1) if ChamberNumber of current HitForRec
// What is necessary for sorting TClonesArray's; sufficient too ????
Bool_t IsSortable() const { return kTRUE; }
- Int_t Compare(TObject* HitForRec); // "Compare" function for sorting
+ Int_t Compare(const TObject* HitForRec) const; // "Compare" function for sorting
protected:
private:
Double_t fBendingCoor; // coordinate (cm) in bending plane
/*
$Log$
+Revision 1.2 2000/06/15 07:58:48 morsch
+Code from MUON-dev joined
+
Revision 1.1.2.1 2000/06/09 22:04:50 morsch
Was before in DataStructures.cxx
fNcluster[0]=fNcluster[1]=-1;
}
-Int_t AliMUONRawCluster::Compare(TObject *obj)
+Int_t AliMUONRawCluster::Compare(const TObject *obj) const
{
/*
AliMUONRawCluster *raw=(AliMUONRawCluster *)obj;
virtual ~AliMUONRawCluster() {}
Float_t GetRadius(Int_t i) {return TMath::Sqrt(fX[i]*fX[i]+fY[i]*fY[i]);}
Bool_t IsSortable() const {return kTRUE;}
- Int_t Compare(TObject *obj);
+ Int_t Compare(const TObject *obj) const;
Int_t PhysicsContribution();
static Int_t BinarySearch(Float_t r, TArrayF ccord, Int_t from, Int_t upto);
static void SortMin(Int_t *idx,Float_t *xdarray, Float_t *xarray,
/*
$Log$
+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)
+*. MaxChi2 per degree of freedom to make a track (default 100)
+*. MinBendingMomentum used also to make a track
+ and not only a segment (default 3)
+*. wider roads for track search in stations 1 to 3
+*. extrapolation to actual Z instead of Z(chamber) in FollowTracks
+*. in track fit:
+ - limits on parameters X and Y (+/-500)
+ - covariance matrices in double precision
+ - normalization of covariance matrices before inversion
+ - suppression of Minuit printouts
+*. correction against memory leak (delete extrapHit) in FollowTracks
+*. RMax to 10 degrees with Z(chamber) instead of fixed values;
+ RMin and Rmax cuts suppressed in NewHitForRecFromGEANT,
+ because useless with realistic geometry
+
Revision 1.4 2000/06/30 10:15:48 gosset
Changes to EventReconstructor...:
precision fit with multiple Coulomb scattering;
}
//__________________________________________________________________________
-Int_t AliMUONSegment::Compare(TObject* Segment)
+Int_t AliMUONSegment::Compare(const TObject* Segment) const
{
// "Compare" function to sort with increasing absolute value
// of the "impact parameter" in bending plane.
// What is necessary for sorting TClonesArray's; sufficient too ????
Bool_t IsSortable() const { return kTRUE; }
- Int_t Compare(TObject* Segment); // "Compare" function for sorting
+ Int_t Compare(const TObject* Segment) const; // "Compare" function for sorting
protected:
private:
AliMUONHitForRec* fHitForRecPtr1; // pointer to HitForRec in first chamber
/*
$Log$
+Revision 1.5 2000/07/20 12:45:27 gosset
+New "EventReconstructor..." structure,
+ hopefully more adapted to tree/streamer.
+"AliMUONEventReconstructor::RemoveDoubleTracks"
+ to keep only one track among similar ones.
+
Revision 1.4 2000/07/18 16:04:06 gosset
AliMUONEventReconstructor package:
* a few minor modifications and more comments
}
//__________________________________________________________________________
-Int_t AliMUONTrackHit::Compare(TObject* TrackHit)
+Int_t AliMUONTrackHit::Compare(const TObject* TrackHit) const
{
// "Compare" function to sort with increasing Z.
// Returns -1 (0, +1) if Z of current TrackHit
Bool_t IsSortable () const {
// necessary for sorting TClonesArray of TrackHit's
return kTRUE; }
- Int_t Compare(TObject* TrackHit); // "Compare" function for sorting
+ Int_t Compare(const TObject* TrackHit) const; // "Compare" function for sorting
protected:
private:
}
//____________________________________________________________________________
-Int_t AliPHOSCpvRecPoint::Compare(TObject * obj)
+Int_t AliPHOSCpvRecPoint::Compare(const TObject * obj) const
{
// Compares two RecPoints according to their position in the PHOS modules
virtual ~AliPHOSCpvRecPoint() ;
virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; // add a digit to the digits list
- Int_t Compare(TObject * obj) ; // method for sorting
+ Int_t Compare(const TObject * obj) const; // method for sorting
Float_t GetDelta (){
// gets the fDelta data member
}
//____________________________________________________________________________
-Int_t AliPHOSEmcRecPoint::Compare(TObject * obj)
+Int_t AliPHOSEmcRecPoint::Compare(const TObject * obj) const
{
// Compares two RecPoints according to their position in the PHOS modules
virtual ~AliPHOSEmcRecPoint() ;
virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; // add a digit to the digits list
- Int_t Compare(TObject * obj) ; // method for sorting
+ Int_t Compare(const TObject * obj) const; // method for sorting
Float_t CoreEnergy() ;
Float_t GetDelta (){
}
//____________________________________________________________________________
-Int_t AliPHOSLink::Compare(TObject * obj)
+Int_t AliPHOSLink::Compare(const TObject * obj) const
{
// Compare according to the distance between EMC and PPSD RecPoints in a track segment
virtual ~AliPHOSLink(){
// dtor
}
- Int_t Compare(TObject * obj) ;
+ Int_t Compare(const TObject * obj) const;
Int_t GetEmc(void) {
// returns the index of EMC
return fEmcN;
}
//____________________________________________________________________________
-Int_t AliPHOSPpsdRecPoint::Compare(TObject * obj)
+Int_t AliPHOSPpsdRecPoint::Compare(const TObject * obj) const
{
// Compares according to the position
// dtor
}
virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ;
- Int_t Compare(TObject * obj) ; // method to sort clusters
+ Int_t Compare(const TObject * obj) const; // method to sort clusters
Float_t GetDelta(void) {
// returns the parameter used for sorting
assert(0==1) ;
}
virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ;
- virtual Int_t Compare(TObject * obj) {
+ virtual Int_t Compare(const TObject * obj) const {
// check why this is done
assert(0==1) ; return 1 ;
}
/*
$Log$
+ Revision 1.2 2000/10/02 15:51:49 jbarbosa
+ Fixed forward declarations.
+ Moved constructor into implementation file.
+
Revision 1.1 2000/06/12 15:27:26 jbarbosa
Cleaned up version.
fNcluster[0]=fNcluster[1]=-1;
}
-Int_t AliRICHRawCluster::Compare(TObject *obj)
+Int_t AliRICHRawCluster::Compare(const TObject *obj) const
{
// Compare two clusters
Float_t GetRadius() {return TMath::Sqrt(fX*fX+fY*fY);}
Bool_t IsSortable() const {return kTRUE;}
- Int_t Compare(TObject *obj);
+ Int_t Compare(const TObject *obj) const;
Int_t PhysicsContribution();
static Int_t BinarySearch(Float_t r, TArrayF coord, Int_t from, Int_t upto);
static void SortMin(Int_t *idx,Float_t *xdarray,Float_t *xarray,Float_t *yarray,Float_t *qarray,Int_t ntr);
}
//_____________________________________________________________________________
-Int_t AliKalmanTrack::Compare(TObject *o) {
+Int_t AliKalmanTrack::Compare(const TObject *o) const {
//-----------------------------------------------------------------
// This function compares tracks according to the their curvature
//-----------------------------------------------------------------
AliKalmanTrack() {fN=0; fChi2=0; fLab=-3141593;}
AliKalmanTrack(const AliKalmanTrack& t);
virtual ~AliKalmanTrack() {}
- Int_t Compare(TObject *o);
+ Int_t Compare(const TObject *o) const;
void SetLabel(Int_t lab) {fLab=lab;}
Double_t GetPredictedChi2(const AliCluster *cluster) const;
/*
$Log$
+Revision 1.4 2000/12/08 16:07:02 cblume
+Update of the tracking by Sergei
+
Revision 1.3 2000/10/15 23:40:01 cblume
Remove AliTRDconst
}
//_____________________________________________________________________________
-Int_t AliTRDtrack::Compare(TObject *o) {
+Int_t AliTRDtrack::Compare(const TObject *o) const {
// Compares tracks according to their Y2
const Double_t cc[15], Double_t xr, Double_t alpha);
AliTRDtrack(const AliTRDtrack& t);
- Int_t Compare(TObject *o);
+ Int_t Compare(const TObject *o) const;
Double_t GetAlpha() const {return fAlpha;}
Double_t GetC() const {return fC;}