//----------------------- // This Class's Header -- //----------------------- #include "Calor/CprWirePar.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 * * * *****************************************************************************/ CprWirePar::CprWirePar( AppModule* theModule): _wireThrsParam( "CprWireThrs", theModule, CPR_WIRE_THRS ), _seedThrsParam( "CprSeedThrs", theModule, CPR_SEED_THRS ), _printWiresParam( "printCprWires", theModule, CPR_PRINTST ), _numberWiresParam( "CprNumberWires", theModule, CPR_NUM_WIRE_CLUS ), _ptcutParam("CprPtmin",theModule, 0.5 ), _etaminParam("CprEtamin",theModule,-1.2,-5.0,0.0), _etamaxParam("CprEtamax",theModule,1.2,0.0,5.0), _wirecollstratParam("wirecollstrat",theModule,3), _cesenergycutParam("cesenergycut",theModule,0.0), _useCPRQ("useCPRQ",theModule,false) { } /****************************************************************************** * Print function * * Print out values of clustering parameters * * * *****************************************************************************/ void CprWirePar::print( void ) const { cout << "*******************************************" << endl; cout << "Parameters used in the CPR wire collection " << endl; cout << "*******************************************" << endl; cout << "*** Printout *** " << _printWiresParam.value() << " ***" << endl; cout << "*** Wire collection strategy *** " << _wirecollstratParam.value() << " ***" << endl; cout << "*** Seed Threshold *** " << _seedThrsParam.value() << " ***" << endl; cout << "*** Wire Threshold *** " << _wireThrsParam.value() << " ***" << endl; cout << "*** Number of wires *** " << _numberWiresParam.value() << " ***" << endl; cout << "*** Track PT Cut *** " << _ptcutParam.value() << " ***" << endl; cout << "*** Track Etamin Cut *** " << _etaminParam.value() << " ***" << endl; cout << "*** Track Etamax Cut *** " << _etamaxParam.value() << " ***" << endl; cout << "*** Using CPRQ(0/1) *** " << _useCPRQ.value() << " ***" << endl; cout << "****************************************" << endl; }