]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding conventions
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 18:09:56 +0000 (18:09 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 18:09:56 +0000 (18:09 +0000)
MUON/AliMUONData.cxx
MUON/AliMUONData.h

index 1d494de205dfb37047cdc955ed0b764d5b46dbfe..35dc26130be1db48c9c8b8855b1d7bf242392360 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
+// AliMUONData classes
+// Class containing MUON data: hits, digits, rawclusters, globaltrigger, localtrigger, etc ..
+// The classe makes the lik between the MUON data lists and the event trees from loaders
+// Gines Martinez, Subatech,  September 2003
+//
+
 
 //Root includes
 #include "TNamed.h"
@@ -33,6 +39,7 @@ ClassImp(AliMUONData)
 //_____________________________________________________________________________
 AliMUONData::AliMUONData():TNamed()
 {
+  // Default constructor
   fLoader        = 0x0;
   fHits          = 0x0;    // One event in treeH per primary track
   fDigits        = 0x0;  // One event in treeH per detection plane
@@ -48,6 +55,7 @@ AliMUONData::AliMUONData():TNamed()
 AliMUONData::AliMUONData(AliLoader * loader, const char* name, const char* title):
   TNamed(name,title)
 {
+  // Constructor for AliMUONData
   fLoader        = loader;
   fHits          = 0x0;    // One event in treeH per primary track
   fDigits        = 0x0;  // One event in treeH per detection plane
@@ -94,6 +102,7 @@ AliMUONData::AliMUONData(const AliMUONData& rMUONData):TNamed(rMUONData)
 //_____________________________________________________________________________
 AliMUONData::~AliMUONData()
 {
+  // Destructor for AliMUONData
   if (fHits) {
     fHits->Delete();
     delete fHits;
@@ -145,6 +154,7 @@ void AliMUONData::AddHit(Int_t fIshunt, Int_t track, Int_t iChamber,
                         Float_t tof, Float_t momentum, Float_t theta, 
                         Float_t phi, Float_t length, Float_t destep)
 {
+  // Add new hit to the hit list
   TClonesArray &lhits = *fHits;
   new(lhits[fNhits++]) AliMUONHit(fIshunt, track, iChamber, 
                                  idpart, X, Y, Z, 
@@ -158,6 +168,7 @@ void AliMUONData::AddHit(Int_t fIshunt, Int_t track, Int_t iChamber,
                         Float_t phi, Float_t length, Float_t destep,
                         Float_t Xref,Float_t Yref,Float_t Zref)
 {
+ // Add new hit to the hit list
   TClonesArray &lhits = *fHits;
   new(lhits[fNhits++]) AliMUONHit(fIshunt, track, iChamber, 
                                  idpart, X, Y, Z, 
@@ -193,6 +204,7 @@ void AliMUONData::AddRecTrack(const AliMUONTrack& track)
 //____________________________________________________________________________
 TClonesArray*  AliMUONData::Digits(Int_t DetectionPlane) 
 {
+  //Getting List of Digits
   if (fDigits)
     return ( (TClonesArray*) fDigits->At(DetectionPlane) );
   else
@@ -201,6 +213,7 @@ TClonesArray*  AliMUONData::Digits(Int_t DetectionPlane)
 //____________________________________________________________________________
 Bool_t   AliMUONData::IsRawClusterBranchesInTree()
 {
+  // Checking if there are RawCluster Branches In TreeR
   if (TreeR()==0x0) {
     Error("TreeR","No treeR in memory");
     return kFALSE;
@@ -217,6 +230,7 @@ Bool_t   AliMUONData::IsRawClusterBranchesInTree()
 //____________________________________________________________________________
 Bool_t   AliMUONData::IsTriggerBranchesInTree()
 {
+  // Checking if there are Trigger Branches In TreeR
  if (TreeR()==0x0) {
     Error("TreeR","No treeR in memory");
     return kFALSE;
@@ -440,6 +454,7 @@ void AliMUONData::MakeBranch(Option_t* option)
 //____________________________________________________________________________
 TClonesArray*  AliMUONData::RawClusters(Int_t DetectionPlane)
 {
+  // Getting Raw Clusters
   if (fRawClusters) 
     return ( (TClonesArray*) fRawClusters->At(DetectionPlane) );
   else
@@ -493,6 +508,7 @@ void AliMUONData::ResetRecTracks()
 //_____________________________________________________________________________
 void AliMUONData::SetTreeAddress(Option_t* option)
 {
+  //Setting Addresses to the events trees
   const char *cH   = strstr(option,"H");
   const char *cD   = strstr(option,"D");   // Digits branches in TreeD
   const char *cRC  = strstr(option,"RC");  // RawCluster branches in TreeR
index e17659134669d9110d47ac6ef37d3cd9890c1f67..dd747076cdb7179bccf0f34be0f10ae9bc03fb43 100644 (file)
@@ -100,27 +100,20 @@ class AliMUONData : public TNamed {
 
   
  protected: 
-    AliLoader*  fLoader;
-
-    // One event in treeH per primary track
-    TClonesArray*   fHits;    
-    // One event in treeD and one branch per detection plane
-    TObjArray*      fDigits; 
-    //One event in TreeR/Rawcluster and one branch per tracking detection plane
-    TObjArray*      fRawClusters; 
-    //! List of Global Trigger One event in TreeR/GlobalTriggerBranch
-    TClonesArray*   fGlobalTrigger; 
-    //! List of Local Trigger, One event in TreeR/LocalTriggerBranch
-    TClonesArray*   fLocalTrigger;  
-    // pointer to array of reconstructed tracks
-    TClonesArray*   fRecTracks; 
-
-    Int_t           fNhits; //!
-    Int_t*          fNdigits;//!
-    Int_t*          fNrawclusters;//!
-    Int_t           fNglobaltrigger;//!
-    Int_t           fNlocaltrigger;//!
-    Int_t           fNrectracks; //!
+    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
+    TObjArray*      fRawClusters; //One event in TreeR/Rawcluster and one branch per tracking detection plane
+    TClonesArray*   fGlobalTrigger;  // List of Global Trigger One event in TreeR/GlobalTriggerBranch
+    TClonesArray*   fLocalTrigger;  // List of Local Trigger, One event in TreeR/LocalTriggerBranch
+    TClonesArray*   fRecTracks; // pointer to array of reconstructed tracks
+
+    Int_t           fNhits; //!  Number of Hits
+    Int_t*          fNdigits;//! Number of Digits
+    Int_t*          fNrawclusters;//! Number of Raw Clusters
+    Int_t           fNglobaltrigger;//! Number of Global trigger
+    Int_t           fNlocaltrigger;//! Number of Local trigger
+    Int_t           fNrectracks; //! Number of reconstructed tracks
     Int_t           fSplitLevel; // Splitting of branches 0 no spitting (root files are smaller) 1 splitting (larger output files)
 
     ClassDef(AliMUONData,1)