00001 #include "L1Trigger/GlobalCaloTrigger/interface/L1GctRegion.h"
00002
00003 L1GctRegion::L1GctRegion(const unsigned et, const bool overFlow, const bool fineGrain,
00004 const unsigned ieta, const unsigned iphi, const int16_t bx) :
00005
00006
00007
00008
00009 L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00010 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi)
00011 {
00012 this->setBx(bx);
00013 }
00014
00015 L1GctRegion::L1GctRegion(const unsigned et, const bool overFlow, const bool fineGrain,
00016 const unsigned ieta, const unsigned iphi) :
00017
00018
00019 L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00020 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi)
00021 {
00022 this->setBx(0);
00023 }
00024
00025 L1GctRegion::L1GctRegion(const L1CaloRegion& r) :
00026
00027
00028 L1CaloRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()),
00029 r.overFlow(), r.fineGrain(), false, false, r.gctEta(), r.gctPhi())
00030 {
00031 this->setBx(r.bx());
00032 }
00033
00034 L1GctRegion::L1GctRegion() : L1CaloRegion()
00035 {
00036 this->setBx(0);
00037 }
00038
00039 L1GctRegion::~L1GctRegion()
00040 {
00041 }