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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-16/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 56 of file VarVals.h.

Constructor & Destructor Documentation

cmf::EventId::EventId ( )
inline

Definition at line 59 of file VarVals.h.

60  : run (std::numeric_limits<int>::lowest())
61  , subrun(std::numeric_limits<int>::lowest())
62  , event (std::numeric_limits<int>::lowest())
63  , cycle (std::numeric_limits<int>::lowest())
64  , slice (std::numeric_limits<int>::lowest())
65  {}
int subrun
Definition: VarVals.h:80
int cycle
Definition: VarVals.h:82
int slice
Definition: VarVals.h:83
int event
Definition: VarVals.h:81
cmf::EventId::EventId ( int  r,
int  s,
int  e,
int  c,
int  slc 
)
inline

Definition at line 67 of file VarVals.h.

72  : run (r)
73  , subrun(s)
74  , event (e)
75  , cycle (c)
76  , slice (slc)
77  {}
const XML_Char * s
Definition: expat.h:262
int subrun
Definition: VarVals.h:80
int cycle
Definition: VarVals.h:82
int slice
Definition: VarVals.h:83
TRandom3 r(0)
Float_t e
Definition: plot.C:35
int event
Definition: VarVals.h:81

Member Function Documentation

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

Definition at line 122 of file VarVals.cxx.

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

123  {
124  if(this->run < other.run) return true;
125  else if(this->run == other.run){
126  if(this->subrun < other.subrun) return true;
127  else if(this->subrun == other.subrun){
128  if(this->cycle < other.cycle) return true;
129  else if(this->cycle == other.cycle){
130  if(this->event < other.event) return true;
131  else if(this->event == other.event){
132  if(this->slice < other.slice) return true;
133  }
134  }
135  }
136  }
137 
138  return false;
139  }
int subrun
Definition: VarVals.h:80
int cycle
Definition: VarVals.h:82
int slice
Definition: VarVals.h:83
Definition: run.py:1
int event
Definition: VarVals.h:81
bool EventId::operator== ( EventId const &  evid) const

Definition at line 112 of file VarVals.cxx.

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

113  {
114  return (this->run == other.run &&
115  this->subrun == other.subrun &&
116  this->cycle == other.cycle &&
117  this->event == other.event &&
118  this->slice == other.slice);
119  }
Definition: run.py:1

Friends And Related Function Documentation

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

Definition at line 142 of file VarVals.cxx.

143  {
144  o << "run "
145  << evid.run
146  << "\tsubrun "
147  << evid.subrun
148  << "\tevent "
149  << evid.event
150  << "\tcycle "
151  << evid.cycle
152  << "\tslice "
153  << evid.slice;
154 
155  return o;
156  }

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: