ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BranchComparisonHarness Struct Reference

#include <acts/blob/master/Examples/Scripts/compareRootFiles.hpp>

+ Collaboration diagram for BranchComparisonHarness:

Classes

class  EventLoaderT
 
class  IEventLoader
 
struct  TreeMetadata
 
class  UnsupportedBranchType
 

Public Types

using TreeComparator = std::function< bool()>
 

Public Member Functions

void loadCurrentEvent ()
 

Static Public Member Functions

static BranchComparisonHarness create (TreeMetadata &treeMetadata, const std::string &branchName, const EDataType dataType, const std::string &className)
 

Public Attributes

std::string branchName
 
HomogeneousPair< AnyVectoreventData
 
HomogeneousPair< std::pair
< IndexComparator,
IndexSwapper > > 
sortHarness
 
TreeComparator eventDataEqual
 
std::function< void()> dumpEventData
 

Static Private Member Functions

template<typename T >
static BranchComparisonHarness create (TreeMetadata &treeMetadata, const std::string &branchName)
 
static BranchComparisonHarness createVector (TreeMetadata &treeMetadata, const std::string &branchName, const std::string elemType)
 
template<typename T >
static std::string toString (const T &data)
 
template<typename U >
static std::string toString (const std::vector< U > &vector)
 

Private Attributes

std::unique_ptr< IEventLoaderm_eventLoaderPtr
 

Detailed Description

Definition at line 246 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 246 of file compareRootFiles.hpp

Member Typedef Documentation

Definition at line 267 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 267 of file compareRootFiles.hpp

Member Function Documentation

static BranchComparisonHarness BranchComparisonHarness::create ( TreeMetadata treeMetadata,
const std::string &  branchName,
const EDataType  dataType,
const std::string &  className 
)
inlinestatic

Definition at line 286 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 286 of file compareRootFiles.hpp

References branchName, and createVector().

Referenced by compareRootFiles().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
static BranchComparisonHarness BranchComparisonHarness::create ( TreeMetadata treeMetadata,
const std::string &  branchName 
)
inlinestaticprivate

Definition at line 339 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 339 of file compareRootFiles.hpp

References branchName, compare(), dumpEventData, BranchComparisonHarness::TreeMetadata::entryCount, eventData, eventDataEqual, m_eventLoaderPtr, sortHarness, boost::swap(), toString(), BranchComparisonHarness::TreeMetadata::tree1Reader, and BranchComparisonHarness::TreeMetadata::tree2Reader.

+ Here is the call graph for this function:

static BranchComparisonHarness BranchComparisonHarness::createVector ( TreeMetadata treeMetadata,
const std::string &  branchName,
const std::string  elemType 
)
inlinestaticprivate

Definition at line 439 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 439 of file compareRootFiles.hpp

References CREATE_VECTOR__HANDLE_INTEGER_TYPE, and CREATE_VECTOR__HANDLE_TYPE.

Referenced by create().

+ Here is the caller graph for this function:

void BranchComparisonHarness::loadCurrentEvent ( )
inline

Definition at line 256 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 256 of file compareRootFiles.hpp

template<typename T >
static std::string BranchComparisonHarness::toString ( const T data)
inlinestaticprivate

Definition at line 472 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 472 of file compareRootFiles.hpp

Referenced by create().

+ Here is the caller graph for this function:

template<typename U >
static std::string BranchComparisonHarness::toString ( const std::vector< U > &  vector)
inlinestaticprivate

Definition at line 479 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 479 of file compareRootFiles.hpp

Member Data Documentation

std::string BranchComparisonHarness::branchName

Definition at line 248 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 248 of file compareRootFiles.hpp

Referenced by create().

std::function<void()> BranchComparisonHarness::dumpEventData

Definition at line 272 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 272 of file compareRootFiles.hpp

Referenced by create().

HomogeneousPair<AnyVector> BranchComparisonHarness::eventData

Definition at line 251 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 251 of file compareRootFiles.hpp

Referenced by create().

TreeComparator BranchComparisonHarness::eventDataEqual

Definition at line 268 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 268 of file compareRootFiles.hpp

Referenced by create().

std::unique_ptr<IEventLoader> BranchComparisonHarness::m_eventLoaderPtr
private

Definition at line 435 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 435 of file compareRootFiles.hpp

Referenced by create().

HomogeneousPair<std::pair<IndexComparator, IndexSwapper> > BranchComparisonHarness::sortHarness

Definition at line 261 of file compareRootFiles.hpp.

View newest version in sPHENIX GitHub at line 261 of file compareRootFiles.hpp

Referenced by create().


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