X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONMCDataInterface.cxx;h=5dfb2a05fe4d00cf74f4f13075fbd36301b8627a;hb=da2d199e7a43dca38046efcbf1dae1a5648aa5a5;hp=3a3ca33e57a4b88c77d6df7aeeb92d83ae2579c4;hpb=88c5d53fec6b1e0e5499a9d026c65d3bfcf7faca;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONMCDataInterface.cxx b/MUON/AliMUONMCDataInterface.cxx index 3a3ca33e57a..5dfb2a05fe4 100644 --- a/MUON/AliMUONMCDataInterface.cxx +++ b/MUON/AliMUONMCDataInterface.cxx @@ -36,7 +36,7 @@ #include "AliMUONRegionalTrigger.h" #include "AliMUONGlobalTrigger.h" -#include "AliMpIntPair.h" +#include "AliMpEncodePair.h" #include "AliMpDEManager.h" #include "AliMpConstants.h" #include "AliMpCDB.h" @@ -113,6 +113,12 @@ AliMUONMCDataInterface::HitStore(Int_t event, Int_t track) /// Return the hitStore for a given track of one event /// Return 0x0 if event and/or track not found /// Returned pointer should not be deleted + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if (not IsValid()) return 0x0; @@ -162,6 +168,12 @@ AliMUONMCDataInterface::SDigitStore(Int_t event) /// Return the SDigit store for a given event. /// Return 0 if event not found /// Returned pointer should not be deleted + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if (not IsValid()) return 0x0; @@ -204,6 +216,12 @@ AliMUONMCDataInterface::DigitStore(Int_t event) { /// Return a pointer to the digitStore for a given event (or 0 if not found) /// Returned pointer should not be deleted + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if (not IsValid()) return 0x0; @@ -246,6 +264,12 @@ AliMUONMCDataInterface::Stack(Int_t event) { /// Get the Stack (list of generated particles) for one event /// Returned pointer should not be deleted + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if ( not IsValid() ) return 0x0; @@ -266,6 +290,12 @@ AliMUONMCDataInterface::TrackRefs(Int_t event, Int_t track) { /// Get the track references for a given (generated) track of one event /// Returned pointer should not be deleted + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if ( not IsValid() ) return 0x0; @@ -313,6 +343,12 @@ AliMUONMCDataInterface::TriggerStore(Int_t event) /// Return the triggerStore for a given event. /// Return 0x0 if event not found. /// Returned pointer should not be deleted. + /// + /// \note If a previous store has been retrieved by one of the methods of + /// this class, but for a different event number, then those stores will + /// be deleted and no longer valid. + /// If you require access to the data for the earlier retrieved store, + /// but for different events, then you should deep copy / clone the object. if (not IsValid()) return 0x0; @@ -974,8 +1010,8 @@ TIterator* AliMUONMCDataInterface::GetIterator(IteratorType type, Int_t x, Int_t AliMUONVDigitStore* store = SDigitStore(fCurrentEvent); if (store == 0x0) return 0x0; - AliMpIntPair pair = AliMpDEManager::GetDetElemIdRange(chamber); - fIterator = store->CreateIterator(pair.GetFirst(), pair.GetSecond(), cathode); + MpPair_t pair = AliMpDEManager::GetDetElemIdRange(chamber); + fIterator = store->CreateIterator(AliMp::PairFirst(pair), AliMp::PairSecond(pair), cathode); if (fIterator == 0x0) return 0x0; fCurrentIteratorType = kSDigitIteratorByChamberAndCathode; fDataX = chamber; @@ -1016,8 +1052,8 @@ TIterator* AliMUONMCDataInterface::GetIterator(IteratorType type, Int_t x, Int_t AliMUONVDigitStore* store = DigitStore(fCurrentEvent); if (store == 0x0) return 0x0; - AliMpIntPair pair = AliMpDEManager::GetDetElemIdRange(chamber); - fIterator = store->CreateIterator(pair.GetFirst(), pair.GetSecond(), cathode); + MpPair_t pair = AliMpDEManager::GetDetElemIdRange(chamber); + fIterator = store->CreateIterator(AliMp::PairFirst(pair), AliMp::PairSecond(pair), cathode); if (fIterator == 0x0) return 0x0; fCurrentIteratorType = kDigitIteratorByChamberAndCathode; fDataX = chamber;