CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( int  tt = 0,
int  bx = 0,
unsigned  val = 0x0 
)
inline

Definition at line 18 of file TCCinput.h.

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

18  :
19  tower(tt), bunchCrossing(bx), input(val) {
20  if (input>0x7ff) {
21  std::cout << "[TCCinput] saturated value 0x"
22  << std::hex << input << std::dec
23  << std::endl;
24  input &= 0x7ff;
25  }
26  };
int bunchCrossing
Definition: TCCinput.h:15
int tower
Definition: TCCinput.h:14
unsigned input
Definition: TCCinput.h:16
tuple cout
Definition: gather_cfg.py:145

Member Function Documentation

int TCCinput::get_energy ( ) const
inline

Definition at line 28 of file TCCinput.h.

References input.

Referenced by EcalFEtoDigi::create_TPSample(), EcalFEtoDigi::create_TPSampleTcp(), EcalFEtoDigi::create_TTDetId(), and operator<<().

28  {
29  return input & 0x3ff; //get bits 9:0
30  }
unsigned input
Definition: TCCinput.h:16
int TCCinput::get_fg ( ) const
inline

Definition at line 32 of file TCCinput.h.

References input.

Referenced by EcalFEtoDigi::create_TPSample(), EcalFEtoDigi::create_TPSampleTcp(), and operator<<().

32  {
33  return input & 0x400; //get bit number 10
34  }
unsigned input
Definition: TCCinput.h:16
bool TCCinput::is_current ( int  n) const
inline

Definition at line 36 of file TCCinput.h.

References bunchCrossing.

36  {
37  return (n==bunchCrossing);
38  }
int bunchCrossing
Definition: TCCinput.h:15
bool TCCinput::operator< ( const TCCinput k) const
inline

Definition at line 59 of file TCCinput.h.

References bunchCrossing.

59  {
60  return (bunchCrossing < k.bunchCrossing);
61 }
int bunchCrossing
Definition: TCCinput.h:15
std::ostream & TCCinput::operator<< ( std::ostream &  os)
inline

Definition at line 47 of file TCCinput.h.

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

47  {
48  os << " tcc input "
49  << " bx:" << bunchCrossing
50  << " tt:" << tower
51  << " raw:0x" << std::hex << input << std::dec
52  << " fg:" << this->get_fg()
53  << " energy:" << this->get_energy()
54  << std::endl;
55  return os;
56 }
int bunchCrossing
Definition: TCCinput.h:15
int get_fg() const
Definition: TCCinput.h:32
int get_energy() const
Definition: TCCinput.h:28
int tower
Definition: TCCinput.h:14
unsigned input
Definition: TCCinput.h:16

Member Data Documentation

int TCCinput::bunchCrossing

Definition at line 15 of file TCCinput.h.

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

unsigned TCCinput::input

Definition at line 16 of file TCCinput.h.

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

int TCCinput::tower

Definition at line 14 of file TCCinput.h.

Referenced by EcalFEtoDigi::create_TTDetId(), and operator<<().