CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TCCinput Struct Reference

#include <TCCinput.h>

Public Member Functions

int get_energy () const
 
int get_fg () const
 
bool is_current (int n) const
 
bool operator< (const TCCinput &) const
 
std::ostream & operator<< (std::ostream &)
 
 TCCinput (int tt=0, int bx=0, unsigned val=0x0)
 

Public Attributes

int bunchCrossing
 
unsigned input
 
int tower
 

Detailed Description

Definition at line 12 of file TCCinput.h.

Constructor & Destructor Documentation

◆ TCCinput()

TCCinput::TCCinput ( int  tt = 0,
int  bx = 0,
unsigned  val = 0x0 
)
inline

Definition at line 17 of file TCCinput.h.

17  : tower(tt), bunchCrossing(bx), input(val) {
18  if (input > 0x7ff) {
19  std::cout << "[TCCinput] saturated value 0x" << std::hex << input << std::dec << std::endl;
20  input &= 0x7ff;
21  }
22  };

References gather_cfg::cout, TauDecayModes::dec, and input.

Member Function Documentation

◆ get_energy()

int TCCinput::get_energy ( ) const
inline

Definition at line 24 of file TCCinput.h.

24  {
25  return input & 0x3ff; // get bits 9:0
26  }

References input.

Referenced by operator<<().

◆ get_fg()

int TCCinput::get_fg ( ) const
inline

Definition at line 28 of file TCCinput.h.

28  {
29  return input & 0x400; // get bit number 10
30  }

References input.

Referenced by operator<<().

◆ is_current()

bool TCCinput::is_current ( int  n) const
inline

Definition at line 32 of file TCCinput.h.

32 { return (n == bunchCrossing); }

References bunchCrossing, and dqmiodumpmetadata::n.

◆ operator<()

bool TCCinput::operator< ( const TCCinput k) const
inline

Definition at line 46 of file TCCinput.h.

46 { return (bunchCrossing < k.bunchCrossing); }

References bunchCrossing, and dqmdumpme::k.

◆ operator<<()

std::ostream & TCCinput::operator<< ( std::ostream &  os)
inline

Definition at line 39 of file TCCinput.h.

39  {
40  os << " tcc input "
41  << " bx:" << bunchCrossing << " tt:" << tower << " raw:0x" << std::hex << input << std::dec
42  << " fg:" << this->get_fg() << " energy:" << this->get_energy() << std::endl;
43  return os;
44 }

References bunchCrossing, TauDecayModes::dec, get_energy(), get_fg(), input, and tower.

Member Data Documentation

◆ bunchCrossing

int TCCinput::bunchCrossing

Definition at line 14 of file TCCinput.h.

Referenced by is_current(), operator<(), and operator<<().

◆ input

unsigned TCCinput::input

Definition at line 15 of file TCCinput.h.

Referenced by get_energy(), get_fg(), operator<<(), and TCCinput().

◆ tower

int TCCinput::tower

Definition at line 13 of file TCCinput.h.

Referenced by operator<<().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
gather_cfg.cout
cout
Definition: gather_cfg.py:144
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
TCCinput::get_energy
int get_energy() const
Definition: TCCinput.h:24
TCCinput::get_fg
int get_fg() const
Definition: TCCinput.h:28
dqmdumpme.k
k
Definition: dqmdumpme.py:60
TCCinput::bunchCrossing
int bunchCrossing
Definition: TCCinput.h:14
TCCinput::tower
int tower
Definition: TCCinput.h:13
TCCinput::input
unsigned input
Definition: TCCinput.h:15
heppy_batch.val
val
Definition: heppy_batch.py:351
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142