CMS 3D CMS Logo

Namespaces | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/SimDataFormats/SLHC/src/L1CaloCluster.cc File Reference

#include "SimDataFormats/SLHC/interface/L1CaloCluster.h"
#include <stdlib.h>

Go to the source code of this file.

Namespaces

namespace  l1slhc
namespace  std

Functions

bool std::operator< (const l1slhc::L1CaloCluster &aLeft, const l1slhc::L1CaloCluster &aRight)
std::ostream & operator<< (std::ostream &aStream, const l1slhc::L1CaloCluster &aL1CaloCluster)

Function Documentation

std::ostream& operator<< ( std::ostream &  aStream,
const l1slhc::L1CaloCluster aL1CaloCluster 
)

Definition at line 404 of file L1CaloCluster.cc.

References l1slhc::L1CaloCluster::E(), l1slhc::L1CaloCluster::eGammaValue(), l1slhc::L1CaloCluster::fg(), l1slhc::L1CaloCluster::getConstituents(), i, l1slhc::L1CaloCluster::iEta(), l1slhc::L1CaloCluster::iPhi(), l1slhc::L1CaloCluster::isCentral(), and l1slhc::L1CaloCluster::p4().

{
        aStream << "L1CaloCluster"
                << " iEta=" << aL1CaloCluster.iEta(  )
                << " iPhi=" << aL1CaloCluster.iPhi(  )
                << " E=" << aL1CaloCluster.E(  )
                << " eta=" << aL1CaloCluster.p4(  ).eta(  )
                << " phi=" << aL1CaloCluster.p4(  ).phi(  )
                << " pt=" << aL1CaloCluster.p4(  ).pt(  )
                << " egamma=" << aL1CaloCluster.eGammaValue(  )
                << " central=" << aL1CaloCluster.isCentral(  ) 
                << " fg=" << aL1CaloCluster.fg(  ) 
                << "\n with constituents:\n";
        for ( l1slhc::L1CaloTowerRefVector::const_iterator i = aL1CaloCluster.getConstituents(  ).begin(  ); i != aL1CaloCluster.getConstituents(  ).end(  ); ++i )
                aStream << "  iEta=" << ( **i ).iEta(  ) 
                        << " iPhi=" << ( **i ).iPhi(  ) 
                        << " ET=" << ( **i ).E(  )
                        << "\n";
        return aStream;
}