1 #ifndef __JFIT__JHISTORY__
2 #define __JFIT__JHISTORY__
25 namespace JPP {
using namespace JFIT; }
75 out << setw(3) << right <<
event.id <<
' '
76 << setw(2) << right <<
event.type <<
' '
77 << setw(20) << left <<
event.svn <<
' '
78 << setw(20) << left <<
event.date;
120 if (!history.empty())
121 this->
type = history.rbegin()->type;
135 if (!history.empty()) {
136 return history.rbegin()->type == this->
type;
170 using namespace JLANG;
227 return static_cast<const JHistory&
>(*this);
238 return static_cast<JHistory&
>(*this);
250 push_back(
JEvent(type, this->size() + 1));
267 for (const_iterator i = history.begin(); i != history.end(); ++i) {
JEvent(const JFitApplication_t &type, const int id)
Constructor.
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
Auxiliary class to test history.
friend std::ostream & operator<<(std::ostream &out, const JHistory &history)
Write history to output stream.
Container for historical events.
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
static const JDateAndTime getDateAndTime
Function object to get ASCII formatted date and time.
JHistory(const JHistory &history, const JFitApplication_t &type)
Constructor.
bool operator()(const JHistory &history) const
Test history.
friend std::ostream & operator<<(std::ostream &out, const JEvent &event)
Write event to output stream.
is_event(int type)
Constructor.
virtual ~JEvent()
Virtual destructor.
JHistory()
Default constructor.
std::string svn
SVN revision.
Auxiliary class to test history.
bool operator()(const JHistory &history) const
Test history.
const char * getGITVersion()
Get GIT version.
JHistory(const JFitApplication_t &type)
Constructor.
Auxiliary class for historical event.
JEvent()
Default constructor.
is_event(const JHistory &history)
Constructor.
const JHistory & getHistory() const
Get history.
virtual ~JHistory()
Virtual destructor.
JHistory & getHistory()
Get history.
Definition of fit applications.
int id
application identifier
is_not_event(int type)
Constructor.
JHistory & add(const JFitApplication_t &type)
Add event to history.