]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALParton.cxx
Use of (dummy) reconstructors for all detectors (T.Kuhr)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALParton.cxx
index 9207c4050633475b2990289704c2a8bf4cd7f72b..010614b6cf210bba6b409e5e78b9901beabc1ee1 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id:  */
-/*
-  $Log$
-  Revision 1.5.4.1  2003/07/08 17:16:50  schutz
-  NewIO
-
-  Revision 1.5  2003/03/17 17:29:54  hristov
-  Using Riostream.h instead of iostream.h
-
-  Revision 1.4  2003/03/17 14:26:06  morsch
-  Updates by M. Horner and J. Klay
-
-  Revision 1.3  2003/02/05 17:24:25  morsch
-  Modifiactions by M. Horner.
-
-  Revision 1.2  2002/10/14 14:55:35  hristov
-  Merging the VirtualMC branch to the main development branch (HEAD)
-
-  Revision 1.1.2.1  2002/08/28 15:06:50  alibrary
-  Updating to v3-09-01
-
-  Revision 1.1  2002/08/21 10:29:29  schutz
-  New classes (by Renan)
-
-*/
+/* $Id$ */
 
 //*-- Author: Renan Cabrera (Creighton U.)
 
@@ -55,6 +31,7 @@ AliEMCALParton::AliEMCALParton()
 //  fTrackPhi    = 0;
 //  fTrackPDG    = 0;
   fNTracks     = 0;
+  fPartonCode = 0;
 }
 
 AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
@@ -68,11 +45,12 @@ AliEMCALParton::AliEMCALParton(Float_t energy, Float_t phi, Float_t eta)
 //  fTrackPhi    = 0;
 //  fTrackPDG    = 0;
   fNTracks     = 0;
+  fPartonCode = 0;
 }
 
 void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG)
 {
-
+// Set the stored tracklist
   fNTracks     = NTracks;
   for (Int_t i=0;i<NTracks;i++)
   {
@@ -83,8 +61,9 @@ void AliEMCALParton::SetTrackList(Int_t NTracks, Float_t* Energy,  Float_t* Eta,
   }
 }
 
-void AliEMCALParton::GetTrackList(Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG)
+void AliEMCALParton::GetTrackList(Float_t* Energy,  Float_t* Eta, Float_t* Phi, Int_t* PDG) const
 {
+// retrieves the stored tracklist      
   for (Int_t i=0;i<fNTracks;i++)
   {
     Energy[i] = fTrackEnergy[i] ;