CMS 3D CMS Logo

Functions
FTLRecHit.cc File Reference
#include "DataFormats/FTLRecHit/interface/FTLRecHit.h"
#include "DataFormats/ForwardDetId/interface/FastTimeDetId.h"
#include <cassert>
#include <cmath>
#include <limits>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const FTLRecHit &hit)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const FTLRecHit hit 
)

Definition at line 63 of file FTLRecHit.cc.

63  {
64  if (hit.detid().det() == DetId::Forward && hit.detid().subdetId() == FastTime)
65  return s << FastTimeDetId(hit.detid()) << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
66  else
67  return s << "FTLRecHit undefined subdetector";
68 }

References FastTime, DetId::Forward, and alignCSCRings::s.

alignCSCRings.s
s
Definition: alignCSCRings.py:92
FastTime
Definition: ForwardSubdetector.h:6
FastTimeDetId
Definition: FastTimeDetId.h:8
DetId::Forward
Definition: DetId.h:30
hit
Definition: SiStripHitEffFromCalibTree.cc:88