L1GctChannelMask

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
#ifndef L1TObjects_L1GctChannelMask_h
#define L1TObjects_L1GctChannelMask_h

#include "CondFormats/Serialization/interface/Serializable.h"

#include <ostream>

class L1GctChannelMask {
public:
  /// default constructor sets all masks to false
  L1GctChannelMask();
  ~L1GctChannelMask() {}

  /// mask EM candidates from an RCT crate
  void maskEmCrate(unsigned crate);

  /// mask a region
  void maskRegion(unsigned ieta, unsigned iphi);

  /// mask eta range from total Et sum
  void maskTotalEt(unsigned ieta);

  /// mask eta range from missing Et sum
  void maskMissingEt(unsigned ieta);

  /// mask eta range from total Ht sum
  void maskTotalHt(unsigned ieta);

  /// mask eta range from missing Ht sum
  void maskMissingHt(unsigned ieta);

  /// get EM masks for an RCT crate
  bool emCrateMask(unsigned crate) const;

  /// get region masks
  bool regionMask(unsigned ieta, unsigned iphi) const;

  // get total Et masks
  bool totalEtMask(unsigned ieta) const;

  // get missing Et masks
  bool missingEtMask(unsigned ieta) const;

  // get total Ht masks
  bool totalHtMask(unsigned ieta) const;

  // get missing Ht masks
  bool missingHtMask(unsigned ieta) const;

private:
  bool emCrateMask_[18];     // mask EM from RCT crate[n]
  bool regionMask_[22][18];  // mask region[ieta][iphi]
  bool tetMask_[22];
  bool metMask_[22];
  bool htMask_[22];
  bool mhtMask_[22];

  COND_SERIALIZABLE;
};

std::ostream& operator<<(std::ostream& os, const L1GctChannelMask obj);

#endif