35 event.getByToken(static_cast<const CaloTokens*>(toks)->getCaloRegionToken(), caloregion);
38 event.getByToken(static_cast<const CaloTokens*>(toks)->getCaloEmCandToken(), caloemcand);
40 std::vector<uint32_t>
load[36];
42 for (
int i = 0;
i <= 0; ++
i) {
45 for (
auto j = caloregion->begin();
j != caloregion->end(); ++
j, ++
n) {
48 int overFlow=(int)
j->overFlow();
49 int fineGrain=(int)
j->fineGrain();
50 int mip=(int)
j->mip();
51 bool tauveto=
j->tauVeto();
54 int rctCrate=(int)
j->rctCrate();
55 int rctCard=(int)
j->rctCard();
56 int rctRegion=(int)
j->rctRegionIndex();
57 bool isHf=(bool)
j->isHf();
60 converter[rctCrate].
SetRCEt(et,rctCard,rctRegion);
61 converter[rctCrate].
SetRCOf(overFlow,rctCard,rctRegion);
62 converter[rctCrate].
SetRCTau(tauveto,rctCard,rctRegion);
63 converter[rctCrate].
SetRCHad(mip,rctCard,rctRegion);
64 LogDebug(
"L1T")<<
"CRATE"<<rctCrate<<
"region="<<rctRegion<<
", card="<<rctCard<<
", rgnEt="<<et<<
", overflow="<<overFlow<<
", tauveto="<<tauveto<<
", hadveto="<<mip<<std::endl;
68 converter[rctCrate].
SetHFEt(et,rctRegion);
69 converter[rctCrate].
SetHFFg(fineGrain,rctRegion);
70 LogDebug(
"L1T")<<
"CRATE"<<rctCrate<<
"region="<<rctRegion<<
", rgnEt="<<et<<std::endl;
76 for (
auto j = caloemcand->begin();
j != caloemcand->end(); ++
j, ++
m) {
78 int rank=(int)
j->rank();
80 int rctCrate=(int)
j->rctCrate();
81 bool isolated=(bool)
j->isolated();
82 int rctCard=(int)
j->rctCard();
83 int rctRegion=(int)
j->rctRegion();
86 converter[rctCrate].
SetIEEt(rank,index);
87 converter[rctCrate].
SetIEReg(rctRegion,index);
88 converter[rctCrate].
SetIECard(rctCard,index);
89 LogDebug(
"L1T")<<
"CRATE"<<rctCrate<<
"ISO em rank="<<rank<<
", region="<<rctRegion<<
", card="<<rctCard<<std::endl;
92 converter[rctCrate].
SetNEEt(rank,index);
93 converter[rctCrate].
SetNEReg(rctRegion,index);
94 converter[rctCrate].
SetNECard(rctCard,index);
95 LogDebug(
"L1T")<<
"CRATE"<<rctCrate<<
"NON ISO em rank="<<rank<<
", region="<<rctRegion<<
", card="<<rctCard<<std::endl;
101 for (
int d=0;
d<6;
d++){
102 load[2*
in].push_back((uint32_t)converter[
in].Get32bitWordLinkEven(
d));
103 load[2*
in+1].push_back((uint32_t)converter[
in].Get32bitWordLinkOdd(
d));
112 for (
int i = 0;
i < 36; ++
i) {
113 unsigned int mycrateRCT=(int)(
i/2);
115 if (
i%2==0) myRCTeven=
true;
116 else myRCTeven=
false;
118 database.
GetLinkMP7(mycrateRCT,myRCTeven,linkMP7);
119 res.push_back(
Block(2*linkMP7, load[
i], 0));
120 res.push_back(
Block(2*linkMP7, load[i], 1));
void SetNEReg(int value, int cand)
void GetLinkMP7(unsigned int RCTcrate, bool RCTeven, int &linkMP7)
void SetNEEt(int value, int cand)
void SetRCOf(int value, int card, int region)
void SetHFEt(int value, int region)
void SetIEReg(int value, int cand)
void SetRCTau(int value, int card, int region)
void SetNECard(int value, int cand)
std::vector< Block > Blocks
void SetRCEt(int value, int card, int region)
void SetHFFg(int value, int region)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void SetIECard(int value, int cand)
void SetRCHad(int value, int card, int region)
void SetIEEt(int value, int cand)
#define DEFINE_L1T_PACKER(type)
virtual Blocks pack(const edm::Event &, const PackerTokens *) override