CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
EcalTrigTowerDetId.cc File Reference
#include "DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <cassert>
#include <ostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const EcalTrigTowerDetId &id)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const EcalTrigTowerDetId id 
)

Definition at line 169 of file EcalTrigTowerDetId.cc.

References EcalBarrel.

169  {
170  return s << "(EcalTT subDet " << ((id.subDet()==EcalBarrel)?("Barrel"):("Endcap"))
171  << " iz " << ((id.zside()>0)?("+ "):("- ")) << " ieta "
172  << id.ietaAbs() << " iphi " << id.iphi() << ')';
173 }
int zside(DetId const &)