CMS 3D CMS Logo

Namespaces | Functions

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

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

Go to the source code of this file.

Namespaces

namespace  l1slhc
namespace  std

Functions

bool std::operator< (const l1slhc::L1TowerJet &aLeft, const l1slhc::L1TowerJet &aRight)
std::ostream & operator<< (std::ostream &aStream, const l1slhc::L1TowerJet &aL1TowerJet)

Function Documentation

std::ostream& operator<< ( std::ostream &  aStream,
const l1slhc::L1TowerJet aL1TowerJet 
)

Definition at line 622 of file L1TowerJet.cc.

References l1slhc::L1TowerJet::getConstituents(), i, l1slhc::L1TowerJet::iEta(), and l1slhc::L1TowerJet::iPhi().

{
        aStream << "L1TowerJet" 
                << " iEta=" << aL1TowerJet.iEta(  ) 
                << " iPhi=" << aL1TowerJet.iPhi(  ) 
                << "\n with constituents:\n";
        for ( l1slhc::L1CaloTowerRefVector::const_iterator i = aL1TowerJet.getConstituents(  ).begin(  ); i < aL1TowerJet.getConstituents(  ).end(  ); ++i )
                aStream << "  iEta=" << ( **i ).iEta(  ) 
                        << " iPhi=" << ( **i ).iPhi(  ) 
                        << " ET=" << ( **i ).E(  ) 
                        << "\n";
        return aStream;
}