From: ivana Date: Wed, 27 Jun 2007 16:44:01 +0000 (+0000) Subject: Adding comments (Laurent) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=22dce0e3cf0e9043e6bbb0cab7822f29974805fb;p=u%2Fmrichter%2FAliRoot.git Adding comments (Laurent) --- diff --git a/MUON/AliMUONClusterStoreV1.cxx b/MUON/AliMUONClusterStoreV1.cxx index 317a828719c..7ad5453baa4 100644 --- a/MUON/AliMUONClusterStoreV1.cxx +++ b/MUON/AliMUONClusterStoreV1.cxx @@ -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 ) { diff --git a/MUON/AliMUONVDigit.cxx b/MUON/AliMUONVDigit.cxx index 56721f57932..6a26e7b1511 100644 --- a/MUON/AliMUONVDigit.cxx +++ b/MUON/AliMUONVDigit.cxx @@ -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(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(object); if ( DetElemId() > d->DetElemId() ) diff --git a/MUON/AliMUONVDigit.h b/MUON/AliMUONVDigit.h index 99e6eca03db..636c1b1cd3d 100644 --- a/MUON/AliMUONVDigit.h +++ b/MUON/AliMUONVDigit.h @@ -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; diff --git a/MUON/AliMUONVDigitStore.cxx b/MUON/AliMUONVDigitStore.cxx index 1954ad01d70..476ee2d4c00 100644 --- a/MUON/AliMUONVDigitStore.cxx +++ b/MUON/AliMUONVDigitStore.cxx @@ -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(object); if (digit) {