00001 // $Id: MIntArray.h,v 1.5 2003/09/16 15:27:01 jcs Exp $ 00002 // $Log: MIntArray.h,v $ 00003 // Revision 1.5 2003/09/16 15:27:01 jcs 00004 // removed inline as it would leave a few undefined reference 00005 // 00006 // Revision 1.4 2001/07/12 08:24:12 oldi 00007 // New function CountAppearance() introduced. 00008 // 00009 // Revision 1.3 2000/11/10 18:32:37 oldi 00010 // Introduced new function ShiftByOneAndAddAtFirst(Int_t value). 00011 // Cleanup. 00012 // 00013 // Revision 1.2 2000/07/18 21:22:15 oldi 00014 // Changes due to be able to find laser tracks. 00015 // Cleanup: - new functions in StFtpcConfMapper, StFtpcTrack, and StFtpcPoint 00016 // to bundle often called functions 00017 // - short functions inlined 00018 // - formulas of StFormulary made static 00019 // - avoid streaming of objects of unknown size 00020 // (removes the bunch of CINT warnings during compile time) 00021 // - two or three minor bugs cured 00022 // 00023 // Revision 1.1 2000/05/10 13:39:02 oldi 00024 // Initial version of StFtpcTrackMaker 00025 // 00026 00028 // // 00029 // MIntArray class - this class extends the possibilities of the usual TArrayI // 00030 // // 00032 00033 #ifndef ROOT_MIntArray 00034 #define ROOT_MIntArray 00035 00036 #include "TArrayI.h" 00037 #include "TObject.h" 00038 00039 00040 class MIntArray : public TArrayI, public TObject { 00041 00042 public: 00043 00044 MIntArray(); 00045 ~MIntArray(); 00046 void AddLast(Int_t value); 00047 Int_t AtFirst(); 00048 Int_t AtLast(); 00049 void Fill(Int_t value); 00050 void SetFill(Int_t size, Int_t value); 00051 void ShiftByOneAndAddAtFirst(Int_t value); 00052 Int_t CountAppearance(Int_t value); 00053 00054 ClassDef(MIntArray, 1) // Class of an array of integers 00055 }; 00056 00057 00058 00059 00060 #endif
1.5.9