23 event.getByToken(static_cast<const CaloTokens*>(toks)->getCaloRegionToken(), caloregion);
26 event.getByToken(static_cast<const CaloTokens*>(toks)->getCaloEmCandToken(), caloemcand);
28 std::vector<uint32_t>
load[36];
30 for (
int i = 0;
i <= 0; ++
i) {
33 for (
auto j = caloregion->begin();
j != caloregion->end(); ++
j, ++
n) {
35 int overFlow = (
int)
j->overFlow();
36 int fineGrain = (
int)
j->fineGrain();
37 int mip = (
int)
j->mip();
38 bool tauveto =
j->tauVeto();
41 int rctCrate = (
int)
j->rctCrate();
42 int rctCard = (
int)
j->rctCard();
43 int rctRegion = (
int)
j->rctRegionIndex();
44 bool isHf = (
bool)
j->isHf();
47 converter[rctCrate].SetRCEt(
et, rctCard, rctRegion);
48 converter[rctCrate].SetRCOf(overFlow, rctCard, rctRegion);
49 converter[rctCrate].SetRCTau(tauveto, rctCard, rctRegion);
50 converter[rctCrate].SetRCHad(mip, rctCard, rctRegion);
51 LogDebug(
"L1T") <<
"CRATE" << rctCrate <<
"region=" << rctRegion <<
", card=" << rctCard <<
", rgnEt=" <<
et 52 <<
", overflow=" << overFlow <<
", tauveto=" << tauveto <<
", hadveto=" << mip << std::endl;
56 converter[rctCrate].SetHFFg(fineGrain, rctRegion);
57 LogDebug(
"L1T") <<
"CRATE" << rctCrate <<
"region=" << rctRegion <<
", rgnEt=" <<
et << std::endl;
62 for (
auto j = caloemcand->begin();
j != caloemcand->end(); ++
j, ++
m) {
63 int rank = (
int)
j->rank();
65 int rctCrate = (
int)
j->rctCrate();
66 bool isolated = (
bool)
j->isolated();
67 int rctCard = (
int)
j->rctCard();
68 int rctRegion = (
int)
j->rctRegion();
74 LogDebug(
"L1T") <<
"CRATE" << rctCrate <<
"ISO em rank=" << rank <<
", region=" << rctRegion
75 <<
", card=" << rctCard << std::endl;
80 LogDebug(
"L1T") <<
"CRATE" << rctCrate <<
"NON ISO em rank=" << rank <<
", region=" << rctRegion
81 <<
", card=" << rctCard << std::endl;
85 for (
int in = 0;
in < 18;
in++) {
87 for (
int d = 0;
d < 6;
d++) {
98 for (
int i = 0;
i < 36; ++
i) {
99 unsigned int mycrateRCT = (
int)(
i / 2);
106 database.
GetLinkMP7(mycrateRCT, myRCTeven, linkMP7);
void GetLinkMP7(unsigned int RCTcrate, bool RCTeven, int &linkMP7)
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)
Blocks pack(const edm::Event &, const PackerTokens *) override