53 p_NumberLeading1 = parameter(
"InputWidth1").value();
54 p_NumberLeading2 = parameter(
"InputWidth2").value();
55 if(parameter(
"MaxTob1").
value() > 0) p_NumberLeading1 = parameter(
"MaxTob1").value();
56 if(parameter(
"MaxTob2").
value() > 0) p_NumberLeading2 = parameter(
"MaxTob2").value();
57 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
58 p_DeltaPhiMin[
i] = parameter(
"MinDeltaPhi",
i).value();
59 p_DeltaPhiMax[
i] = parameter(
"MaxDeltaPhi",
i).value();
60 p_MinET1[
i] = parameter(
"MinET1",
i).value();
61 p_MinET2[
i] = parameter(
"MinET2",
i).value();
75 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
76 std::string hname_accept =
"hDeltaPhiIncl2_accept_bit"+
std::to_string((
int)
i);
77 std::string hname_reject =
"hDeltaPhiIncl2_reject_bit"+
std::to_string((
int)
i);
79 bookHist(m_histAccept, hname_accept,
"DPHI", 100, p_DeltaPhiMin[
i], p_DeltaPhiMax[
i]);
80 bookHist(m_histReject, hname_reject,
"DPHI", 100, p_DeltaPhiMin[
i], p_DeltaPhiMax[
i]);
91 const std::vector<TCS::TOBArray *> &
output,
94 if(
input.size() == 2) {
95 std::vector<bool> iaccept (numberOutputBits());
104 unsigned int deltaPhi = calcDeltaPhiBW( *tob1, *tob2 );
105 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
107 if(
parType_t((*tob1)->Et()) <= p_MinET1[
i])
continue;
108 if(
parType_t((*tob2)->Et()) <= p_MinET2[
i])
continue;
110 const bool fillAccept = fillHistos() and (fillHistosBasedOnHardware() ? getDecisionHardwareBit(
i) :
accept);
111 const bool fillReject = fillHistos() and not fillAccept;
112 const bool alreadyFilled = decision.
bit(
i);
117 if(fillAccept and not alreadyFilled) {
119 }
else if(fillReject) {
123 << (
accept?
"pass":
"fail"));
136 const std::vector<TCS::TOBArray *> &
output,
139 if(
input.size() == 2) {
140 std::vector<bool> iaccept (numberOutputBits());
149 unsigned int deltaPhi = calcDeltaPhi( *tob1, *tob2 );
150 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
152 if(
parType_t((*tob1)->Et()) <= p_MinET1[
i])
continue;
153 if(
parType_t((*tob2)->Et()) <= p_MinET2[
i])
continue;
155 const bool fillAccept = fillHistos() and (fillHistosBasedOnHardware() ? getDecisionHardwareBit(
i) :
accept);
156 const bool fillReject = fillHistos() and not fillAccept;
157 const bool alreadyFilled = decision.
bit(
i);
162 if(fillAccept and not alreadyFilled) {
164 }
else if(fillReject) {
168 << (
accept?
"pass":
"fail"));