#ifndef STLVECTORTEST_C #define STLVECTORTEST_C 1 #ifndef __CINT__ # include # include # include # include # include using namespace std; #endif // __CINT__ TEventList* STLVectorTest(const char* listname) { vector v; TEventList* pList = new TEventList(listname, "Random list"); Long64_t entry = 0; Int_t n = gRandom->Integer(10); while (n-- > 0) v.push_back(gRandom->Integer(20)); for (vector::const_iterator il = v.begin(); il != v.end(); ++il) { entry += (*il); pList->Enter(entry); } // for(il) cout << endl; return pList; } // STLVectorTest() #endif // STLVECTORTEST_C