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.

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 }

References emCrateMask_, htMask_, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, metMask_, mhtMask_, regionMask_, and tetMask_.

◆ ~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.

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

References emCrateMask_.

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

◆ maskEmCrate()

void L1GctChannelMask::maskEmCrate ( unsigned  crate)

mask EM candidates from an RCT crate

Definition at line 20 of file L1GctChannelMask.cc.

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

References emCrateMask_.

◆ maskMissingEt()

void L1GctChannelMask::maskMissingEt ( unsigned  ieta)

mask eta range from missing Et sum

Definition at line 35 of file L1GctChannelMask.cc.

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

References LEDCalibrationChannels::ieta, and metMask_.

Referenced by L1GctConfigProducers::produceChanMask().

◆ maskMissingHt()

void L1GctChannelMask::maskMissingHt ( unsigned  ieta)

mask eta range from missing Ht sum

Definition at line 45 of file L1GctChannelMask.cc.

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

References LEDCalibrationChannels::ieta, and mhtMask_.

Referenced by L1GctConfigProducers::produceChanMask().

◆ maskRegion()

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

mask a region

Definition at line 25 of file L1GctChannelMask.cc.

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

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

◆ maskTotalEt()

void L1GctChannelMask::maskTotalEt ( unsigned  ieta)

mask eta range from total Et sum

Definition at line 30 of file L1GctChannelMask.cc.

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

References LEDCalibrationChannels::ieta, and tetMask_.

Referenced by L1GctConfigProducers::produceChanMask().

◆ maskTotalHt()

void L1GctChannelMask::maskTotalHt ( unsigned  ieta)

mask eta range from total Ht sum

Definition at line 40 of file L1GctChannelMask.cc.

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

References htMask_, and LEDCalibrationChannels::ieta.

Referenced by L1GctConfigProducers::produceChanMask().

◆ missingEtMask()

bool L1GctChannelMask::missingEtMask ( unsigned  ieta) const

Definition at line 71 of file L1GctChannelMask.cc.

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

References LEDCalibrationChannels::ieta, and metMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

◆ missingHtMask()

bool L1GctChannelMask::missingHtMask ( unsigned  ieta) const

Definition at line 85 of file L1GctChannelMask.cc.

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

References LEDCalibrationChannels::ieta, and mhtMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

◆ regionMask()

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

get region masks

Definition at line 57 of file L1GctChannelMask.cc.

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

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

Referenced by L1GlobalCaloTrigger::setRegion().

◆ 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.

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

References LEDCalibrationChannels::ieta, and tetMask_.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

◆ totalHtMask()

bool L1GctChannelMask::totalHtMask ( unsigned  ieta) const

Definition at line 78 of file L1GctChannelMask.cc.

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

References htMask_, and LEDCalibrationChannels::ieta.

Referenced by L1GctJetFinderBase::setEnergySumMasks().

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().

L1GctChannelMask::emCrateMask_
bool emCrateMask_[18]
Definition: L1GctChannelMask.h:51
mps_fire.i
i
Definition: mps_fire.py:355
L1GctChannelMask::mhtMask_
bool mhtMask_[22]
Definition: L1GctChannelMask.h:56
L1GctChannelMask::metMask_
bool metMask_[22]
Definition: L1GctChannelMask.h:54
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
L1GctChannelMask::regionMask_
bool regionMask_[22][18]
Definition: L1GctChannelMask.h:52
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
L1GctChannelMask::tetMask_
bool tetMask_[22]
Definition: L1GctChannelMask.h:53
L1GctChannelMask::htMask_
bool htMask_[22]
Definition: L1GctChannelMask.h:55