CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

EncodedTruthId Class Reference

#include <EncodedTruthId.h>

Inheritance diagram for EncodedTruthId:
EncodedEventId

List of all members.

Public Member Functions

 EncodedTruthId ()
 EncodedTruthId (EncodedEventId eid, int index)
int index () const
int operator!= (const EncodedTruthId &id) const
int operator< (const EncodedTruthId &id) const
int operator== (const EncodedTruthId &id) const

Private Attributes

int index_

Friends

std::ostream & operator<< (std::ostream &os, const EncodedTruthId &id)

Detailed Description

Definition at line 7 of file EncodedTruthId.h.


Constructor & Destructor Documentation

EncodedTruthId::EncodedTruthId ( )

Definition at line 3 of file EncodedTruthId.cc.

{}
EncodedTruthId::EncodedTruthId ( EncodedEventId  eid,
int  index 
)

Definition at line 5 of file EncodedTruthId.cc.


Member Function Documentation

int EncodedTruthId::index ( ) const [inline]

Definition at line 19 of file EncodedTruthId.h.

References index_.

    {
        return index_;
    }
int EncodedTruthId::operator!= ( const EncodedTruthId id) const [inline]

Definition at line 37 of file EncodedTruthId.h.

References operator==().

    {
        return !(operator==(id));
    }
int EncodedTruthId::operator< ( const EncodedTruthId id) const [inline]

Definition at line 42 of file EncodedTruthId.h.

References index_, and cppFunctionSkipper::operator.

    {
        if (EncodedEventId::operator==(id))
        {
            return index_ < id.index_;
        }
        else
        {
            return (EncodedEventId::operator<(id));
        }
    }
int EncodedTruthId::operator== ( const EncodedTruthId id) const [inline]

Definition at line 25 of file EncodedTruthId.h.

References index_, and cppFunctionSkipper::operator.

Referenced by operator!=().

    {
        if (EncodedEventId::operator==(id))
        {
            return index_ == id.index_;
        }
        else
        {
            return EncodedEventId::operator==(id);
        }
    }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const EncodedTruthId id 
) [friend]

Member Data Documentation

int EncodedTruthId::index_ [private]

Definition at line 55 of file EncodedTruthId.h.

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