**************************************************************************/
-/*
-$Log$
-Revision 1.1 2001/11/09 09:10:46 morsch
-Realisation of AliGenReader that reads the old cwn event format.
-
-*/
+/* $Id$ */
// Read the old ALICE event format based on CW-ntuples
// http://consult.cern.ch/alice/Internal_Notes/1995/32/abstract
// Author: andreas.morsch@cern.ch
#include <TFile.h>
-#include <TTree.h>
#include <TParticle.h>
+#include <TTree.h>
+#include <TVirtualMC.h>
#include "AliGenReaderCwn.h"
-#include "AliMC.h"
+
ClassImp(AliGenReaderCwn);
Int_t nentries = (Int_t) fTreeNtuple->GetEntries();
if (fNcurrent < nentries) {
- Int_t nb = (Int_t)fTreeNtuple->GetEvent(fNcurrent);
fNcurrent++;
Int_t i5=fIhead[4];
}
fNparticleMax = nTracks;
return nTracks;
- } else {
- return 0;
}
+
return 0;
}
p[1] = prwn*TMath::Sin(fTheta)*TMath::Sin(fPhi);
p[2] = prwn*TMath::Cos(fTheta);
p[3] = fE;
- TParticle* particle = new TParticle(fIdpart, 0, -1, -1, -1, -1, p[0], p[1], p[2], p[3],
- 0., 0., 0., 0.);
- Int_t nb = (Int_t)fTreeNtuple->GetEvent(fNcurrent);
+ TParticle* particle = new TParticle(fIdpart, 0, -1, -1, -1, -1, p[0], p[1], p[2], p[3], 0., 0., 0., 0.);
fNcurrent++;
fNparticle++;
return particle;
AliGenReaderCwn& AliGenReaderCwn::operator=(const AliGenReaderCwn& rhs)
{
// Assignment operator
+ rhs.Copy(*this);
return *this;
}
+void AliGenReaderCwn::Copy(TObject&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
+}
+
+