CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Friends
reco::helpers::FlavorHistoryEventHelper Struct Reference

#include <FlavorHistoryEvent.h>

Public Member Functions

 FlavorHistoryEventHelper (int iflavor, FlavorHistory::FLAVOR_T iflavorSource, double idR)
 
bool operator< (FlavorHistoryEventHelper const &right) const
 
bool operator== (FlavorHistoryEventHelper const &right) const
 
 ~FlavorHistoryEventHelper ()
 

Public Attributes

double dR
 
int flavor
 
FlavorHistory::FLAVOR_T flavorSource
 

Friends

std::ostream & operator<< (std::ostream &out, FlavorHistoryEventHelper helper)
 

Detailed Description

Definition at line 52 of file FlavorHistoryEvent.h.

Constructor & Destructor Documentation

reco::helpers::FlavorHistoryEventHelper::FlavorHistoryEventHelper ( int  iflavor,
FlavorHistory::FLAVOR_T  iflavorSource,
double  idR 
)
inline

Definition at line 54 of file FlavorHistoryEvent.h.

reco::helpers::FlavorHistoryEventHelper::~FlavorHistoryEventHelper ( )
inline

Definition at line 59 of file FlavorHistoryEvent.h.

59 {}

Member Function Documentation

bool reco::helpers::FlavorHistoryEventHelper::operator< ( FlavorHistoryEventHelper const &  right) const
inline

Definition at line 68 of file FlavorHistoryEvent.h.

References dR, flavor, and flavorSource.

68  {
69  if ( flavor > right.flavor ) return false;
70  if ( flavorSource > right.flavorSource ) return false;
71  if ( dR > right.dR ) return false;
72  return true;
73  }
bool reco::helpers::FlavorHistoryEventHelper::operator== ( FlavorHistoryEventHelper const &  right) const
inline

Definition at line 75 of file FlavorHistoryEvent.h.

References dR, flavor, and flavorSource.

75  {
76  return flavor == right.flavor &&
77  flavorSource == right.flavorSource &&
78  dR == right.dR;
79  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
FlavorHistoryEventHelper  helper 
)
friend

Definition at line 81 of file FlavorHistoryEvent.h.

82  {
83  char buff[1000];
84  sprintf(buff, "Flavor = %2d, type = %2d, dR = %6f",
85  helper.flavor, helper.flavorSource, helper.dR );
86  out << buff << std::endl;
87  return out;
88  }
tuple out
Definition: dbtoconf.py:99

Member Data Documentation

double reco::helpers::FlavorHistoryEventHelper::dR

Definition at line 65 of file FlavorHistoryEvent.h.

Referenced by reco::FlavorHistoryEvent::cache(), operator<(), and operator==().

int reco::helpers::FlavorHistoryEventHelper::flavor

Definition at line 63 of file FlavorHistoryEvent.h.

Referenced by reco::FlavorHistoryEvent::cache(), operator<(), and operator==().

FlavorHistory::FLAVOR_T reco::helpers::FlavorHistoryEventHelper::flavorSource

Definition at line 64 of file FlavorHistoryEvent.h.

Referenced by reco::FlavorHistoryEvent::cache(), operator<(), and operator==().