40 int firstBX = -(ceil((
double)nBX/2.)-1);
43 lastBX = ceil((
double)nBX/2.)+1;
45 lastBX = ceil((
double)nBX/2.);
49 resRCTEMCands_->setBXRange(
std::min(firstBX, resRCTEMCands_->getFirstBX()),
std::max(lastBX, resRCTEMCands_->getLastBX()));
54 for (
int bx=firstBX; bx<lastBX; bx++){
59 std::vector <uint32_t> uint;
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++]);
72 uint.push_back(block.
payload()[i++]);
74 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
78 for(
int j = 0;
j < 4;
j++) {
83 unsigned int rank=(
unsigned int)converter.
GetNEEt(
j);
84 unsigned int reg=(
unsigned int)converter.
GetNEReg(
j);
85 unsigned int card=(
unsigned int)converter.
GetNECard(
j);
87 LogDebug(
"L1T") <<
"index="<<
j<<
", neRank="<<rank<<
", neRegn="<<reg<<
", neCard="<<card<<std::endl;
89 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
91 EmCand.setHwIso((
int) em.
isolated());
92 resRCTEMCands_->push_back(bx,EmCand);
95 for(
int j = 0;
j < 4;
j++) {
100 unsigned int rank=converter.
GetIEEt(
j);
104 LogDebug(
"L1T") <<
"index="<<
j<<
", neRank="<<rank<<
", neRegn="<<reg<<
", neCard="<<card<<std::endl;
106 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > *
p4 =
new ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >();
108 EmCand.setHwIso((
int) em.
isolated());
109 resRCTEMCands_->push_back(bx,EmCand);
unsigned ieta() const
global eta index (0-21)
BlockHeader header() const
Level-1 Region Calorimeter Trigger EM candidate.
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
void Set32bitWordLinkEven(int index, uint32_t value)
L1CaloRegionDetId regionId() const
get DetID object
bool isolated() const
which stream did this come from
unsigned rank() const
get rank bits
void GetLinkRCT(int linkMP7, unsigned int &RCTcrate, bool &RCTeven)
void Set32bitWordLinkOdd(int index, uint32_t value)
unsigned iphi() const
global phi index (0-17)