PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podio::ObjectID Class Reference

#include <ObjectID.h>

Public Member Functions

bool operator== (const ObjectID &other) const
 

Public Attributes

int index
 index of object in collection
 
int collectionID
 ID of the collection.
 

Static Public Attributes

static const int untracked = -1
 not part of a collection
 
static const int invalid = -2
 invalid or non-available object
 

Detailed Description

Definition at line 6 of file ObjectID.h.

Member Function Documentation

◆ operator==()

bool podio::ObjectID::operator== ( const ObjectID other) const
inline

index and collectionID uniquely defines the object. this operator is necessary for meaningful comparisons in python

Definition at line 21 of file ObjectID.h.

21 {
22 return index == other.index && collectionID == other.collectionID;
23 }
int index
index of object in collection
Definition: ObjectID.h:10
int collectionID
ID of the collection.
Definition: ObjectID.h:12

Member Data Documentation

◆ collectionID

int podio::ObjectID::collectionID

ID of the collection.

Definition at line 12 of file ObjectID.h.

Referenced by operator==().

◆ index

int podio::ObjectID::index

index of object in collection

Definition at line 10 of file ObjectID.h.

Referenced by operator==().

◆ invalid

const int podio::ObjectID::invalid = -2
static

invalid or non-available object

Definition at line 17 of file ObjectID.h.

◆ untracked

const int podio::ObjectID::untracked = -1
static

not part of a collection

Definition at line 15 of file ObjectID.h.

Referenced by podio::ObjBase::acquire(), and podio::ObjBase::release().


The documentation for this class was generated from the following file: