// register_trfcyl_types.cpp #include "register_trfcyl_types.h" #include #include "objstream/ObjTable.hpp" #include "SurfCylinder.h" #include "BSurfCylinder.h" #include "PropCylFieldConst.h" #include "PropCyl.h" #include "PropCylRK.h" #include "PropJoinCyl.h" #include "ThickCylMS.h" #include "ThinCylMS.h" #include "HitCylPhi.h" #include "HitCylPhiZ.h" #include "AddFitCyl_Phi.h" #include "AddFitCyl_Phi_Phi.h" #include "AddFitCyl_Phi_Phi_Phi.h" #include "AddFitCyl_PhiZ.h" #include "AddFitCyl_PhiZ_PhiZ.h" #include "CheckCylZ.h" #include "CheckCylDca.h" #include "ClusterFilterZedge_0Hit.h" #include "ClusterFilterChisqCyl.h" #include "ClusterFilterChisqCylZ.h" #include "ClusterFilterCylPhi.h" bool trf::register_trfcyl_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() ); 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; }