CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
V0Validator::V0Couple Struct Reference

#include <V0Validator.h>

Public Member Functions

bool operator< (const V0Couple &rh) const
 
bool operator== (const V0Couple &rh) const
 
 V0Couple (reco::TrackRef first_daughter, reco::TrackRef second_daughter)
 

Public Attributes

reco::TrackRef one
 
reco::TrackRef two
 

Detailed Description

Definition at line 85 of file V0Validator.h.

Constructor & Destructor Documentation

V0Validator::V0Couple::V0Couple ( reco::TrackRef  first_daughter,
reco::TrackRef  second_daughter 
)
inlineexplicit

Definition at line 88 of file V0Validator.h.

References edm::Ref< C, T, F >::key().

89  {
90  one = first_daughter.key() < second_daughter.key() ? first_daughter
91  : second_daughter;
92  two = first_daughter.key() > second_daughter.key() ? first_daughter
93  : second_daughter;
94  assert(one != two);
95  }
key_type key() const
Accessor for product key.
Definition: Ref.h:263
reco::TrackRef two
Definition: V0Validator.h:87

Member Function Documentation

bool V0Validator::V0Couple::operator< ( const V0Couple rh) const
inline

Definition at line 96 of file V0Validator.h.

References edm::Ref< C, T, F >::key(), and one.

96  {
97  return one.key() < rh.one.key();
98  }
bool V0Validator::V0Couple::operator== ( const V0Couple rh) const
inline

Definition at line 99 of file V0Validator.h.

References V0Validator::analyze(), V0Validator::bookHistograms(), universalConfigTemplate::collection, V0Validator::doEfficiencies(), V0Validator::doFakeRates(), edm::Ref< C, T, F >::key(), one, protons_cff::t, and two.

99  {
100  return ((one.key() == rh.one.key()) && (two.key() == rh.two.key()));
101  }
key_type key() const
Accessor for product key.
Definition: Ref.h:263
reco::TrackRef two
Definition: V0Validator.h:87

Member Data Documentation

reco::TrackRef V0Validator::V0Couple::one

Definition at line 86 of file V0Validator.h.

Referenced by runEdmFileComparison.EdmObject::label(), operator<(), and operator==().

reco::TrackRef V0Validator::V0Couple::two

Definition at line 87 of file V0Validator.h.

Referenced by runEdmFileComparison.EdmObject::label(), and operator==().