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
L1GctChannelMask Class Reference

#include <L1GctChannelMask.h>

Public Member Functions

bool emCrateMask (unsigned crate) const
 get EM masks for an RCT crate More...
 
 L1GctChannelMask ()
 default constructor sets all masks to false More...
 
void maskEmCrate (unsigned crate)
 mask EM candidates from an RCT crate More...
 
void maskMissingEt (unsigned ieta)
 mask eta range from missing Et sum More...
 
void maskMissingHt (unsigned ieta)
 mask eta range from missing Ht sum More...
 
void maskRegion (unsigned ieta, unsigned iphi)
 mask a region More...
 
void maskTotalEt (unsigned ieta)
 mask eta range from total Et sum More...
 
void maskTotalHt (unsigned ieta)
 mask eta range from total Ht sum More...
 
bool missingEtMask (unsigned ieta) const
 
bool missingHtMask (unsigned ieta) const
 
bool regionMask (unsigned ieta, unsigned iphi) const
 get region masks More...
 
bool totalEtMask (unsigned ieta) const
 
bool totalHtMask (unsigned ieta) const
 
 ~L1GctChannelMask ()
 

Private Attributes

 COND_SERIALIZABLE
 
bool emCrateMask_ [18]
 
bool htMask_ [22]
 
bool metMask_ [22]
 
bool mhtMask_ [22]
 
bool regionMask_ [22][18]
 
bool tetMask_ [22]
 

Detailed Description

Definition at line 8 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_, htMask_, i, metMask_, mhtMask_, regionMask_, and tetMask_.

3  {
4  for (unsigned i=0; i<18; ++i) {
5  emCrateMask_[i] = false;
6  }
7  for (unsigned ieta=0; ieta<22; ++ieta) {
8  for (unsigned iphi=0; iphi<18; ++iphi) {
9  regionMask_[ieta][iphi] = false;
10  }
11  }
12  for (unsigned i=0; i<22; ++i) {
13  tetMask_[i] = false;
14  metMask_[i] = false;
15  htMask_[i] = false;
16  mhtMask_[i] = false;
17  }
18 }
int i
Definition: DBlmapReader.cc:9
bool regionMask_[22][18]
L1GctChannelMask::~L1GctChannelMask ( )
inline

Definition at line 13 of file L1GctChannelMask.h.

13 {}

Member Function Documentation

bool L1GctChannelMask::emCrateMask ( unsigned  crate) const

get EM masks for an RCT crate

Definition at line 51 of file L1GctChannelMask.cc.

References emCrateMask_.

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

51  {
52  if (crate < 18) { return emCrateMask_[crate]; }
53  else return true;
54 }
void L1GctChannelMask::maskEmCrate ( unsigned  crate)

mask EM candidates from an RCT crate

Definition at line 21 of file L1GctChannelMask.cc.

References emCrateMask_.

21  {
22  if (crate < 18) emCrateMask_[crate] = true;
23 }
void L1GctChannelMask::maskMissingEt ( unsigned  ieta)

mask eta range from missing Et sum

Definition at line 36 of file L1GctChannelMask.cc.

References metMask_.

Referenced by L1GctConfigProducers::produceChanMask().

36  {
37  if (ieta < 22) metMask_[ieta] = true;
38 }
void L1GctChannelMask::maskMissingHt ( unsigned  ieta)

mask eta range from missing Ht sum

Definition at line 46 of file L1GctChannelMask.cc.

References mhtMask_.

Referenced by L1GctConfigProducers::produceChanMask().

46  {
47  if (ieta < 22) mhtMask_[ieta] = true;
48 }
void L1GctChannelMask::maskRegion ( unsigned  ieta,
unsigned  iphi 
)

mask a region

Definition at line 26 of file L1GctChannelMask.cc.

References regionMask_.

26  {
27  if (ieta < 22 && iphi < 18) regionMask_[ieta][iphi] = true;
28 }
bool regionMask_[22][18]
void L1GctChannelMask::maskTotalEt ( unsigned  ieta)

mask eta range from total Et sum

Definition at line 31 of file L1GctChannelMask.cc.

References tetMask_.

Referenced by L1GctConfigProducers::produceChanMask().

31  {
32  if (ieta < 22) tetMask_[ieta] = true;
33 }
void L1GctChannelMask::maskTotalHt ( unsigned  ieta)

mask eta range from total Ht sum

Definition at line 41 of file L1GctChannelMask.cc.

References htMask_.

Referenced by L1GctConfigProducers::produceChanMask().

41  {
42  if (ieta < 22) htMask_[ieta] = true;
43 }
bool L1GctChannelMask::missingEtMask ( unsigned  ieta) const

Definition at line 69 of file L1GctChannelMask.cc.

References metMask_.

Referenced by operator<<(), and L1GctJetFinderBase::setEnergySumMasks().

69  {
70  if (ieta < 22) return metMask_[ieta];
71  else return true;
72 }
bool L1GctChannelMask::missingHtMask ( unsigned  ieta) const

Definition at line 81 of file L1GctChannelMask.cc.

References mhtMask_.

Referenced by operator<<(), and L1GctJetFinderBase::setEnergySumMasks().

81  {
82  if (ieta < 22) return mhtMask_[ieta];
83  else return true;
84 }
bool L1GctChannelMask::regionMask ( unsigned  ieta,
unsigned  iphi 
) const

get region masks

Definition at line 57 of file L1GctChannelMask.cc.

References regionMask_.

Referenced by operator<<(), and L1GlobalCaloTrigger::setRegion().

57  {
58  if (ieta < 22 && iphi < 18) { return regionMask_[ieta][iphi]; }
59  else return true;
60 }
bool regionMask_[22][18]
bool L1GctChannelMask::totalEtMask ( unsigned  ieta) const

Definition at line 63 of file L1GctChannelMask.cc.

References tetMask_.

Referenced by operator<<(), and L1GctJetFinderBase::setEnergySumMasks().

63  {
64  if (ieta < 22) return tetMask_[ieta];
65  else return true;
66 }
bool L1GctChannelMask::totalHtMask ( unsigned  ieta) const

Definition at line 75 of file L1GctChannelMask.cc.

References htMask_.

Referenced by operator<<(), and L1GctJetFinderBase::setEnergySumMasks().

75  {
76  if (ieta < 22) return htMask_[ieta];
77  else return true;
78 }

Member Data Documentation

L1GctChannelMask::COND_SERIALIZABLE
private

Definition at line 60 of file L1GctChannelMask.h.

bool L1GctChannelMask::emCrateMask_[18]
private

Definition at line 52 of file L1GctChannelMask.h.

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

bool L1GctChannelMask::htMask_[22]
private

Definition at line 56 of file L1GctChannelMask.h.

Referenced by L1GctChannelMask(), maskTotalHt(), and totalHtMask().

bool L1GctChannelMask::metMask_[22]
private

Definition at line 55 of file L1GctChannelMask.h.

Referenced by L1GctChannelMask(), maskMissingEt(), and missingEtMask().

bool L1GctChannelMask::mhtMask_[22]
private

Definition at line 57 of file L1GctChannelMask.h.

Referenced by L1GctChannelMask(), maskMissingHt(), and missingHtMask().

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

Definition at line 53 of file L1GctChannelMask.h.

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

bool L1GctChannelMask::tetMask_[22]
private

Definition at line 54 of file L1GctChannelMask.h.

Referenced by L1GctChannelMask(), maskTotalEt(), and totalEtMask().