CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
EncodedTruthId Class Reference

#include <EncodedTruthId.h>

Inheritance diagram for EncodedTruthId:
EncodedEventId

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
 
- Public Member Functions inherited from EncodedEventId
int bunchCrossing () const
 get the detector field from this detid More...
 
 EncodedEventId ()
 Create an empty or null id (also for persistence) More...
 
 EncodedEventId (int bunchX, int event)
 Create an id, filling the bunch crossing and event infomrations. More...
 
 EncodedEventId (uint32_t id)
 Create an id from a raw number. More...
 
int event () const
 get the contents of the subdetector field (should be protected?) More...
 
int operator!= (const EncodedEventId &id) const
 inequality More...
 
uint32_t operator() ()
 
int operator< (const EncodedEventId &id) const
 comparison More...
 
int operator== (const EncodedEventId &id) const
 equality More...
 
uint32_t rawId () const
 get the raw id More...
 

Private Attributes

int index_
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from EncodedEventId
uint32_t id_
 

Detailed Description

Definition at line 7 of file EncodedTruthId.h.

Constructor & Destructor Documentation

◆ EncodedTruthId() [1/2]

EncodedTruthId::EncodedTruthId ( )

Definition at line 3 of file EncodedTruthId.cc.

3 {}

◆ EncodedTruthId() [2/2]

EncodedTruthId::EncodedTruthId ( EncodedEventId  eid,
int  index 
)

Definition at line 5 of file EncodedTruthId.cc.

Member Function Documentation

◆ index()

int EncodedTruthId::index ( ) const
inline

Definition at line 16 of file EncodedTruthId.h.

16 { return index_; }

References index_.

Referenced by BeautifulSoup.PageElement::insert().

◆ operator!=()

int EncodedTruthId::operator!= ( const EncodedTruthId id) const
inline

Definition at line 27 of file EncodedTruthId.h.

27 { return !(operator==(id)); }

References operator==().

◆ operator<()

int EncodedTruthId::operator< ( const EncodedTruthId id) const
inline

Definition at line 29 of file EncodedTruthId.h.

29  {
30  if (EncodedEventId::operator==(id)) {
31  return index_ < id.index_;
32  } else {
33  return (EncodedEventId::operator<(id));
34  }
35  }

References index_, and Utilities::operator.

◆ operator==()

int EncodedTruthId::operator== ( const EncodedTruthId id) const
inline

Definition at line 19 of file EncodedTruthId.h.

19  {
20  if (EncodedEventId::operator==(id)) {
21  return index_ == id.index_;
22  } else {
23  return EncodedEventId::operator==(id);
24  }
25  }

References index_, Utilities::operator, and EncodedEventId::operator==().

Referenced by operator!=().

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ index_

int EncodedTruthId::index_
private

Definition at line 38 of file EncodedTruthId.h.

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

EncodedTruthId::index_
int index_
Definition: EncodedTruthId.h:38
EncodedTruthId::index
int index() const
Definition: EncodedTruthId.h:16
EncodedEventId::operator==
int operator==(const EncodedEventId &id) const
equality
Definition: EncodedEventId.h:35
Utilities.operator
operator
Definition: Utilities.py:24
EncodedTruthId::operator==
int operator==(const EncodedTruthId &id) const
Definition: EncodedTruthId.h:19
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
EncodedEventId::EncodedEventId
EncodedEventId()
Create an empty or null id (also for persistence)
Definition: EncodedEventId.cc:3