// register_trffind_types.cpp #include "register_trffind_types.h" #include "objstream/ObjTable.hpp" #include "ClusterFilterChisq.h" #include "CheckOr.h" #include "CheckChiSquare.h" #include "CheckHitCount.h" #include "CheckZInt.h" #include "FilterAll.h" #include "FilterShares.h" #include "FilterContains.h" #include "PathStop.h" #include "Path.h" #include "TrackExtender.h" #include "TrackFinder.h" #include "ClusterFilterMcId.h" bool trf::register_trffind_types() { // Create vector holding the status for each registration. std::vector stats; // Register types. ObjTable::Status stat; stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); stats.push_back( ObjTable::register_type() ); // Check each registration. for ( std::vector::const_iterator istat=stats.begin(); istat!=stats.end(); ++istat ) { assert( *istat == ObjTable::OK ); if ( *istat != ObjTable::OK ) abort(); } return true; }