]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONData.h
Correction of coding conventions: comments for all data members were added.
[u/mrichter/AliRoot.git] / MUON / AliMUONData.h
index a02d43cf99e000cfc03cde6c8e1022bb5c43b8a0..825e3e944cae6befc42b3241de57a9975bd1a0cc 100644 (file)
@@ -5,12 +5,15 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+// Revision of includes 07/05/2004
 
 // AliMUONData
 // Class containing MUON data: hits, digits, rawclusters, globaltrigger, localtrigger, etc ...
 // Gines Martinez, Subatech,  September 2003
 //
 
+#include <TNamed.h>
+
 #include "AliLoader.h"
 
 class TClonesArray;
@@ -18,7 +21,6 @@ class TNamed;
 class TObjArray;
 class TTree;
 
-
 class AliMUONConstants;
 class AliMUONRawCluster;
 class AliMUONTrack;
@@ -40,14 +42,13 @@ class AliMUONData : public TNamed
   public:
     AliMUONData();
     AliMUONData(AliLoader * loader, const char* name, const char* title);
-    AliMUONData(const AliMUONData& rMUONData);
     virtual ~AliMUONData();  
     virtual void   AddDigit(Int_t id, Int_t* tracks, Int_t* charges,
                             Int_t* digits); 
     virtual void   AddSDigit(Int_t id, Int_t* tracks, Int_t* charges,
                             Int_t* digits); 
-    virtual void   AddDigit(Int_t, const AliMUONDigit& ); // use copy constructor
-    virtual void   AddSDigit(Int_t, const AliMUONDigit& ); // use copy constructor
+    virtual void   AddDigit(Int_t id, const AliMUONDigit& digit); // use copy constructor
+    virtual void   AddSDigit(Int_t id, const AliMUONDigit& digit); // use copy constructor
     virtual void   AddHit(Int_t fIshunt, Int_t track, Int_t iChamber, 
                          Int_t idpart, Float_t X, Float_t Y, Float_t Z, 
                          Float_t tof, Float_t momentum, Float_t theta, 
@@ -57,7 +58,7 @@ class AliMUONData : public TNamed
                          Float_t tof, Float_t momentum, Float_t theta, 
                          Float_t phi, Float_t length, Float_t destep, 
                          Float_t Xref,Float_t Yref,Float_t Zref);
-    virtual void   AddHit(const AliMUONHit& ); // use copy constructor
+    virtual void   AddHit(const AliMUONHit& hit); // use copy constructor
     
     virtual void   AddGlobalTrigger(Int_t *singlePlus, Int_t *singleMinus,
                                    Int_t *singleUndef, Int_t *pairUnlike, 
@@ -82,15 +83,15 @@ class AliMUONData : public TNamed
     TClonesArray*  RecTracks() {return fRecTracks;}
     TClonesArray*  RecTriggerTracks() {return fRecTriggerTracks;}
 
-    void           GetTrack(Int_t it) {fLoader->TreeH()->GetEvent(it);}
-    Int_t          GetNtracks()       {return (Int_t) fLoader->TreeH()->GetEntries();}
-    void           GetCathode(Int_t ic) {fLoader->TreeD()->GetEvent(ic);}
-    void           GetCathodeS(Int_t ic) {fLoader->TreeS()->GetEvent(ic);}
-    void           GetRawClusters() {fLoader->TreeR()->GetEvent(0);}
-    void           GetTrigger() {fLoader->TreeR()->GetEvent(0);}
-    Int_t          GetSplitLevel() {return fSplitLevel;}
-    void           GetRecTracks() {fLoader->TreeT()->GetEvent(0);}
-    void           GetRecTriggerTracks() {fLoader->TreeT()->GetEvent(0);}
+    void           GetTrack(Int_t it) const  {fLoader->TreeH()->GetEvent(it);}
+    Int_t          GetNtracks() const      {return (Int_t) fLoader->TreeH()->GetEntries();}
+    void           GetCathode(Int_t ic) const {fLoader->TreeD()->GetEvent(ic);}
+    void           GetCathodeS(Int_t ic) const {fLoader->TreeS()->GetEvent(ic);}
+    void           GetRawClusters() const {fLoader->TreeR()->GetEvent(0);}
+    void           GetTrigger() const {fLoader->TreeR()->GetEvent(0);}
+    Int_t          GetSplitLevel() const {return fSplitLevel;}
+    void           GetRecTracks() const {fLoader->TreeT()->GetEvent(0);}
+    void           GetRecTriggerTracks() const {fLoader->TreeT()->GetEvent(0);}
 
     Bool_t        IsRawClusterBranchesInTree();
     Bool_t        IsTriggerBranchesInTree();
@@ -123,6 +124,9 @@ class AliMUONData : public TNamed
     TTree*         TreeP() {return fLoader->TreeP(); }
 
   protected: 
+    AliMUONData(const AliMUONData& rhs);
+    AliMUONData& operator=(const AliMUONData& rhs);
+
     AliLoader*  fLoader; //! Detector Loader pointer
     TClonesArray*   fHits;  // One event in treeH per primary track
     TObjArray*      fDigits; // One event in treeD and one branch per detection plane