Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JHistory::is_not_event Struct Reference

Auxiliary class to test history. More...

#include <JHistory.hh>

Public Member Functions

 is_not_event (int type)
 Constructor.
 
bool operator() (const JHistory &history) const
 Test history.
 

Public Attributes

int type
 

Detailed Description

Auxiliary class to test history.

Definition at line 196 of file JHistory.hh.

Constructor & Destructor Documentation

◆ is_not_event()

JFIT::JHistory::is_not_event::is_not_event ( int type)
inline

Constructor.

Parameters
typeapplication type

Definition at line 202 of file JHistory.hh.

203 {
204 this->type = type;
205 }

Member Function Documentation

◆ operator()()

bool JFIT::JHistory::is_not_event::operator() ( const JHistory & history) const
inline

Test history.

Parameters
historyhistory
Returns
true if given history does not contain specified event type; else false

Definition at line 214 of file JHistory.hh.

215 {
216 using namespace std;
217 using namespace JPP;
218
219 return count_if(history.begin(), history.end(), make_predicate(&JEvent::type, this->type)) == 0;
220 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int type
application type
Definition JHistory.hh:117

Member Data Documentation

◆ type

int JFIT::JHistory::is_not_event::type

Definition at line 222 of file JHistory.hh.


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