Public Member Functions | Public Attributes | Friends | List of all members
cmf::EventId Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/CovarianceMatrixFit/core/VarVals.h"

Public Member Functions

 EventId ()
 
 EventId (int r, int s, int e, int c, int slc)
 
bool operator< (EventId const &evid) const
 
bool operator== (EventId const &evid) const
 

Public Attributes

int run
 
int subrun
 
int event
 
int cycle
 
int slice
 

Friends

std::ostream & operator<< (std::ostream &o, cmf::EventId const &evid)
 

Detailed Description

Definition at line 60 of file VarVals.h.

Constructor & Destructor Documentation

cmf::EventId::EventId ( )
inline

Definition at line 63 of file VarVals.h.

64  : run (std::numeric_limits<int>::lowest())
65  , subrun(std::numeric_limits<int>::lowest())
66  , event (std::numeric_limits<int>::lowest())
67  , cycle (std::numeric_limits<int>::lowest())
68  , slice (std::numeric_limits<int>::lowest())
69  {}
int subrun
Definition: VarVals.h:84
int cycle
Definition: VarVals.h:86
int slice
Definition: VarVals.h:87
int event
Definition: VarVals.h:85
cmf::EventId::EventId ( int  r,
int  s,
int  e,
int  c,
int  slc 
)
inline

Definition at line 71 of file VarVals.h.

76  : run (r)
77  , subrun(s)
78  , event (e)
79  , cycle (c)
80  , slice (slc)
81  {}
const XML_Char * s
Definition: expat.h:262
int subrun
Definition: VarVals.h:84
int cycle
Definition: VarVals.h:86
int slice
Definition: VarVals.h:87
TRandom3 r(0)
Float_t e
Definition: plot.C:35
int event
Definition: VarVals.h:85

Member Function Documentation

bool EventId::operator< ( EventId const &  evid) const

Definition at line 134 of file VarVals.cxx.

References make_root_from_grid_output::cycle, cycle, event, run, slice, subrun, and getGoodRuns4SAM::subrun.

135  {
136  if(this->run < other.run) return true;
137  else if(this->run == other.run){
138  if(this->subrun < other.subrun) return true;
139  else if(this->subrun == other.subrun){
140  if(this->cycle < other.cycle) return true;
141  else if(this->cycle == other.cycle){
142  if(this->event < other.event) return true;
143  else if(this->event == other.event){
144  if(this->slice < other.slice) return true;
145  }
146  }
147  }
148  }
149 
150  return false;
151  }
int subrun
Definition: VarVals.h:84
int cycle
Definition: VarVals.h:86
int slice
Definition: VarVals.h:87
Definition: run.py:1
int event
Definition: VarVals.h:85
bool EventId::operator== ( EventId const &  evid) const

Definition at line 124 of file VarVals.cxx.

References cycle, event, run, slice, and subrun.

125  {
126  return (this->run == other.run &&
127  this->subrun == other.subrun &&
128  this->cycle == other.cycle &&
129  this->event == other.event &&
130  this->slice == other.slice);
131  }
Definition: run.py:1

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
cmf::EventId const &  evid 
)
friend

Definition at line 154 of file VarVals.cxx.

155  {
156  o << "run "
157  << evid.run
158  << "\tsubrun "
159  << evid.subrun
160  << "\tevent "
161  << evid.event
162  << "\tcycle "
163  << evid.cycle
164  << "\tslice "
165  << evid.slice;
166 
167  return o;
168  }

Member Data Documentation

int cmf::EventId::cycle
int cmf::EventId::event
int cmf::EventId::run
int cmf::EventId::slice
int cmf::EventId::subrun

The documentation for this class was generated from the following files: