}
//_____________________________________________________________________________
-#if ROOT_SVN_REVISION >= 29598
Bool_t
-AliMpExMapIterator::Next(Long64_t& index, TObject*& object)
-#else
-Bool_t
-AliMpExMapIterator::Next(Long_t& index, TObject*& object)
-#endif
+AliMpExMapIterator::Next(Index_t& index, TObject*& object)
{
/// Move to next object in iteration
-#if ROOT_SVN_REVISION >= 29598
- Long64_t value(0);
-#else
- Long_t value(0);
-#endif
+ Index_t value = 0;
object = 0;
{
/// Return the next object in iteration.
/// The returned object must not be deleted by the user.
-
-#if ROOT_SVN_REVISION >= 29598
- Long64_t dummy;
-#else
- Long_t dummy;
-#endif
+ Index_t dummy;
TObject* o(0x0);
Next(dummy,o);
return o;
/// The returned object must not be deleted by the user.
TObject* o;
-#if ROOT_SVN_REVISION >= 29598
- Long64_t index;
-#else
- Long_t index;
-#endif
+ Index_t index;
Next(index,o);
key = (Int_t)(index);
return o;
{
/// Return the next object in iteration and fill the key.
/// The returned object must not be deleted by the user.
-
-#if ROOT_SVN_REVISION >= 29598
- Long64_t index;
-#else
- Long_t index;
-#endif
+ Index_t index;
TObject* o(0x0);
Next(index,o);
keyFirst = AliMpExMap::GetPairFirst(index);
{
/// Return the next object in iteration and fill the key.
/// The returned object must not be deleted by the user.
-
-#if ROOT_SVN_REVISION >= 29598
- Long64_t index;
-#else
- Long_t index;
-#endif
+ Index_t index;
TObject* o(0x0);
Next(index,o);
key = AliMpExMap::GetString(index);
virtual const TCollection* GetCollection() const;
private:
-#if ROOT_SVN_REVISION >= 29598
- Bool_t Next(Long64_t& index, TObject*& object);
+#if (defined(ROOT_VERSION_CODE) && ROOT_VERSION_CODE >= 334082) || \
+ (defined(ROOT_SVN_REVISION) && ROOT_SVN_REVISION >= 29598)
+ // ROOT_VERSION_CODE = 334082 corresponds to Root version 5.25/02
+ // ROOT_SVN_REVISION is not defined in Root versions after moving in git
+ typedef Long64_t Index_t;
#else
- Bool_t Next(Long_t& index, TObject*& object);
+ typedef Long_t Index_t;
#endif
+ Bool_t Next(Index_t& index, TObject*& object);
- TExMapIter* fIterator; ///< iterator we are wrapping
+ TExMapIter* fIterator; ///< iterator we are wrapping
ClassDef(AliMpExMapIterator,0) // TIterator for AliMpExMap
};
// Loop over map
TExMapIter it(&fManuToSerialNbs);
-#if ROOT_SVN_REVISION >= 29598
+#if (defined(ROOT_VERSION_CODE) && ROOT_VERSION_CODE >= 334082) || \
+ (defined(ROOT_SVN_REVISION) && ROOT_SVN_REVISION >= 29598)
Long64_t key;
Long64_t value;
#else
// Loop over map
TExMapIter it2(&fManuToSerialNbs);
-#if ROOT_SVN_REVISION >= 29598
+#if (defined(ROOT_SVN_REVISION) && ROOT_SVN_REVISION >= 29598) || \
+ (defined(ROOT_VERSION_CODE) && ROOT_VERSION_CODE >= ROOT_VERSION(5,25,02))
Long64_t key;
Long64_t value;
#else