CMS 3D CMS Logo

Classes | Functions
FTLRecHit.h File Reference
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
#include <vector>

Go to the source code of this file.

Classes

class  FTLRecHit
 

Functions

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

Function Documentation

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

Definition at line 47 of file FTLRecHit.cc.

References DetId::det(), FTLRecHit::detid(), FTLRecHit::energy(), FastTime, DetId::Forward, DetId::subdetId(), and FTLRecHit::time().

47  {
48  if (hit.detid().det() == DetId::Forward && hit.detid().subdetId() == FastTime)
49  return s << FastTimeDetId(hit.detid()) << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
50  else
51  return s << "FTLRecHit undefined subdetector" ;
52 }
const DetId & detid() const
Definition: FTLRecHit.h:45
float energy() const
get the id
Definition: FTLRecHit.h:41
float time() const
Definition: FTLRecHit.h:47
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Detector det() const
get the detector field from this detid
Definition: DetId.h:35