]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRecoEvent.cxx
Cosmetic changes for the integration of doxygen
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoEvent.cxx
index 92325b25c36795d64f97d435652199352dbd2687..5d4ca71d555d0aab8455c15442f78bccfef9eeca 100644 (file)
@@ -1,25 +1,88 @@
-//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)
@@ -109,7 +172,7 @@ Bool_t AliMUONRecoEvent::MakeDumpTracks(TClonesArray *tracksPtr)
       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;
@@ -119,7 +182,7 @@ Bool_t AliMUONRecoEvent::MakeDumpTracks(TClonesArray *tracksPtr)
    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();
@@ -161,19 +224,11 @@ void AliMUONRecoEvent::Streamer(TBuffer &R__b)
 {
 // 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);
    }
 }
 
@@ -207,7 +262,7 @@ const Double_t AliMUONRecoTrack::Phi()
 const Double_t AliMUONRecoTrack::Theta()
 {
 // Return trach theta angle
-   return TMath::ACos(fPr[3] / P());
+   return TMath::ACos(fPr[2] / P());
 }
 
 //-------------------------------------------------------------------