Jpp master_rocky-44-g75b7c4f75
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 153 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 159 of file JHistory.hh.

160 {
161 this->type = type;
162 }

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

172 {
173 using namespace std;
174 using namespace JPP;
175
176 return count_if(history.begin(), history.end(), make_predicate(&JEvent::type, this->type)) == 0;
177 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int type
application type
Definition JHistory.hh:89

Member Data Documentation

◆ type

int JFIT::JHistory::is_not_event::type

Definition at line 179 of file JHistory.hh.


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