Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "DataFormats/EgammaReco/interface/EgammaTrigger.h"
using namespace reco;

EgammaTrigger::EgammaTrigger(bool matchL1Single, bool matchL1Double, bool matchL1RelaxedDouble, bool matchIsolatedL1)
    : l1word_(0) {
  if (matchL1Single)
    l1word_ |= 1 << egamma::L1Single;
  if (matchL1Double)
    l1word_ |= 1 << egamma::L1Double;
  if (matchL1RelaxedDouble)
    l1word_ |= 1 << egamma::L1RelaxedDouble;
  if (matchIsolatedL1)
    l1word_ |= 1 << egamma::IsolatedL1;
}