CMS 3D CMS Logo

Classes | Functions | Variables
CaloRecHit.h File Reference
#include "DataFormats/DetId/interface/DetId.h"
#include <ostream>

Go to the source code of this file.

Classes

class  CaloRecHit
 

Functions

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

Variables

constexpr uint32_t calo_rechit_masks []
 

Function Documentation

◆ operator<<()

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

Definition at line 3 of file CaloRecHit.cc.

References TauDecayModes::dec, and alignCSCRings::s.

3  {
4  s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns ";
5  s << " flags=0x" << std::hex << hit.flags() << std::dec << " ";
6  s << " aux=0x" << std::hex << hit.aux() << std::dec << " ";
7  return s;
8 }

Variable Documentation

◆ calo_rechit_masks

constexpr uint32_t calo_rechit_masks[]
Initial value:
= {0x00000000u, 0x00000001u, 0x00000003u, 0x00000007u, 0x0000000fu, 0x0000001fu,
0x0000003fu, 0x0000007fu, 0x000000ffu, 0x000001ffu, 0x000003ffu, 0x000007ffu,
0x00000fffu, 0x00001fffu, 0x00003fffu, 0x00007fffu, 0x0000ffffu, 0x0001ffffu,
0x0003ffffu, 0x0007ffffu, 0x000fffffu, 0x001fffffu, 0x003fffffu, 0x007fffffu,
0x00ffffffu, 0x01ffffffu, 0x03ffffffu, 0x07ffffffu, 0x0fffffffu, 0x1fffffffu,
0x3fffffffu, 0x7fffffffu, 0xffffffffu}

Definition at line 12 of file CaloRecHit.h.

Referenced by CaloRecHit::flagField(), and CaloRecHit::setFlagField().