CMS 3D CMS Logo

L1GctChannelMask Class Reference

#include <CondFormats/L1TObjects/interface/L1GctChannelMask.h>

List of all members.

Public Member Functions

bool emCrateMask (unsigned crate) const
 get EM masks for an RCT crate
 L1GctChannelMask ()
 default constructor sets all masks to false
void maskEmCrate (unsigned crate)
 mask EM candidates from an RCT crate
void maskRegion (unsigned ieta, unsigned iphi)
 mask a region
bool regionMask (unsigned ieta, unsigned iphi) const
 get region masks
 ~L1GctChannelMask ()

Private Attributes

bool emCrateMask_ [18]
bool regionMask_ [22][18]


Detailed Description

Definition at line 4 of file L1GctChannelMask.h.


Constructor & Destructor Documentation

L1GctChannelMask::L1GctChannelMask (  ) 

default constructor sets all masks to false

Definition at line 3 of file L1GctChannelMask.cc.

References emCrateMask_, i, and regionMask_.

00003                                    {
00004   for (unsigned i=0; i<18; ++i) {
00005     emCrateMask_[i] = false;
00006   }
00007   for (unsigned ieta=0; ieta<22; ++ieta) {
00008     for (unsigned iphi=0; iphi<18; ++iphi) {
00009       regionMask_[ieta][iphi] = false;
00010     }
00011   }
00012 }

L1GctChannelMask::~L1GctChannelMask (  )  [inline]

Definition at line 9 of file L1GctChannelMask.h.

00009 {}


Member Function Documentation

bool L1GctChannelMask::emCrateMask ( unsigned  crate  )  const

get EM masks for an RCT crate

Definition at line 22 of file L1GctChannelMask.cc.

References emCrateMask_.

Referenced by L1GlobalCaloTrigger::setIsoEm(), and L1GlobalCaloTrigger::setNonIsoEm().

00022                                                        {
00023   if (crate < 18) { return emCrateMask_[crate]; }
00024   else return true;
00025 }

void L1GctChannelMask::maskEmCrate ( unsigned  crate  ) 

mask EM candidates from an RCT crate

Definition at line 14 of file L1GctChannelMask.cc.

References emCrateMask_.

00014                                                  {
00015   if (crate < 18) emCrateMask_[crate] = true;
00016 }

void L1GctChannelMask::maskRegion ( unsigned  ieta,
unsigned  iphi 
)

mask a region

Definition at line 18 of file L1GctChannelMask.cc.

References regionMask_.

00018                                                               {
00019   if (ieta < 22 && iphi < 18) regionMask_[ieta][iphi] = true;
00020 }

bool L1GctChannelMask::regionMask ( unsigned  ieta,
unsigned  iphi 
) const

get region masks

Definition at line 27 of file L1GctChannelMask.cc.

References regionMask_.

Referenced by L1GlobalCaloTrigger::setRegion().

00027                                                                     {
00028   if (ieta < 22 && iphi < 18) { return regionMask_[ieta][iphi]; }
00029   else return true;
00030 }


Member Data Documentation

bool L1GctChannelMask::emCrateMask_[18] [private]

Definition at line 24 of file L1GctChannelMask.h.

Referenced by emCrateMask(), L1GctChannelMask(), and maskEmCrate().

bool L1GctChannelMask::regionMask_[22][18] [private]

Definition at line 25 of file L1GctChannelMask.h.

Referenced by L1GctChannelMask(), maskRegion(), and regionMask().


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