]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding comments (Laurent)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 16:44:01 +0000 (16:44 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 16:44:01 +0000 (16:44 +0000)
MUON/AliMUONClusterStoreV1.cxx
MUON/AliMUONVDigit.cxx
MUON/AliMUONVDigit.h
MUON/AliMUONVDigitStore.cxx

index 317a828719c868b4fed5ac4f7f764015c3ab2f4b..7ad5453baa444246d35e97c2e1916186fa41f179 100644 (file)
@@ -211,6 +211,7 @@ AliMUONClusterStoreV1::CreateChamberIterator(Int_t firstChamber, Int_t lastChamb
 Int_t
 AliMUONClusterStoreV1::GetSize() const
 {
+  /// Return the number of clusters we hold
   Int_t n(0);
   for ( Int_t i = 0; i < fClusters->GetSize(); ++i ) 
   {
index 56721f5793234b347cab80748afa59e068a3c73b..6a26e7b15118235618ab83d26d52a9f7e863bb5c 100644 (file)
@@ -73,6 +73,10 @@ AliMUONVDigit::~AliMUONVDigit()
 Bool_t 
 AliMUONVDigit::IsEqual(const TObject* object) const
 {
+  /// Whether we're equal to object. 
+  /// WARNING : only based on our identifiers (de,manu,channel,cathode), not our
+  /// content (i.e. charge, status...)
+  
   const AliMUONVDigit* d = static_cast<const AliMUONVDigit*>(object);
     
   return ( DetElemId() == d->DetElemId() &&
@@ -85,6 +89,9 @@ AliMUONVDigit::IsEqual(const TObject* object) const
 Int_t 
 AliMUONVDigit::Compare(const TObject* object) const
 {
+  /// Compare two digits, trying to get as complete an order as possible.
+  /// We sort by DE, then by charge, then by manu, etc...
+  ///
   const AliMUONVDigit* d = static_cast<const AliMUONVDigit*>(object);
   
   if ( DetElemId() > d->DetElemId() ) 
index 99e6eca03db71a7c0a1b4e7531876e326a37e69e..636c1b1cd3d0555cb32c29c259a85717b54f6ca5 100644 (file)
@@ -23,6 +23,7 @@ public:
   virtual ~AliMUONVDigit();
   
   virtual Bool_t IsEqual(const TObject* object) const;
+  /// Advertise that we can be sorted in TCollections
   virtual Bool_t IsSortable() const { return kTRUE; }
   virtual Int_t Compare(const TObject* object) const;
   
index 1954ad01d70f1cc0ca564501742537d7c195dedb..476ee2d4c0091ecf6cca4d7e63b55f47b57aa006 100644 (file)
@@ -95,6 +95,8 @@ AliMUONVDigitStore::Add(Int_t detElemId,
 AliMUONVDigitStore* 
 AliMUONVDigitStore::Create(const char* digitstoreclassname)
 {
+  /// Create a concrete digitStore, given its classname
+  
   TClass* classPtr = TClass::GetClass(digitstoreclassname);
   if (!classPtr)
   {
@@ -122,6 +124,7 @@ AliMUONVDigitStore::Create(TTree& tree)
 AliMUONVDigit* 
 AliMUONVDigitStore::FindObject(const TObject* object) const
 {
+  /// Find an object, if of AliMUONVDigit type.
   const AliMUONVDigit* digit = dynamic_cast<const AliMUONVDigit*>(object);
   if (digit)
   {