Public Member Functions | Public Attributes | List of all members
cmf::MetaDataLite Struct Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CovarianceMatrixFit/dataProducts/Structs.h"

Public Member Functions

 MetaDataLite ()
 
 MetaDataLite (cmf::DetType_t const &det, cmf::SelectionType_t const &st, std::string const &ep)
 
 MetaDataLite (cmf::DetType_t const &det, cmf::SelectionType_t const &st, long const &ep)
 
long Period () const
 
std::string PeriodString () const
 
std::string ToString () const
 
bool operator== (const MetaDataLite &other) const
 
bool operator< (const MetaDataLite &other) const
 

Public Attributes

cmf::DetType_t detector
 
cmf::SelectionType_t selectionType
 
long period
 

Detailed Description

Definition at line 67 of file Structs.h.

Constructor & Destructor Documentation

cmf::MetaDataLite::MetaDataLite ( )

Definition at line 254 of file Structs.cxx.

257  , period(0)
258  {}
cmf::SelectionType_t selectionType
Definition: Structs.h:84
cmf::DetType_t detector
Definition: Structs.h:83
cmf::MetaDataLite::MetaDataLite ( cmf::DetType_t const &  det,
cmf::SelectionType_t const &  st,
std::string const &  ep 
)

Definition at line 261 of file Structs.cxx.

References period, and cmf::PeriodStringToInt().

264  : detector (det)
265  , selectionType (st)
266  {
268  }
cmf::SelectionType_t selectionType
Definition: Structs.h:84
long PeriodStringToInt(std::string const &epochStr)
Definition: Structs.cxx:67
cmf::DetType_t detector
Definition: Structs.h:83
cmf::MetaDataLite::MetaDataLite ( cmf::DetType_t const &  det,
cmf::SelectionType_t const &  st,
long const &  ep 
)
inline

Definition at line 75 of file Structs.h.

78  : detector(det)
79  , selectionType(st)
80  , period(ep)
81  {}
cmf::SelectionType_t selectionType
Definition: Structs.h:84
cmf::DetType_t detector
Definition: Structs.h:83

Member Function Documentation

bool cmf::MetaDataLite::operator< ( const MetaDataLite other) const

Definition at line 300 of file Structs.cxx.

References detector, period, and selectionType.

301  {
302  long thisNum = (this->detector * 10000000 +
303  this->selectionType * 100000 +
304  this->period);
305  long otherNum = (other.detector * 10000000 +
306  other.selectionType * 100000 +
307  other.period);
308 
309  return thisNum < otherNum;
310  }
cmf::SelectionType_t selectionType
Definition: Structs.h:84
cmf::DetType_t detector
Definition: Structs.h:83
bool cmf::MetaDataLite::operator== ( const MetaDataLite other) const

Definition at line 292 of file Structs.cxx.

References detector, period, and selectionType.

293  {
294  return (other.detector == this->detector &&
295  other.selectionType == this->selectionType &&
296  other.period == this->period);
297  }
long cmf::MetaDataLite::Period ( ) const
inline

Definition at line 87 of file Structs.h.

References ana::operator<(), operator==(), fhicl::other, DCS_db_parser::period, string, and ToString().

87 { return period; }
std::string cmf::MetaDataLite::PeriodString ( ) const

Definition at line 271 of file Structs.cxx.

References period, and art::to_string().

Referenced by ToString().

272  {
273  return ("Period" + std::to_string(period));
274  }
std::string to_string(ModuleType mt)
Definition: ModuleType.h:32
std::string cmf::MetaDataLite::ToString ( ) const

Definition at line 277 of file Structs.cxx.

References cmf::cSelectionType_Strings, detector, cmf::kFARDET, cmf::kNEARDET, PeriodString(), selectionType, and string.

278  {
279  std::string outType;
280 
281  if (detector == cmf::kFARDET) outType += "Far";
282  else if(detector == cmf::kNEARDET) outType += "Near";
283  else outType += "UknownDet";
284 
286  outType += this->PeriodString();
287 
288  return outType;
289  }
const std::string cSelectionType_Strings[12]
Definition: Constants.h:79
cmf::SelectionType_t selectionType
Definition: Structs.h:84
std::string PeriodString() const
Definition: Structs.cxx:271
cmf::DetType_t detector
Definition: Structs.h:83
enum BeamMode string

Member Data Documentation

cmf::DetType_t cmf::MetaDataLite::detector
long cmf::MetaDataLite::period

Definition at line 85 of file Structs.h.

Referenced by MetaDataLite(), operator<(), operator==(), and PeriodString().

cmf::SelectionType_t cmf::MetaDataLite::selectionType

Definition at line 84 of file Structs.h.

Referenced by operator<(), operator==(), and ToString().


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