Count Class Reference

#include <Count.hh>

Inheritance diagram for Count:

Inheritance graph
[legend]
Collaboration diagram for Count:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Count (const std::string _fileName)
 ~Count ()
unsigned int getNumberOfEvent ()
void processEvent (LCEvent *evt)
void modifyEvent (LCEvent *evt)

Private Attributes

unsigned int counter
bool compute

Detailed Description

Definition at line 20 of file Count.hh.


Constructor & Destructor Documentation

Count::Count ( const std::string  _fileName  ) 

Count::~Count (  ) 

Definition at line 34 of file Count.cpp.

00034                {
00035   }


Member Function Documentation

unsigned int Count::getNumberOfEvent (  ) 

Definition at line 43 of file Count.cpp.

00044   {
00045         if ( !compute )
00046         {
00047                  throw MicroException("Number of event not compute yet");
00048         }
00049 
00050         return counter;
00051   }

void Count::processEvent ( LCEvent *  evt  ) 

Definition at line 37 of file Count.cpp.

00037                                           { /* used for 'read only' access*/ 
00038 
00039     counter++ ;
00040         compute = true;
00041   }

void Count::modifyEvent ( LCEvent *  evt  )  [inline]

Definition at line 33 of file Count.hh.

00033 {;} ;


Member Data Documentation

unsigned int Count::counter [private]

Definition at line 24 of file Count.hh.

Referenced by getNumberOfEvent(), and processEvent().

bool Count::compute [private]

Definition at line 25 of file Count.hh.

Referenced by getNumberOfEvent(), and processEvent().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:18:08 2013 for MicromegasFramework by  doxygen 1.4.7