ATLAS Offline Software
Loading...
Searching...
No Matches
event_list Struct Reference
Collaboration diagram for event_list:

Public Member Functions

 event_list (const std::string &filename)
bool find (int i)

Public Attributes

std::set< int > mevents

Detailed Description

Definition at line 299 of file rmain.cxx.

Constructor & Destructor Documentation

◆ event_list()

event_list::event_list ( const std::string & filename)
inline

Definition at line 301 of file rmain.cxx.

301 {
302
303 std::cout << "event_list::event_list() ";
304 std::cout << filename << std::endl;
305
306 std::ifstream file(filename.c_str());
307
308 int evnt;
309
310 while ( file>>evnt ) {
311 mevents.insert(evnt);
312 }
313
314 std::cout << "event_list::event_list() ";
315 std::cout << mevents.size() << std::endl;
316
317 }
std::set< int > mevents
Definition rmain.cxx:325
TFile * file

Member Function Documentation

◆ find()

bool event_list::find ( int i)
inline

Definition at line 319 of file rmain.cxx.

319 {
320 std::set<int>::iterator it = mevents.find(i);
321 if ( it!=mevents.end() ) return true;
322 return false;
323 }

Member Data Documentation

◆ mevents

std::set<int> event_list::mevents

Definition at line 325 of file rmain.cxx.


The documentation for this struct was generated from the following file: