CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EcalTriggerPrimitiveSample Class Reference

#include <EcalTriggerPrimitiveSample.h>

Public Member Functions

int compressedEt () const
 get the encoded/compressed Et (8 bits) More...
 
 EcalTriggerPrimitiveSample ()
 
 EcalTriggerPrimitiveSample (uint16_t data)
 
 EcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int triggerFlag)
 
bool fineGrain () const
 get the fine-grain bit (1 bit) More...
 
int l1aSpike () const
 
uint16_t operator() ()
 for streaming More...
 
uint16_t raw () const
 get the raw word More...
 
void setValue (uint16_t data)
 Set data. More...
 
int sFGVB () const
 
int ttFlag () const
 get the Trigger tower Flag (3 bits) More...
 

Private Attributes

uint16_t theSample
 

Detailed Description

$Id : $

Definition at line 15 of file EcalTriggerPrimitiveSample.h.

Constructor & Destructor Documentation

EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample ( )

Definition at line 5 of file EcalTriggerPrimitiveSample.cc.

EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample ( uint16_t  data)
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample ( int  encodedEt,
bool  finegrain,
int  triggerFlag 
)

Definition at line 8 of file EcalTriggerPrimitiveSample.cc.

References theSample.

8  {
9  theSample=((ttFlag&0x7)<<9)|(encodedEt&0xFF)|
10  ((fineGrain)?(0x100):(0));
11 }
bool fineGrain() const
get the fine-grain bit (1 bit)
int ttFlag() const
get the Trigger tower Flag (3 bits)

Member Function Documentation

int EcalTriggerPrimitiveSample::compressedEt ( ) const
inline

get the encoded/compressed Et (8 bits)

Definition at line 26 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

26 { return theSample&0xFF; }
bool EcalTriggerPrimitiveSample::fineGrain ( ) const
inline

get the fine-grain bit (1 bit)

Definition at line 28 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

28 { return (theSample&0x100)!=0; }
int EcalTriggerPrimitiveSample::l1aSpike ( ) const
inline

Gets the L1A spike detection flag. Beware the flag is inverted. Deprecated, use instead sFGVB() method, whose name is less missleading

Returns
0 spike like pattern 1 EM shower like pattern

Definition at line 36 of file EcalTriggerPrimitiveSample.h.

References theSample.

36 { return (theSample >>12) & 0x1; }
uint16_t EcalTriggerPrimitiveSample::operator() ( )
inline

for streaming

Definition at line 44 of file EcalTriggerPrimitiveSample.h.

References theSample.

uint16_t EcalTriggerPrimitiveSample::raw ( ) const
inline

get the raw word

Definition at line 24 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by L1EmulBias::ModifyCollection().

void EcalTriggerPrimitiveSample::setValue ( uint16_t  data)
inline
int EcalTriggerPrimitiveSample::sFGVB ( ) const
inline

Gets the "strip fine grain veto bit" (sFGVB) used as L1A spike detection

Returns
0 spike like pattern 1 EM shower like pattern

Definition at line 41 of file EcalTriggerPrimitiveSample.h.

References theSample.

41 { return (theSample >>12) & 0x1; }
int EcalTriggerPrimitiveSample::ttFlag ( ) const
inline

get the Trigger tower Flag (3 bits)

Definition at line 30 of file EcalTriggerPrimitiveSample.h.

References theSample.

Referenced by operator<<().

30 { return (theSample>>9)&0x7; }

Member Data Documentation

uint16_t EcalTriggerPrimitiveSample::theSample
private