Public Member Functions | Public Attributes | List of all members
fnex::potTracker Struct Reference

Public Member Functions

 potTracker ()
 
 potTracker (fnex::MetaData const &md)
 
bool operator== (const potTracker &other) const
 
bool operator< (const potTracker &other) const
 

Public Attributes

bool isMC
 
int epoch
 
novadaq::cnv::DetId detector
 
fnex::FileType_t fileType
 
double pot
 

Detailed Description

Definition at line 73 of file SortEventLists_module.cc.

Constructor & Destructor Documentation

fnex::potTracker::potTracker ( )
inline

Definition at line 75 of file SortEventLists_module.cc.

76  : isMC(false)
77  , epoch(0)
80  , pot(0.)
81  {}
fnex::FileType_t fileType
novadaq::cnv::DetId detector
Near Detector in the NuMI cavern.
fnex::potTracker::potTracker ( fnex::MetaData const &  md)
inline

Definition at line 83 of file SortEventLists_module.cc.

84  : isMC(md.isMC)
85  , epoch(md.epoch)
86  , detector(md.detector)
87  , fileType(md.fileType)
88  , pot(0.)
89  {}
fnex::FileType_t fileType
novadaq::cnv::DetId detector

Member Function Documentation

bool fnex::potTracker::operator< ( const potTracker other) const
inline

Definition at line 105 of file SortEventLists_module.cc.

References detector, epoch, fileType, and isMC.

106  {
107  int thisNum = (this->isMC * 1e8 +
108  this->detector * 1e7 +
109  this->fileType * 1e6 +
110  this->epoch);
111 
112  int otherNum = (other.isMC * 1e8 +
113  other.detector * 1e7 +
114  other.fileType * 1e6 +
115  other.epoch);
116 
117  return thisNum < otherNum;
118  }
fnex::FileType_t fileType
novadaq::cnv::DetId detector
bool fnex::potTracker::operator== ( const potTracker other) const
inline

Definition at line 97 of file SortEventLists_module.cc.

References detector, epoch, fileType, and isMC.

98  {
99  return (this->isMC == other.isMC &&
100  this->epoch == other.epoch &&
101  this->detector == other.detector &&
102  this->fileType == other.fileType);
103  }

Member Data Documentation

novadaq::cnv::DetId fnex::potTracker::detector
int fnex::potTracker::epoch

Definition at line 92 of file SortEventLists_module.cc.

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

fnex::FileType_t fnex::potTracker::fileType

Definition at line 94 of file SortEventLists_module.cc.

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

bool fnex::potTracker::isMC

Definition at line 91 of file SortEventLists_module.cc.

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

double fnex::potTracker::pot

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