StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MIntArray.h
1 // $Id: MIntArray.h,v 1.5 2003/09/16 15:27:01 jcs Exp $
2 // $Log: MIntArray.h,v $
3 // Revision 1.5 2003/09/16 15:27:01 jcs
4 // removed inline as it would leave a few undefined reference
5 //
6 // Revision 1.4 2001/07/12 08:24:12 oldi
7 // New function CountAppearance() introduced.
8 //
9 // Revision 1.3 2000/11/10 18:32:37 oldi
10 // Introduced new function ShiftByOneAndAddAtFirst(Int_t value).
11 // Cleanup.
12 //
13 // Revision 1.2 2000/07/18 21:22:15 oldi
14 // Changes due to be able to find laser tracks.
15 // Cleanup: - new functions in StFtpcConfMapper, StFtpcTrack, and StFtpcPoint
16 // to bundle often called functions
17 // - short functions inlined
18 // - formulas of StFormulary made static
19 // - avoid streaming of objects of unknown size
20 // (removes the bunch of CINT warnings during compile time)
21 // - two or three minor bugs cured
22 //
23 // Revision 1.1 2000/05/10 13:39:02 oldi
24 // Initial version of StFtpcTrackMaker
25 //
26 
28 // //
29 // MIntArray class - this class extends the possibilities of the usual TArrayI //
30 // //
32 
33 #ifndef ROOT_MIntArray
34 #define ROOT_MIntArray
35 
36 #include "TArrayI.h"
37 #include "TObject.h"
38 
39 
40 class MIntArray : public TArrayI, public TObject {
41 
42 public:
43 
44  MIntArray();
45  ~MIntArray();
46  void AddLast(Int_t value);
47  Int_t AtFirst();
48  Int_t AtLast();
49  void Fill(Int_t value);
50  void SetFill(Int_t size, Int_t value);
51  void ShiftByOneAndAddAtFirst(Int_t value);
52  Int_t CountAppearance(Int_t value);
53 
54  ClassDef(MIntArray, 1) // Class of an array of integers
55 };
56 
57 
58 
59 
60 #endif