Also RALICELinkDef.h changed back to old schema evolution (i.e. "+" removed)
because of problems with I/O in ROOT 3.00/06 w.r.t. multiple inheritance.
29-may-2001 NvE Position reset added in AliVertex::Reset().
01-jun-2001 NvE Memberfunctions Add() renamed explicitly to AddTrack(), AddJet() and
AddVertex() in AliJet and AliVertex.
03-jun-2001 NvE Treatment of masshypotheses introduced in AliTrack.
04-jun-2001 NvE CVS Log text and keyword replaced by Id in .cxx files and C++ comment
indicator /* ... */ replaced by // in the Id record of the .h files
to prevent problems.
06-jun-2001 NvE CVS Date keyword introduced in 'Modified' field in .cxx files so that
the modification date is updated automatically in the html docs.
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class Ali3Vector
// c=a*5;
//
//--- Author: Nick van Eijndhoven 30-mar-1999 UU-SAP Utrecht
-//- Modified: NvE 25-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "Ali3Vector.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class Ali3VectorObj
// vec2.Info();
//
//--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "Ali3VectorObj.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include "TObject.h"
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class Ali4Vector
// c=a*5;
//
//--- Author: Nick van Eijndhoven 01-apr-1999 UU-SAP Utrecht
-//- Modified: NvE 15-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "Ali4Vector.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class Ali4VectorObj
// vec2.Info();
//
//--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "Ali4VectorObj.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include "TObject.h"
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliBoost
// b2.Info("sph");
//
//--- Author: Nick van Eijndhoven 14-may-1996 UU-SAP Utrecht
-//- Modified: NvE 24-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliBoost.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.3 1999/11/03 14:23:17 fca
-New version of RALICE introduced
-
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliCalcluster
// to enable EM or hadronic cluster identification.
//
//--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
-//- Modified: NvE 18-jan-2000 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliCalcluster.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.3 1999/11/03 14:23:17 fca
-New version of RALICE introduced
-
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliCalmodule
// Note : row and col start counting at 1.
//
//--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
-//- Modified: NvE 18-jan-2000 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliCalmodule.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.3 1999/11/03 14:23:17 fca
-New version of RALICE introduced
-
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliCalorimeter
// // Note : Module gain, edge and dead flags remain
//
//--- Author: Nick van Eijndhoven 13-jun-1997 UU-SAP Utrecht
-//- Modified: NvE 03-mar-2000 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliCalorimeter.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
////////////////////////////////////////////////////////////////////////////////
// Class AliInvmass
//
//
//--- Author: Nick van Eijndhoven 12-apr-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
////////////////////////////////////////////////////////////////////////////////
#include "AliInvmass.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliJet
// ...
// AliJet j1(5);
// AliJet j2(12);
-// j1.Add(t1);
-// j1.Add(t2);
-// j2.Add(t3);
-// j2.Add(t4);
+// j1.AddTrack(t1);
+// j1.AddTrack(t2);
+// j2.AddTrack(t3);
+// j2.AddTrack(t4);
//
// j1.Info();
// j2.Info("sph");
// Note : All quantities are in GeV, GeV/c or GeV/c**2
//
//--- Author: Nick van Eijndhoven 10-jul-1997 UU-SAP Utrecht
-//- Modified: NvE 06-apr-1999 UU-SAP Utrecht to inherit from Ali4Vector
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliJet.h"
if (fNtinit > 0) SetNtinit(fNtinit);
}
///////////////////////////////////////////////////////////////////////////
-void AliJet::Add(AliTrack& t)
+void AliJet::AddTrack(AliTrack& t)
{
// Add a track to the jet
// In case the maximum number of tracks has been reached
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
AliJet(Int_t n); // Create a Jet to hold initially n Tracks
~AliJet(); // Default destructor
void Reset(); // Reset all values
- virtual void Add(AliTrack& t); // Add a track to the jet
- virtual void Add(AliTrack* t) { Add(*t); }
+ virtual void AddTrack(AliTrack& t);// Add a track to the jet
+ virtual void AddTrack(AliTrack* t) { AddTrack(*t); }
void Info(TString f); // Print jet information in coordinate frame f
void List(TString f="car"); // Print jet prim. track information for coord. frame f
void ListAll(TString f="car"); // Print jet prim. and decay track information for coord. frame f
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.3 1999/11/03 14:23:17 fca
-New version of RALICE introduced
-
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliMath
// // correct model
//
//--- Author: Nick van Eijndhoven 14-nov-1998 UU-SAP Utrecht
-//- Modified: NvE 12-mar-2000 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliMath.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliPosition
// q.GetPositionErrors(dloc,"sph");
//
//--- Author: Nick van Eijndhoven 06-feb-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliPosition.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliPositionObj
// ssum.Info();
//
//--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliPositionObj.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include "TObject.h"
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliRandom
// 3) Using the rvec facility saves a lot of CPU time for large n values.
//
//--- Author: Nick van Eijndhoven 11-oct-1997 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliRandom.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliSample
// All statistics of a sample are obtained via s.Info().
//
//--- Author: Nick van Eijndhoven 30-mar-1996 CERN Geneva
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliSample.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <math.h>
#include <iostream.h>
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliSignal
// q.SetSignalError(error,3);
//
//--- Author: Nick van Eijndhoven 23-jan-1999 UU-SAP Utrecht
-//- Modified: NvE 30-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliSignal.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include "TObject.h"
#include "TArrayF.h"
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliTrack
// Note : All quantities are in GeV, GeV/c or GeV/c**2
//
//--- Author: Nick van Eijndhoven 10-jul-1997 UU-SAP Utrecht
-//- Modified: NvE 29-oct-1999 UU-SAP Utrecht
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliTrack.h"
// All variables initialised to 0
fDecays=0;
fSignals=0;
+ fMasses=0;
+ fDmasses=0;
+ fPmasses=0;
Reset();
}
///////////////////////////////////////////////////////////////////////////
fQ=0;
fNdec=0;
fNsig=0;
+ fNmasses=0;
Double_t a[4]={0,0,0,0};
SetVector(a,"sph");
if (fDecays)
Double_t b[3]={0,0,0};
fBegin.SetPosition(b,"sph");
fEnd.SetPosition(b,"sph");
+ if (fMasses)
+ {
+ delete fMasses;
+ fMasses=0;
+ }
+ if (fDmasses)
+ {
+ delete fDmasses;
+ fDmasses=0;
+ }
+ if (fPmasses)
+ {
+ delete fPmasses;
+ fPmasses=0;
+ }
}
///////////////////////////////////////////////////////////////////////////
void AliTrack::Set3Momentum(Ali3Vector& p)
Double_t dm=GetResultError();
cout << " *AliTrack::Info* Mass : " << m
<< " error : " << dm << " Charge : " << fQ
- << " Momentum : " << GetMomentum() << " Ntracks : " << fNdec
- << " Nsignals : " << fNsig << endl;
+ << " Momentum : " << GetMomentum() << " Nmass hyp. : " << fNmasses
+ << " Ntracks : " << fNdec << " Nsignals : " << fNsig << endl;
+ for (Int_t i=0; i<fNmasses; i++)
+ {
+ cout << " Mass hypothesis " << (i+1) << " Mass : " << fMasses->At(i)
+ << " error : " << fDmasses->At(i) << " prob. : " << fPmasses->At(i)
+ << endl;
+ }
Ali4Vector::Info(f);
}
///////////////////////////////////////////////////////////////////////////
return fEnd;
}
///////////////////////////////////////////////////////////////////////////
+void AliTrack::AddMassHypothesis(Double_t prob,Double_t m,Double_t dm)
+{
+// Add a mass hypothesis for this current track.
+// prob=probalility m=mass value dm=error on the mass value.
+// The default value for the mass error dm is 0.
+ if (!fMasses) fMasses=new TArrayD();
+ if (!fDmasses) fDmasses=new TArrayD();
+ if (!fPmasses) fPmasses=new TArrayD();
+
+ fNmasses++;
+ fMasses->Set(fNmasses);
+ fDmasses->Set(fNmasses);
+ fPmasses->Set(fNmasses);
+
+ fMasses->AddAt(m,fNmasses-1);
+ fDmasses->AddAt(dm,fNmasses-1);
+ fPmasses->AddAt(prob,fNmasses-1);
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliTrack::GetNMassHypotheses()
+{
+// Provide the number of mass hypotheses for this track.
+ return fNmasses;
+}
+///////////////////////////////////////////////////////////////////////////
+Double_t AliTrack::GetMassHypothesis(Int_t j)
+{
+// Provide the mass of the jth hypothesis for this track.
+// Note : the first hypothesis is indicated by j=1.
+// Default : j=0 ==> Hypothesis with highest probability.
+// The error on the mass can be obtained by invoking GetResultError()
+// after invokation of GetMassHypothesis(j).
+
+ Double_t m=0,dm=0,prob=0;
+
+ // Check validity of index j
+ if (j<0 || j>fNmasses)
+ {
+ cout << " *AliTrack::GetMassHypothesis* Invalid index j : " << j
+ << " Number of mass hypotheses : " << fNmasses << endl;
+ fDresult=0;
+ return 0;
+ }
+
+ // Select mass hypothesis with highest probability
+ if (j==0)
+ {
+ if (fNmasses)
+ {
+ m=fMasses->At(0);
+ dm=fDmasses->At(0);
+ prob=fPmasses->At(0);
+ for (Int_t i=1; i<fNmasses; i++)
+ {
+ if (fPmasses->At(i)>prob)
+ {
+ m=fMasses->At(i);
+ dm=fDmasses->At(i);
+ }
+ }
+ }
+ fDresult=dm;
+ return m;
+ }
+
+ // Provide data of requested mass hypothesis
+ m=fMasses->At(j-1);
+ fDresult=fDmasses->At(j-1);
+ return m;
+}
+///////////////////////////////////////////////////////////////////////////
+Double_t AliTrack::GetMassHypothesisProb(Int_t j)
+{
+// Provide the probability of the jth hypothesis for this track.
+// Note : the first hypothesis is indicated by j=1.
+// Default : j=0 ==> Hypothesis with highest probability.
+
+ Double_t prob=0;
+
+ // Check validity of index j
+ if (j<0 || j>fNmasses)
+ {
+ cout << " *AliTrack::GetMassHypothesisProb* Invalid index j : " << j
+ << " Number of mass hypotheses : " << fNmasses << endl;
+ return 0;
+ }
+
+ // Select mass hypothesis with highest probability
+ if (j==0)
+ {
+ if (fNmasses)
+ {
+ prob=fPmasses->At(0);
+ for (Int_t i=1; i<fNmasses; i++)
+ {
+ if (fPmasses->At(i)>prob) prob=fPmasses->At(i);
+ }
+ }
+ return prob;
+ }
+
+ // Provide probability of requested mass hypothesis
+ prob=fPmasses->At(j-1);
+ return prob;
+}
+///////////////////////////////////////////////////////////////////////////
+void AliTrack::SetMass()
+{
+// Set the mass and error to the value of the hypothesis with highest prob.
+
+ Double_t m=0,dm=0,prob=0;
+
+ // Select mass hypothesis with highest probability
+ if (fNmasses)
+ {
+ m=fMasses->At(0);
+ dm=fDmasses->At(0);
+ prob=fPmasses->At(0);
+ for (Int_t i=1; i<fNmasses; i++)
+ {
+ if (fPmasses->At(i)>prob)
+ {
+ m=fMasses->At(i);
+ dm=fDmasses->At(i);
+ }
+ }
+ SetMass(m,dm);
+ }
+ else
+ {
+ cout << " *AliTrack::SetMass()* No hypothesis present => No action." << endl;
+ }
+}
+///////////////////////////////////////////////////////////////////////////
+void AliTrack::RemoveMassHypothesis(Int_t j)
+{
+// Remove the jth mass hypothesis for this track.
+// Note : the first hypothesis is indicated by j=1.
+
+ if (j<=0 || j>fNmasses) // Check validity of index j
+ {
+ cout << " *AliTrack::RemoveMassHypothesis* Invalid index j : " << j
+ << " Number of mass hypotheses : " << fNmasses << endl;
+ }
+ else
+ {
+ if (j != fNmasses)
+ {
+ fMasses->AddAt(fMasses->At(fNmasses-1),j-1);
+ fDmasses->AddAt(fDmasses->At(fNmasses-1),j-1);
+ fPmasses->AddAt(fPmasses->At(fNmasses-1),j-1);
+ }
+ fMasses->AddAt(0,fNmasses-1);
+ fDmasses->AddAt(0,fNmasses-1);
+ fPmasses->AddAt(0,fNmasses-1);
+ fNmasses--;
+ fMasses->Set(fNmasses);
+ fDmasses->Set(fNmasses);
+ fPmasses->Set(fNmasses);
+ }
+}
+///////////////////////////////////////////////////////////////////////////
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include "TObject.h"
#include "TObjArray.h"
+#include "TArrayD.h"
#include "AliSignal.h"
#include "AliBoost.h"
void Set4Momentum(Ali4Vector& p); // Set track 4-momentum
void Set3Momentum(Ali3Vector& p); // Set track 3-momentum
void SetMass(Double_t m,Double_t dm=0); // Set particle mass and error
+ void SetMass(); // Set mass and error to mass hypothesis with highest prob.
void SetCharge(Float_t q); // Set particle charge
void Info(TString f="car"); // Print track information for coord. frame f
void List(TString f="car"); // Print track and decay level 1 information for coord. frame f
AliPosition GetBeginPoint(); // Provide the track begin-point
void SetEndPoint(AliPosition p); // Set the track end-point
AliPosition GetEndPoint(); // Provide the track end-point
+ void AddMassHypothesis(Double_t prob,Double_t m,Double_t dm=0); // Add mass hypothesis data
+ Int_t GetNMassHypotheses(); // Provide number of mass hypotheses
+ Double_t GetMassHypothesis(Int_t j=0); // Provide mass of jth hypothesis
+ Double_t GetMassHypothesisProb(Int_t j=0); // Provide prob. of jth mass hypothesis
+ void RemoveMassHypothesis(Int_t j); // Remove the jth mass hypothesis
protected:
Float_t fQ; // The charge of the particle
TObjArray* fSignals; // The array of related AliSignals
AliPosition fBegin; // The begin-point of the track
AliPosition fEnd; // The end-point of the track
+ Int_t fNmasses; // The number of mass hypotheses
+ TArrayD* fMasses; // The various mass hypotheses
+ TArrayD* fDmasses; // The errors on the various masses
+ TArrayD* fPmasses; // The probabilities of the various mass hypotheses
private:
void Dump(AliTrack* t,Int_t n,TString f); // Recursively print all decay levels
* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.4 1999/11/03 14:23:18 fca
-New version of RALICE introduced
-
-Revision 1.3 1999/09/29 09:24:28 fca
-Introduction of the Copyright and cvs Log
-
-*/
+// $Id$
///////////////////////////////////////////////////////////////////////////
// Class AliVertex
//
// AliVertex v1(5);
//
-// v1.Add(t1);
-// v1.Add(t2);
-// v1.Add(t3);
-// v1.Add(t4);
+// v1.AddTrack(t1);
+// v1.AddTrack(t2);
+// v1.AddTrack(t3);
+// v1.AddTrack(t4);
//
// Float_t r1[3]={2.4,0.1,-8.5};
// v1.SetPosition(r1,"car");
//
// AliVertex v2(2);
-// v2.Add(t5);
-// v2.Add(t6);
-// v2.Add(t7);
+// v2.AddTrack(t5);
+// v2.AddTrack(t6);
+// v2.AddTrack(t7);
//
// Float_t r2[3]={1.6,-3.2,5.7};
// v2.SetPosition(r2,"car");
//
// AliVertex v3;
//
-// v3.Add(j1);
-// v3.Add(j2);
+// v3.AddJet(j1);
+// v3.AddJet(j2);
//
// Float_t r3[3]={6.2,4.8,1.3};
// v3.SetPosition(r3,"car");
//
// Specify the vertices v2 and v3 as secondary vertices of v1
//
-// v1.Add(v2);
-// v1.Add(v3);
+// v1.AddVertex(v2);
+// v1.AddVertex(v3);
//
// v1.List();
//
//
// v1.Reset();
// v1.SetNvmax(25); // Increase initial no. of sec. vertices
-// v1.Add(t3);
-// v1.Add(t7);
-// v1.Add(j2);
+// v1.AddTrack(t3);
+// v1.AddTrack(t7);
+// v1.AddJet(j2);
// Float_t pos[3]={7,9,4};
// v1.SetPosition(pos,"car");
//
// Note : All quantities are in GeV, GeV/c or GeV/c**2
//
//--- Author: Nick van Eijndhoven 04-apr-1998 UU-SAP Utrecht
-//- Modified: NvE 08-apr-1999 UU-SAP Utrecht to inherit from AliJet
+//- Modified: NvE $Date$ UU-SAP Utrecht
///////////////////////////////////////////////////////////////////////////
#include "AliVertex.h"
AliJet::Reset();
+ Double_t a[3]={0,0,0};
+ SetPosition(a,"sph");
+ SetPositionErrors(a,"car");
+
fNvtx=0;
if (fNvmax>0) SetNvmax(fNvmax);
if (fConnects)
}
}
///////////////////////////////////////////////////////////////////////////
-void AliVertex::Add(AliJet& j)
+void AliVertex::AddJet(AliJet& j)
{
// Add the tracks of a jet to the vertex
AliTrack* tj;
for (Int_t i=1; i<=j.GetNtracks(); i++)
{
tj=j.GetTrack(i);
- AliJet::Add(tj);
+ AliJet::AddTrack(tj);
}
}
///////////////////////////////////////////////////////////////////////////
-void AliVertex::Add(AliVertex& v,Int_t connect)
+void AliVertex::AddVertex(AliVertex& v,Int_t connect)
{
// Add a (secondary) vertex to the current vertex.
// In case the maximum number of (secondary) vertices has been reached,
t->Set3Momentum(p);
t->SetInvariant(v2,dv2);
- AliJet::Add(t);
+ AliJet::AddTrack(t);
if (!fConnects) fConnects=new TObjArray(fNvmax);
fConnects->Add(t);
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id$ */
+// $Id$
#include <iostream.h>
#include <math.h>
AliVertex(Int_t n); // Create a vertex to hold initially n tracks
~AliVertex(); // Default destructor
void Reset(); // Reset all values
- void Add(AliJet& j); // Add a jet of tracks to the vertex
- void Add(AliVertex& v,Int_t connect=1); // Add (and connect) a (sec.) vertex to the current vertex
- void Add(AliJet* j) { Add(*j); }
- void Add(AliVertex* v,Int_t connect=1) { Add(*v,connect); }
+ void AddJet(AliJet& j); // Add a jet of tracks to the vertex
+ void AddVertex(AliVertex& v,Int_t connect=1);// Add (and connect) a (sec.) vertex to the current vertex
+ void Add(AliJet* j) { AddJet(*j); }
+ void Add(AliVertex* v,Int_t connect=1) { AddVertex(*v,connect); }
void Info(TString f="car"); // Print the vertex info within coordinate frame f
void List(TString f="car"); // Print vertex prim. track information for coord. frame f
void ListAll(TString f="car"); // Print prim. + sec. vertex full track info for coord. frame f
#pragma link off all classes;
#pragma link off all functions;
- #pragma link C++ class AliMath+;
- #pragma link C++ class AliSample+;
- #pragma link C++ class AliRandom+;
- #pragma link C++ class Ali3Vector+;
- #pragma link C++ class Ali3VectorObj+;
- #pragma link C++ class Ali4Vector+;
- #pragma link C++ class Ali4VectorObj+;
- #pragma link C++ class AliBoost+;
- #pragma link C++ class AliPosition+;
- #pragma link C++ class AliPositionObj+;
- #pragma link C++ class AliSignal+;
- #pragma link C++ class AliCalorimeter+;
- #pragma link C++ class AliCalmodule+;
- #pragma link C++ class AliCalcluster+;
- #pragma link C++ class AliTrack+;
- #pragma link C++ class AliJet+;
- #pragma link C++ class AliVertex+;
- #pragma link C++ class AliInvmass+;
+ #pragma link C++ class AliMath;
+ #pragma link C++ class AliSample;
+ #pragma link C++ class AliRandom;
+ #pragma link C++ class Ali3Vector;
+ #pragma link C++ class Ali3VectorObj;
+ #pragma link C++ class Ali4Vector;
+ #pragma link C++ class Ali4VectorObj;
+ #pragma link C++ class AliBoost;
+ #pragma link C++ class AliPosition;
+ #pragma link C++ class AliPositionObj;
+ #pragma link C++ class AliSignal;
+ #pragma link C++ class AliCalorimeter;
+ #pragma link C++ class AliCalmodule;
+ #pragma link C++ class AliCalcluster;
+ #pragma link C++ class AliTrack;
+ #pragma link C++ class AliJet;
+ #pragma link C++ class AliVertex;
+ #pragma link C++ class AliInvmass;
+ #pragma link C++ class AliEvent;
#endif
06-jun-2000 NvE AliMath::K() etc... renamed to AliMath::BesselK() etc... for clarity.
07-jun-2000 NvE Vertex linking of AliVertex::Add(AliVertex&) made more sophisticated
by introduction of automatic generation of connecting track.
+26-jan-2001 NvE File RALICELinkDef.h updated to allow the automatic schema evolution
+ as introduced in ROOT 3.00/05.
+27-may-2001 NvE New class AliEvent introduced and RALICELinkDef.h & co. updated accordingly.
+ Also RALICELinkDef.h changed back to old schema evolution (i.e. "+" removed)
+ because of problems with I/O in ROOT 3.00/06 w.r.t. multiple inheritance.
+29-may-2001 NvE Position reset added in AliVertex::Reset().
+01-jun-2001 NvE Memberfunctions Add() renamed explicitly to AddTrack(), AddJet() and
+ AddVertex() in AliJet and AliVertex.
+03-jun-2001 NvE Treatment of masshypotheses introduced in AliTrack.
+04-jun-2001 NvE CVS Log text and keyword replaced by Id in .cxx files and C++ comment
+ indicator /* ... */ replaced by // in the Id record of the .h files
+ to prevent problems.
+06-jun-2001 NvE CVS Date keyword introduced in 'Modified' field in .cxx files so that
+ the modification date is updated automatically in the html docs.