#ifndef _CPR_COMP_HH_ #define _CPR_COMP_HH_ /****************************************************************************** * CPR Comparisons classes header file * * * * Author: Bob Wagner, Argonne CDF Group * * Phone 630-252-6321 (Argonne) 630-840-8436 (Fermilab) * * * * Description: Algorithmic function objects that do comparisons of CPR * * quantities. These are meant to be used with STL algorithms. * * * * Revision History: * * 08-Nov-2000 Bob Wagner Initial creation from CesComparisons * * 09-Nov-2000 Bob Wagner Change file name to cpr_comp and add * * namespace cpr_comp usage. Change class names* * to give consistency with track_sort. * * 18-Oct-2004 Bob Wagner Add declaration for Kuhlmann's CPR2 pad * * sorter. * * 20-Oct-2004 Bob Wagner Change type of padlist passed to cp2_find_pad* * from vector to int*. * * * *****************************************************************************/ //--------------- // C++ Headers -- //--------------- #include //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "CalorObjects/CprCluster.hh" #include "CalorObjects/CprClusterColl.hh" #include "StorableContainers/ValueVectorLink.hh" namespace cpr_comp { class DecrEnergy; class IncrEnergy; } //***************************************************************************** // Class Declarations //***************************************************************************** class cpr_comp::DecrEnergy { public: DecrEnergy() {} DecrEnergy(const DecrEnergy& right) {} ~DecrEnergy() {} bool operator ()( const CprCluster& t1, const CprCluster& t2 ) const; bool operator ()( const ValueVectorLink& t1, const ValueVectorLink& t2 ) const; private: }; class cpr_comp::IncrEnergy { public: IncrEnergy() {} IncrEnergy(const IncrEnergy& right) {} ~IncrEnergy() {} bool operator ()( const CprCluster& t1, const CprCluster& t2 ) const; bool operator ()( const ValueVectorLink& t1, const ValueVectorLink& t2 ) const; private: }; // ************************************************************ // Steve Kuhlmann's global function to order the CPR2 pad list // ************************************************************ void cp2_find_pad( float, float, int* ); /*===========================================================================*\ * Inline functions * \*===========================================================================*/ #include "Calor/cpr_comp.icc" /****************************************************************************** * ALL DONE * *****************************************************************************/ #endif // _CPR_COMP_HH_