Jpp 20.0.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 217 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 223 of file JHistory.hh.

224 {
225 this->type = type;
226 }

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 235 of file JHistory.hh.

236 {
237 using namespace std;
238 using namespace JPP;
239
240 return count_if(history.begin(), history.end(), make_predicate(&JEvent::type, this->type)) == 0;
241 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int type
application type
Definition JHistory.hh:136

Member Data Documentation

◆ type

int JFIT::JHistory::is_not_event::type

Definition at line 243 of file JHistory.hh.


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