CMS 3D CMS Logo

TCCinput Struct Reference

#include <SimCalorimetry/EcalElectronicsEmulation/interface/TCCinput.h>

List of all members.

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 GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and input.

00018                                                  : 
00019     tower(tt), bunchCrossing(bx), input(val) {
00020     if (input>0x7ff)  {
00021       std::cout << "[TCCinput] saturated value 0x" 
00022                 << std::hex << input << std::dec
00023                 << std::endl;
00024       input &= 0x7ff;
00025     }
00026   }; 


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<<().

00028                          {
00029     return input & 0x3ff; //get bits 9:0
00030   }

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<<().

00032                      {
00033     return input & 0x400; //get bit number 10
00034   }

bool TCCinput::is_current ( int  n  )  const [inline]

Definition at line 36 of file TCCinput.h.

References bunchCrossing.

00036                                 {
00037     return (n==bunchCrossing);
00038   }

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

Definition at line 59 of file TCCinput.h.

References bunchCrossing.

00059                                                  {
00060   return (bunchCrossing < k.bunchCrossing);
00061 }

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

Definition at line 47 of file TCCinput.h.

References bunchCrossing, lat::endl(), get_energy(), get_fg(), input, and tower.

00047                                                {
00048   os << " tcc input " 
00049      << " bx:"     << bunchCrossing 
00050      << " tt:"     << tower 
00051      << " raw:0x"  << std::hex  << input << std::dec  
00052      << " fg:"     << this->get_fg()
00053      << " energy:" << this->get_energy()
00054      << std::endl;
00055   return os;
00056 }


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<<().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:33:10 2009 for CMSSW by  doxygen 1.5.4