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 84 of file V0Validator.h.

Constructor & Destructor Documentation

◆ V0Couple()

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

Definition at line 87 of file V0Validator.h.

87  {
88  one = first_daughter.key() < second_daughter.key() ? first_daughter : second_daughter;
89  two = first_daughter.key() > second_daughter.key() ? first_daughter : second_daughter;
90  assert(one != two);
91  }

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

Member Function Documentation

◆ operator<()

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

Definition at line 92 of file V0Validator.h.

92 { return one.key() < rh.one.key(); }

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

◆ operator==()

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

Definition at line 93 of file V0Validator.h.

93 { return ((one.key() == rh.one.key()) && (two.key() == rh.two.key())); }

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

Member Data Documentation

◆ one

reco::TrackRef V0Validator::V0Couple::one

◆ two

reco::TrackRef V0Validator::V0Couple::two

Definition at line 86 of file V0Validator.h.

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

V0Validator::V0Couple::two
reco::TrackRef two
Definition: V0Validator.h:86
cms::cuda::assert
assert(be >=bs)
V0Validator::V0Couple::one
reco::TrackRef one
Definition: V0Validator.h:85
edm::Ref::key
key_type key() const
Accessor for product key.
Definition: Ref.h:250