The Gaudi Framework
master (37c0b60a)
|
#include <GaudiKernel/SmartDataObjectPtr.h>
Go to the source code of this file.
Classes | |
class | SmartDataStorePtr< TYPE, LOADER > |
A small class used to access easily (and efficiently) data items residing in data stores. More... | |
Functions | |
template<class A , class LDA , class B , class LDB > | |
bool | operator&& (SmartDataStorePtr< A, LDA > &object_1, SmartDataStorePtr< B, LDB > &object_2) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); SmartDataPtr<MCParticleVector> mctracks (evt,"/MC/MCParticles"); if ( mctracks && mcvertices ) { ... More... | |
template<class B , class LDB > | |
bool | operator&& (bool test, SmartDataStorePtr< B, LDB > &object) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ... More... | |
template<class B , class LDB > | |
bool | operator&& (SmartDataStorePtr< B, LDB > &object, bool test) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ... More... | |
template<class A , class LDA , class B , class LDB > | |
bool | operator|| (SmartDataStorePtr< A, LDA > &object_1, SmartDataStorePtr< B, LDB > &object_2) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); SmartDataPtr<MCParticleVector> mctracks (evt,"/MC/MCParticles"); if ( mctracks || mcvertices ) { ... More... | |
template<class B , class LDB > | |
bool | operator|| (bool test, SmartDataStorePtr< B, LDB > &object) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ... More... | |
template<class B , class LDB > | |
bool | operator|| (SmartDataStorePtr< B, LDB > &object, bool test) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ... More... | |
bool operator&& | ( | bool | test, |
SmartDataStorePtr< B, LDB > & | object | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ...
if ( test && mcvertices ) { ... } and tests the existence of BOTH objects in the data store.
test | First boolean to test |
object | Smart pointer to second object |
Definition at line 162 of file SmartDataStorePtr.h.
bool operator&& | ( | SmartDataStorePtr< A, LDA > & | object_1, |
SmartDataStorePtr< B, LDB > & | object_2 | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); SmartDataPtr<MCParticleVector> mctracks (evt,"/MC/MCParticles"); if ( mctracks && mcvertices ) { ...
} and tests the existence of BOTH objects in the data store.
object_1 | Smart pointer to object 1 |
object_2 | Smart pointer to second object |
Definition at line 142 of file SmartDataStorePtr.h.
bool operator&& | ( | SmartDataStorePtr< B, LDB > & | object, |
bool | test | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ...
if ( test && mcvertices ) { ... } and tests the existence of BOTH objects in the data store.
object | Smart pointer to second object |
test | Second boolean to test |
Definition at line 182 of file SmartDataStorePtr.h.
bool operator|| | ( | bool | test, |
SmartDataStorePtr< B, LDB > & | object | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ...
if ( test || mcvertices ) { ... } and tests the existence of BOTH objects in the data store.
test | First boolean to test |
object | Smart pointer to second object |
Definition at line 227 of file SmartDataStorePtr.h.
bool operator|| | ( | SmartDataStorePtr< A, LDA > & | object_1, |
SmartDataStorePtr< B, LDB > & | object_2 | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); SmartDataPtr<MCParticleVector> mctracks (evt,"/MC/MCParticles"); if ( mctracks || mcvertices ) { ...
} and tests the existence of at least one objects in the data store. The second object will then NOT be loaded. It is assumed that the second choice is only an alternative usable in case the first object cannot be retrieved.
object_1 | Smart pointer to object 1 |
object_2 | Smart pointer to second object |
Definition at line 206 of file SmartDataStorePtr.h.
bool operator|| | ( | SmartDataStorePtr< B, LDB > & | object, |
bool | test | ||
) |
Helper to test Smart data objects efficiently This construct allows statements like: SmartDataPtr<MCVertexVector> mcvertices (evt,"/MC/MCVertices"); bool test = ...
if ( test && mcvertices ) { ... } and tests the existence of BOTH objects in the data store.
object | Smart pointer to second object |
test | Second boolean to test |
Definition at line 248 of file SmartDataStorePtr.h.