//----------------------- // This Class's Header -- //----------------------- #include "Calor/CprClustPar.hh" //--------------- // C++ Headers -- //--------------- #if defined(DEFECT_OLD_IOSTREAM_HEADERS) #include #else // Standard C++ #include #endif #if defined(DEFECT_NO_STDLIB_NAMESPACES) // Do nothing #else // Standard C++ using std::cerr ; using std::cout ; using std::endl ; #endif //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "Calor/CprDefs.hh" /****************************************************************************** * Default constructor * * Do nothing * * * *****************************************************************************/ /****************************************************************************** * Custom constructor from pointer to analysis module * * Initialize via AbsParmGeneral constructors * * * *****************************************************************************/ CprClustPar::CprClustPar( AppModule* theModule): _wireClusterThrsParam( "CprClusWireThrs", theModule, CPR_WIRE_THRS ), _seedClusterThrsParam( "CprClusSeedThrs", theModule, CPR_SEED_THRS ), _minEClusterThrsParam( "CprClusEnergyThrs", theModule, CPR_E_CLUS_CUT ), _printClusterParam( "printCprCluster", theModule, CPR_PRINTST ), _numMaxWiresClusterParam( "maxwiresclus", theModule, 3 ), _numMinWiresClusterParam( "minwiresclus", theModule, 1 ) { } /****************************************************************************** * Print function * * Print out values of clustering parameters * * * *****************************************************************************/ void CprClustPar::print( void ) const { std::cout << "****************************************" << std::endl; std::cout << "Parameters used in the CPR cluster collection " << std::endl; std::cout << "****************************************" << std::endl; std::cout << "*** Seed Threshold *** " << _seedClusterThrsParam.value() << " ***" << std::endl; std::cout << "*** Wire Threshold *** " << _wireClusterThrsParam.value() << " ***" << std::endl; std::cout << "*** Max. Number of wires in cluster *** " << _numMaxWiresClusterParam.value() << " ***" << std::endl; std::cout << "*** Min. Number of wires in cluster *** " << _numMinWiresClusterParam.value() << " ***" << std::endl; std::cout << "****************************************" << std::endl; }