CMS 3D CMS Logo

Functions

std Namespace Reference

Functions

bool operator< (const l1slhc::L1CaloCluster &aLeft, const l1slhc::L1CaloCluster &aRight)
bool operator< (const l1slhc::L1CaloJet &aLeft, const l1slhc::L1CaloJet &aRight)
bool operator< (const l1slhc::L1CaloTower &aLeft, const l1slhc::L1CaloTower &aRight)
bool operator< (const l1slhc::L1TowerJet &aLeft, const l1slhc::L1TowerJet &aRight)
bool operator< (const l1slhc::L1CaloRegion &aLeft, const l1slhc::L1CaloRegion &aRight)
ostream & operator<< (std::ostream &o, vector< std::string > const &iValue)
template<>
void swap (edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
template<>
void swap (edm::HLTGlobalStatus &lhs, edm::HLTGlobalStatus &rhs)

Function Documentation

bool std::operator< ( const l1slhc::L1CaloCluster aLeft,
const l1slhc::L1CaloCluster aRight 
)

Definition at line 388 of file L1CaloCluster.cc.

References abs, l1slhc::L1CaloCluster::E(), and l1slhc::L1CaloCluster::iEta().

        {
                if ( aLeft.E(  ) == aRight.E(  ) )
                {
                        // for two objects with equal energy, favour the more central one
                        return ( abs( aLeft.iEta(  ) ) > abs( aRight.iEta(  ) ) );
                }
                else
                {
                        return ( aLeft.E(  ) < aRight.E(  ) );
                }
        }
bool std::operator< ( const l1slhc::L1CaloJet aLeft,
const l1slhc::L1CaloJet aRight 
)

Definition at line 120 of file L1CaloJet.cc.

References abs, l1slhc::L1CaloJet::E(), and l1slhc::L1CaloJet::iEta().

        {
                if ( aLeft.E(  ) == aRight.E(  ) )
                {
                        // for two objects with equal energy, favour the more central one
                        return ( abs( aLeft.iEta(  ) ) > abs( aRight.iEta(  ) ) );
                }
                else
                {
                        return ( aLeft.E(  ) < aRight.E(  ) );
                }
        }
bool std::operator< ( const l1slhc::L1CaloTower aLeft,
const l1slhc::L1CaloTower aRight 
)

Definition at line 93 of file L1CaloTower.cc.

References abs, l1slhc::L1CaloTower::E(), l1slhc::L1CaloTower::H(), and l1slhc::L1CaloTower::iEta().

        {
                int lLeftE = aLeft.E(  ) + aLeft.H(  );
                int lRightE = aRight.E(  ) + aRight.H(  );

                if ( lLeftE == lRightE )
                {
                        // for two objects with equal energy, favour the more central one
                        return ( abs( aLeft.iEta(  ) ) > abs( aRight.iEta(  ) ) );
                }
                else
                {
                        return ( lLeftE < lRightE );
                }

        }
bool std::operator< ( const l1slhc::L1TowerJet aLeft,
const l1slhc::L1TowerJet aRight 
)

Definition at line 606 of file L1TowerJet.cc.

References abs, l1slhc::L1TowerJet::E(), and l1slhc::L1TowerJet::iEta().

        {
                if ( aLeft.E(  ) == aRight.E(  ) )
                {
                        // for two objects with equal energy, favour the more central one
                        return ( abs( aLeft.iEta(  ) ) > abs( aRight.iEta(  ) ) );
                }
                else
                {
                        return ( aLeft.E(  ) < aRight.E(  ) );
                }
        }
bool std::operator< ( const l1slhc::L1CaloRegion aLeft,
const l1slhc::L1CaloRegion aRight 
)

Definition at line 46 of file L1CaloRegion.cc.

References abs, l1slhc::L1CaloRegion::E(), and l1slhc::L1CaloRegion::iEta().

        {
                if ( aLeft.E(  ) == aRight.E(  ) )
                {
                        // for two objects with equal energy, favour the more central one
                        return ( abs( aLeft.iEta(  ) ) > abs( aRight.iEta(  ) ) );
                }
                else
                {
                        return ( aLeft.E(  ) < aRight.E(  ) );
                }
        }
ostream& std::operator<< ( std::ostream &  o,
vector< std::string > const &  iValue 
)

Definition at line 46 of file refresh.cc.

References python::connectstrParser::o, and AlCaHLTBitMon_QueryRunRegistry::string.

                                                                      {
    std::string sep("");
    std::string commaSep(",");
    for(std::vector<std::string>::const_iterator it = iValue.begin(), itEnd = iValue.end();
        it != itEnd;
        ++it) {
      o << sep << *it;
      sep = commaSep;
    }
    return o;
  }
template<>
void std::swap ( edm::DataFrameContainer lhs,
edm::DataFrameContainer rhs 
) [inline]
template<>
void std::swap ( edm::HLTGlobalStatus lhs,
edm::HLTGlobalStatus rhs 
) [inline]

Definition at line 130 of file HLTGlobalStatus.h.

References edm::HLTGlobalStatus::swap().

                                                                                 {
    lhs.swap(rhs);
  }