CMS 3D CMS Logo

L1GctRegion.cc

Go to the documentation of this file.
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   //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00006     //                                          ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, bx) )
00007 // For 21X compatibility, use old-style L1CaloRegion constructor.
00008 // For 30X, the bx argument can be included in the ctor so no need to setBx() explicitly
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 //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et),
00018 //                                              ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, 0) )
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 //   L1CaloRegion( L1CaloRegion::makeGctJetRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()),
00027 //                                              r.overFlow(), r.fineGrain(), r.gctEta(), r.gctPhi(), r.bx()) )
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 }

Generated on Tue Jun 9 17:40:11 2009 for CMSSW by  doxygen 1.5.4