CMS 3D CMS Logo

L1GctRegion Class Reference

Gct version of a calorimeter region, used within GCT emulation. More...

#include <L1Trigger/GlobalCaloTrigger/interface/L1GctRegion.h>

Inheritance diagram for L1GctRegion:

L1CaloRegion

List of all members.

Public Types

enum  numberOfBits { kGctRegionNBits = 10, kGctRegionOFlowBit = 1 << kGctRegionNBits, kGctRegionMaxValue = kGctRegionOFlowBit - 1 }

Public Member Functions

unsigned et () const
 get Et
ULong getEt () const
bool getMip () const
bool getQuiet () const
 L1GctRegion (ULong et=0, bool mip=false, bool quiet=false)
 L1GctRegion ()
 L1GctRegion (const L1CaloRegion &)
 L1GctRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi)
 L1GctRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx)
ostream & operator<< (ostream &os, const L1GctRegion &s)
unsigned rctEta () const
 get local eta index (within RCT crate)
void setEt (ULong et)
void setMip (bool mip)
 set MIP bit (required for GCT emulator standalone operation)
void setQuiet (bool quiet)
 set quiet bit (required for GCT emulator standalone operation)
 ~L1GctRegion ()
 ~L1GctRegion ()

Private Attributes

std::bitset< 10 > myEt
bool myMip
bool myQuiet


Detailed Description

Gct version of a calorimeter region, used within GCT emulation.

Author:
Greg Heath
Date:
September 2007
Only differs from L1CaloRegion by the treatment of overflows

Definition at line 17 of file L1GctRegion.h.


Member Enumeration Documentation

enum L1GctRegion::numberOfBits

Enumerator:
kGctRegionNBits 
kGctRegionOFlowBit 
kGctRegionMaxValue 

Definition at line 21 of file L1GctRegion.h.

00021                     {
00022     kGctRegionNBits    = 10,
00023     kGctRegionOFlowBit = 1 << kGctRegionNBits,
00024     kGctRegionMaxValue = kGctRegionOFlowBit - 1
00025   };


Constructor & Destructor Documentation

L1GctRegion::L1GctRegion ( const unsigned  et,
const bool  overFlow,
const bool  fineGrain,
const unsigned  ieta,
const unsigned  iphi,
const int16_t  bx 
)

Definition at line 3 of file L1GctRegion.cc.

References L1CaloRegion::setBx().

00004                                                                                      :
00005   //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00006     //                                          ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, bx) )
00007 // For 21X compatibility, use old-style L1CaloRegion constructor.
00008 // For 30X, the bx argument can be included in the ctor so no need to setBx() explicitly
00009   L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00010                 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi)
00011 {
00012   this->setBx(bx);
00013 }

L1GctRegion::L1GctRegion ( const unsigned  et,
const bool  overFlow,
const bool  fineGrain,
const unsigned  ieta,
const unsigned  iphi 
)

Definition at line 15 of file L1GctRegion.cc.

References L1CaloRegion::setBx().

00016                                                                    :
00017 //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00018 //                                              ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, 0) )
00019   L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00020                 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi)
00021 {
00022   this->setBx(0);
00023 }

L1GctRegion::L1GctRegion ( const L1CaloRegion r  ) 

Definition at line 25 of file L1GctRegion.cc.

References L1CaloRegion::bx(), and L1CaloRegion::setBx().

00025                                               :
00026 //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()),
00027 //                                              r.overFlow(), r.fineGrain(), r.gctEta(), r.gctPhi(), r.bx()) )
00028   L1CaloRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()),
00029                 r.overFlow(), r.fineGrain(), false, false, r.gctEta(), r.gctPhi())
00030 {
00031   this->setBx(r.bx());
00032 }

L1GctRegion::L1GctRegion (  ) 

Definition at line 34 of file L1GctRegion.cc.

References L1CaloRegion::setBx().

00034                          : L1CaloRegion()
00035 {
00036   this->setBx(0);
00037 }

L1GctRegion::~L1GctRegion (  ) 

Definition at line 39 of file L1GctRegion.cc.

00040 {
00041 }

L1GctRegion::L1GctRegion ( ULong  et = 0,
bool  mip = false,
bool  quiet = false 
)

L1GctRegion::~L1GctRegion (  ) 


Member Function Documentation

unsigned L1GctRegion::et (  )  const [inline]

get Et

Reimplemented from L1CaloRegion.

Definition at line 35 of file L1GctRegion.h.

References kGctRegionMaxValue, L1CaloRegion::overFlow(), and L1CaloRegion::raw().

ULong L1GctRegion::getEt (  )  const [inline]

Definition at line 25 of file L1GctRegion.h.

References myEt.

00025 { return myEt.to_ulong(); }

bool L1GctRegion::getMip (  )  const [inline]

Definition at line 26 of file L1GctRegion.h.

References myMip.

00026 { return myMip; }

bool L1GctRegion::getQuiet (  )  const [inline]

Definition at line 27 of file L1GctRegion.h.

References myQuiet.

00027 { return myQuiet; }

ostream& L1GctRegion::operator<< ( ostream &  os,
const L1GctRegion s 
)

unsigned L1GctRegion::rctEta (  )  const [inline]

get local eta index (within RCT crate)

Reimplemented from L1CaloRegion.

Definition at line 38 of file L1GctRegion.h.

References L1CaloRegion::empty().

00038 { return ( empty() ? 12 : id().rctEta() ); }

void L1GctRegion::setEt ( ULong  et  )  [inline]

Definition at line 30 of file L1GctRegion.h.

References myEt.

00030 { myEt = et; } 

void L1GctRegion::setMip ( bool  mip  )  [inline]

set MIP bit (required for GCT emulator standalone operation)

Reimplemented from L1CaloRegion.

Definition at line 31 of file L1GctRegion.h.

References myMip.

00031 { myMip = mip; }

void L1GctRegion::setQuiet ( bool  quiet  )  [inline]

set quiet bit (required for GCT emulator standalone operation)

Reimplemented from L1CaloRegion.

Definition at line 32 of file L1GctRegion.h.

References myQuiet.

00032 { myQuiet = quiet; }


Member Data Documentation

std::bitset<10> L1GctRegion::myEt [private]

Definition at line 38 of file L1GctRegion.h.

Referenced by getEt(), and setEt().

bool L1GctRegion::myMip [private]

Definition at line 39 of file L1GctRegion.h.

Referenced by getMip(), and setMip().

bool L1GctRegion::myQuiet [private]

Definition at line 40 of file L1GctRegion.h.

Referenced by getQuiet(), and setQuiet().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:39 2009 for CMSSW by  doxygen 1.5.4