* provided "as is" without express or implied warranty. *
**************************************************************************/
-/* $Header$ */
+/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// //
#include "TView.h"
#include "AliDetector.h"
+#include "AliMC.h"
#include "AliPoints.h"
#include "AliRun.h"
}
//_______________________________________________________________________
-void AliPoints::Copy(AliPoints &pts) const
+void AliPoints::Copy(TObject &pts) const
{
//
// Copy *this onto pts
//
- if(this != &pts) {
+ if((TObject*)this != &pts) {
((TPolyMarker3D*)this)->Copy(dynamic_cast<TPolyMarker3D&>(pts));
- pts.fGLList = fGLList;
- pts.fLastPoint = fLastPoint;
- pts.fDetector = fDetector;
- pts.fIndex = fIndex;
+ (dynamic_cast<AliPoints&>(pts)).fGLList = fGLList;
+ (dynamic_cast<AliPoints&>(pts)).fLastPoint = fLastPoint;
+ (dynamic_cast<AliPoints&>(pts)).fDetector = fDetector;
+ (dynamic_cast<AliPoints&>(pts)).fIndex = fIndex;
}
}
//
// Returns pointer to particle index in AliRun::fParticles
//
- if (fIndex < 0 || fIndex >= gAlice->GetNtrack()) return 0;
- else return gAlice->Particle(fIndex);
+ if (fIndex < 0 || fIndex >= gAlice->GetMCApp()->GetNtrack()) return 0;
+ else return gAlice->GetMCApp()->Particle(fIndex);
}
//_______________________________________________________________________
-void AliPoints::InspectParticle()
+void AliPoints::InspectParticle() const
{
//
// Inspect particle corresponding to this point
//
TIter next(gAlice->Detectors());
AliDetector *detector;
- while((detector = dynamic_cast<AliDetector*>(next()))) {
+ while((detector = (AliDetector*)(next()))) {
if (!detector->IsActive()) continue;
points = detector->Points();
if (!points) continue;