40 int firstBX = -(ceil((
double)nBX/2.)-1);
43 lastBX = ceil((
double)nBX/2.)+1;
45 lastBX = ceil((
double)nBX/2.);
49 resRCTRegions_->setBXRange(
std::min(firstBX, resRCTRegions_->getFirstBX()),
std::max(lastBX, resRCTRegions_->getLastBX()));
53 std::vector <uint32_t> uint;
56 for (
int bx=firstBX; bx<lastBX; bx++){
66 uint.push_back(block.
payload()[i++]);
67 uint.push_back(block.
payload()[i++]);
68 uint.push_back(block.
payload()[i++]);
69 uint.push_back(block.
payload()[i++]);
70 uint.push_back(block.
payload()[i++]);
71 uint.push_back(block.
payload()[i++]);
73 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
80 for(
int j = 0;
j < 8;
j++) {
82 unsigned int hfet=(
unsigned int)converter.
GetHFEt(
j);
84 std::cout <<
"region HF ="<<
j<<
"="<<hfet<<std::endl;
86 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
88 resRCTRegions_->push_back(bx,region);
98 for(
int j = 0;
j < 7;
j++) {
99 for(
int k = 0;
k < 2;
k++) {
101 unsigned int RCet=(
unsigned int)converter.
GetRCEt(
j,
k);
102 bool overflow=(bool)converter.
GetRCOf(
j,
k);
107 LogDebug(
"L1T") <<
"region="<<
j<<
", card="<<
k<<
", rgnEt="<<RCet<<
", overflow="<<overflow<<
", tauveto="<<tauveto<<
", hadveto="<<hadveto<<std::endl;
109 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
111 resRCTRegions_->push_back(bx,region);
int GetRCTau(int card, int region)
unsigned et() const
get Et
unsigned ieta() const
global eta index (0-21)
BlockHeader header() const
L1CaloRegionDetId id() const
get global region ID
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
void Set32bitWordLinkEven(int index, uint32_t value)
int GetRCHad(int card, int region)
void GetLinkRCT(int linkMP7, unsigned int &RCTcrate, bool &RCTeven)
int GetRCEt(int card, int region)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
void Set32bitWordLinkOdd(int index, uint32_t value)
A calorimeter trigger region (sum of 4x4 trigger towers)
unsigned iphi() const
global phi index (0-17)
int GetRCOf(int card, int region)