HerdSoftware  0.1.1
Public Member Functions | List of all members
Herd::HerdRootDataProviderT< RootProvider > Class Template Reference

Data provider service adding HERD-specific behavior to RootDataProvider. More...

#include <persistence/HerdRootDataProviderT.h>

Inheritance diagram for Herd::HerdRootDataProviderT< RootProvider >:

Public Member Functions

bool Connect ()
 Connects the input and checks for the version header object. More...
 

Detailed Description

template<typename RootProvider>
class Herd::HerdRootDataProviderT< RootProvider >

Data provider service adding HERD-specific behavior to RootDataProvider.

This class adds some HERD-specific bits to the RootDataProvider classes provided by EventAnalysis. Currently it checks if there is a version header in the input files and if the data model version for the file objects is compatible with the current one.

Member Function Documentation

◆ Connect()

template<typename RootProvider >
bool Herd::HerdRootDataProviderT< RootProvider >::Connect ( )

Connects the input and checks for the version header object.

Checks if the version header exists and if the data model version for the data objects written in the file is compatible with the current data model version (i.e. if they have the same major version number). Returns false if one of these conditions does not hold.

Returns
True if the connection is successful and the version header is compatible with the current data model version.

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