-//Authors: Mihaela Gheata, Andrei Gheata 09/10/00
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/*
+$Log$
+Revision 1.5 2001/05/11 07:59:03 hristov
+Index corrected
+
+Revision 1.4 2001/01/26 20:00:53 hristov
+Major upgrade of AliRoot code
+
+Revision 1.3 2000/12/21 17:51:54 morsch
+RN3 violations corrected
+
+Revision 1.2 2000/11/23 10:09:38 gosset
+Bug correction in AliMUONRecoDisplay.
+Copyright, $Log$
+Copyright, Revision 1.5 2001/05/11 07:59:03 hristov
+Copyright, Index corrected
+Copyright,
+Copyright, Revision 1.4 2001/01/26 20:00:53 hristov
+Copyright, Major upgrade of AliRoot code
+Copyright,
+Copyright, Revision 1.3 2000/12/21 17:51:54 morsch
+Copyright, RN3 violations corrected
+Copyright,, $Id$, comments at the right place for automatic documentation,
+in AliMUONRecoEvent and AliMUONRecoDisplay
+*/
+
+//Authors: Mihaela Gheata, Andrei Gheata 09/10/00
+////////////////////////////////////////////////////////////////////
+// //
+// AliMUONRecoEvent, AliMUONRecoTrack (and AliMUONRecoDisplay) //
+// //
+// Theses classes are used to store and retrieve //
+// MUON reconstructed events. //
+// The corresponding tree is constructed and filled //
+// during the FillEvent() method of AliMUONEventReconstructor, //
+// when all reconstruction information is available. //
+// //
+////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////
+// //
+// AliMUONRecoEvent //
+// //
+// This class handles an array of reconstructed tracks. //
+// It provides : //
+// - filling the tracks array according to the information //
+// stored in AliMUONEventReconstructor class ; //
+// - printing event and track informations : event numer, //
+// number of tracks, hits positions, reconstr. mometum. //
+// //
+////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// //
-// AliMUONRecoEvent and AliMUONRecoTrack and AliMUONRecoDisplay //
+// AliMUONRecoTrack //
// //
-// This header contains all classes needed for storing MUON //
-// reconstructed events . The tree of reconstructed //
-// events is constructed and filled during the FillEvent() method //
-// of AliMUONEventReconstructor class, when all reconstruction //
-// information is available. //
+// This class represents a reconstructed muon track //
+// in the tree of reconstructed events. //
// //
////////////////////////////////////////////////////////////////////
#include <iostream.h>
#include <AliRun.h>
#include <TClonesArray.h>
+#include <TClass.h>
#include "AliMUONRecoEvent.h"
#include "AliMUONTrack.h"
#include "AliMUONTrackParam.h"
#include "AliMUONHitForRec.h"
#include "AliMUONTrackHit.h"
+#include "AliHeader.h"
ClassImp(AliMUONRecoTrack)
ClassImp(AliMUONRecoEvent)
return kFALSE;
}
// Get event number
- Int_t no_event = gAlice->GetHeader()->GetEvent();
+ Int_t noEvent = gAlice->GetHeader()->GetEvent();
tracksPtr->Compress(); // simple loop
AliMUONRecoTrack *currentTrack;
Int_t trackIndex = 0, nTrackHits = 0;
AliMUONTrack *track = 0;
AliMUONTrackParam *trackParam = 0;
// Fill event number and number of tracks
- fNevr = no_event;
+ fNevr = noEvent;
// Loop over reconstructed tracks
for (trackIndex=0; trackIndex<nTracks; trackIndex++) {
currentTrack = AddEmptyTrack();
{
// Streams an object of class AliMUONRecoEvent
if (R__b.IsReading()) {
- Version_t R__v = R__b.ReadVersion(); if (R__v) { }
- TObject::Streamer(R__b);
- R__b >> fNevr;
- R__b >> fNtracks;
fTracks->Clear();
- fTracks->Streamer(R__b);
+ AliMUONRecoEvent::Class()->ReadBuffer(R__b, this);
} else {
cout << "...writing event to file...\n";
- R__b.WriteVersion(AliMUONRecoEvent::IsA());
- TObject::Streamer(R__b);
- R__b << fNevr;
- R__b << fNtracks;
- fTracks->Streamer(R__b);
+ AliMUONRecoEvent::Class()->WriteBuffer(R__b, this);
}
}
const Double_t AliMUONRecoTrack::Theta()
{
// Return trach theta angle
- return TMath::ACos(fPr[3] / P());
+ return TMath::ACos(fPr[2] / P());
}
//-------------------------------------------------------------------