CMS 3D CMS Logo

Classes | Namespaces | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/SimDataFormats/SLHC/interface/L1CaloCluster.h File Reference

#include <ostream>
#include "DataFormats/Math/interface/LorentzVector.h"
#include "SimDataFormats/SLHC/interface/L1CaloTower.h"
#include "SimDataFormats/SLHC/interface/L1CaloTowerFwd.h"

Go to the source code of this file.

Classes

class  l1slhc::L1CaloCluster

Namespaces

namespace  l1slhc
namespace  std

Functions

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

Function Documentation

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

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;
}