CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

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

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 8 of file L1GctChannelMask.h.

Constructor & Destructor Documentation

◆ L1GctChannelMask()

L1GctChannelMask::L1GctChannelMask ( )

default constructor sets all masks to false

Definition at line 3 of file L1GctChannelMask.cc.

References emCrateMask_, htMask_, mps_fire::i, hcalRecHitTable_cff::ieta, hcalRecHitTable_cff::iphi, 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 }
bool regionMask_[22][18]

◆ ~L1GctChannelMask()

L1GctChannelMask::~L1GctChannelMask ( )
inline

Definition at line 12 of file L1GctChannelMask.h.

12 {}

Member Function Documentation

◆ emCrateMask()

bool L1GctChannelMask::emCrateMask ( unsigned  crate) const

get EM masks for an RCT crate

Definition at line 50 of file L1GctChannelMask.cc.

References emCrateMask_.

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

50  {
51  if (crate < 18) {
52  return emCrateMask_[crate];
53  } else
54  return true;
55 }

◆ maskEmCrate()

void L1GctChannelMask::maskEmCrate ( unsigned  crate)

mask EM candidates from an RCT crate

Definition at line 20 of file L1GctChannelMask.cc.

References emCrateMask_.

20  {
21  if (crate < 18)
22  emCrateMask_[crate] = true;
23 }

◆ maskMissingEt()

void L1GctChannelMask::maskMissingEt ( unsigned  ieta)

mask eta range from missing Et sum

Definition at line 35 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and metMask_.

35  {
36  if (ieta < 22)
37  metMask_[ieta] = true;
38 }

◆ maskMissingHt()

void L1GctChannelMask::maskMissingHt ( unsigned  ieta)

mask eta range from missing Ht sum

Definition at line 45 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and mhtMask_.

45  {
46  if (ieta < 22)
47  mhtMask_[ieta] = true;
48 }

◆ maskRegion()

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

mask a region

Definition at line 25 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, hcalRecHitTable_cff::iphi, and regionMask_.

25  {
26  if (ieta < 22 && iphi < 18)
27  regionMask_[ieta][iphi] = true;
28 }
bool regionMask_[22][18]

◆ maskTotalEt()

void L1GctChannelMask::maskTotalEt ( unsigned  ieta)

mask eta range from total Et sum

Definition at line 30 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and tetMask_.

30  {
31  if (ieta < 22)
32  tetMask_[ieta] = true;
33 }

◆ maskTotalHt()

void L1GctChannelMask::maskTotalHt ( unsigned  ieta)

mask eta range from total Ht sum

Definition at line 40 of file L1GctChannelMask.cc.

References htMask_, and hcalRecHitTable_cff::ieta.

40  {
41  if (ieta < 22)
42  htMask_[ieta] = true;
43 }

◆ missingEtMask()

bool L1GctChannelMask::missingEtMask ( unsigned  ieta) const

Definition at line 71 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and metMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

71  {
72  if (ieta < 22)
73  return metMask_[ieta];
74  else
75  return true;
76 }

◆ missingHtMask()

bool L1GctChannelMask::missingHtMask ( unsigned  ieta) const

Definition at line 85 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and mhtMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

85  {
86  if (ieta < 22)
87  return mhtMask_[ieta];
88  else
89  return true;
90 }

◆ regionMask()

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

get region masks

Definition at line 57 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, hcalRecHitTable_cff::iphi, and regionMask_.

Referenced by L1GlobalCaloTrigger::setRegion().

57  {
58  if (ieta < 22 && iphi < 18) {
59  return regionMask_[ieta][iphi];
60  } else
61  return true;
62 }
bool regionMask_[22][18]

◆ serialize()

template<class Archive >
void L1GctChannelMask::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ totalEtMask()

bool L1GctChannelMask::totalEtMask ( unsigned  ieta) const

Definition at line 64 of file L1GctChannelMask.cc.

References hcalRecHitTable_cff::ieta, and tetMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

64  {
65  if (ieta < 22)
66  return tetMask_[ieta];
67  else
68  return true;
69 }

◆ totalHtMask()

bool L1GctChannelMask::totalHtMask ( unsigned  ieta) const

Definition at line 78 of file L1GctChannelMask.cc.

References htMask_, and hcalRecHitTable_cff::ieta.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

78  {
79  if (ieta < 22)
80  return htMask_[ieta];
81  else
82  return true;
83 }

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 58 of file L1GctChannelMask.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 58 of file L1GctChannelMask.h.

Member Data Documentation

◆ emCrateMask_

bool L1GctChannelMask::emCrateMask_[18]
private

Definition at line 51 of file L1GctChannelMask.h.

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

◆ htMask_

bool L1GctChannelMask::htMask_[22]
private

Definition at line 55 of file L1GctChannelMask.h.

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

◆ metMask_

bool L1GctChannelMask::metMask_[22]
private

Definition at line 54 of file L1GctChannelMask.h.

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

◆ mhtMask_

bool L1GctChannelMask::mhtMask_[22]
private

Definition at line 56 of file L1GctChannelMask.h.

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

◆ regionMask_

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

Definition at line 52 of file L1GctChannelMask.h.

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

◆ tetMask_

bool L1GctChannelMask::tetMask_[22]
private

Definition at line 53 of file L1GctChannelMask.h.

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