18 m_l1CaloTTIdTools(
"LVL1::L1CaloTTIdTools/L1CaloTTIdTools"),
19 m_cells2tt(
"LVL1::L1CaloCells2TriggerTowers/L1CaloCells2TriggerTowers", this),
20 m_ttSvc(
"CaloTriggerTowerService"),
21 m_scidtool (
"CaloSuperCellIDTool"),
24 m_tileBadChanTool(
"TileBadChanTool"),
25 m_rxMapTool(
"LVL1::L1CaloFcal23Cells2RxMappingTool/L1CaloFcal23Cells2RxMappingTool")
79 std::vector<int> location;
87 location.push_back(coolId.
id());
95 std::vector<L1CaloRxCoolChannelId> rx =
m_ttSvc->cnvCoolChannelIdToRxId(coolId);
97 std::vector<L1CaloRxCoolChannelId> output;
109 typedef std::vector<L1CaloRxCoolChannelId>::const_iterator Itr_Id;
110 std::vector<L1CaloRxCoolChannelId> rx2;
111 for(Itr_Id
a=rx.begin();
a!=rx.end();++
a){
112 if((*a).crate() == 2 || (*a).crate() == 3){
119 unsigned int inputA = rx2.at(0).inputConn();
120 unsigned int inputB = rx2.at(1).inputConn();
123 if(inputA == 2 && inputB == 0){
124 output.push_back(rx2.at(1));
125 output.push_back(rx2.at(0));
127 if(inputA == 0 && inputB == 2){
128 output.push_back(rx2.at(0));
129 output.push_back(rx2.at(1));
136 output.push_back(rx.at(0));
143 typedef std::vector<L1CaloRxCoolChannelId>::const_iterator Itr;
144 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
145 std::vector<unsigned int> output;
146 for(Itr
i=rx.begin();
i!=rx.end();++
i){
147 output.push_back( (*i).id() );
186 std::vector<int> location;
194 location.push_back(coolId.
id());
210 std::vector<L1CaloRxCoolChannelId> rx =
m_ttSvc->cnvCoolChannelIdToRxId(coolId);
212 std::vector<L1CaloRxCoolChannelId> output;
218 unsigned int inputPairA = rx.at(0).inputPair();
219 unsigned int inputPairB = rx.at(1).inputPair();
221 bool oddA(
false),oddB(
false);
222 if(inputPairA % 2 != 0){oddA =
true;}
223 if(inputPairB % 2 != 0){oddB =
true;}
225 if(oddA ==
true && oddB ==
false){
226 output.push_back(rx.at(0));
227 output.push_back(rx.at(1));
229 if(oddA ==
false && oddB ==
true){
230 output.push_back(rx.at(1));
231 output.push_back(rx.at(0));
236 output.push_back(rx.at(0));
244 typedef std::vector<L1CaloRxCoolChannelId>::const_iterator Itr;
245 std::vector<L1CaloRxCoolChannelId> rx = this->
hadReceivers(tt);
246 std::vector<unsigned int> output;
247 for(Itr
i=rx.begin();
i!=rx.end();++
i){
248 output.push_back( (*i).id() );
274 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
276 v.push_back((*i).size());
286 v.push_back((*i).size());
293 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
296 std::vector<std::vector<int> >
v;
297 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
299 if ((*i).empty())
continue;
300 if (rx.size() == 2) {
301 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortEMCrackCells((*
i));
303 if ((*j).empty())
continue;
304 if (j == cellsRx.begin()) v1.push_back((*j).size());
305 else v2.push_back((*j).size());
307 }
else if (rx.size() == 1) v1.push_back((*i).size());
310 if (rx.size() == 2)
v.push_back(
v2);
321 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
324 std::vector<std::vector<int> >
v;
325 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
327 if ((*i).empty())
continue;
328 if (rx.size() == 2) {
329 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortEMCrackCells((*
i));
331 if ((*j).empty())
continue;
332 if (j == cellsRx.begin()) v1.push_back(
m_cells2tt->layerNames((*j)[0]));
335 }
else if (rx.size() == 1) v1.push_back(
m_cells2tt->layerNames((*
i)[0]));
338 if (rx.size() == 2)
v.push_back(
v2);
349 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
350 std::vector<float> eByLayer;
360 std::vector<float> output;
361 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
366 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortEMCrackCells(cells);
372 if(rx.size() == 1 &&
mode == 0){
386 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
387 std::vector<float> eByLayer;
397 std::vector<float> output;
398 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
403 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortEMCrackCells(cells);
409 if(rx.size() == 1 &&
mode == 0){
418 std::vector<std::vector<const CaloCell*> > output;
419 std::vector<const CaloCell*> emb;
420 std::vector<const CaloCell*> emec;
428 emb.push_back( (*
i) );
431 emec.push_back( (*
i) );
435 output.push_back(emec);
436 output.push_back(emb);
456 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
458 v.push_back((*i).size());
464 std::vector<unsigned int> rx = this->
hadRxId(tt);
470 v.push_back((*i).size());
477 std::vector<unsigned int> rx = this->
hadRxId(tt);
480 std::vector<std::vector<int> >
v;
481 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
483 if ((*i).empty())
continue;
484 if (rx.size() == 2) {
485 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortFCAL23Cells((*
i),rx);
487 if ((*j).empty())
continue;
488 if (j == cellsRx.begin()) v1.push_back((*j).size());
489 else v2.push_back((*j).size());
491 }
else if (rx.size() == 1) v1.push_back((*i).size());
494 if (rx.size() == 2)
v.push_back(
v2);
505 std::vector<unsigned int> rx = this->
hadRxId(tt);
508 std::vector<std::vector<int> >
v;
509 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
511 if ((*i).empty())
continue;
512 if (rx.size() == 2) {
513 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortFCAL23Cells((*
i),rx);
515 if ((*j).empty())
continue;
516 if (j == cellsRx.begin()) v1.push_back(
m_cells2tt->layerNames((*j)[0]));
519 }
else if (rx.size() == 1) v1.push_back(
m_cells2tt->layerNames((*
i)[0]));
522 if (rx.size() == 2)
v.push_back(
v2);
533 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
534 std::vector<float> eByLayer;
544 std::vector<float> output;
545 std::vector<unsigned int> rx = this->
hadRxId(tt);
550 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortFCAL23Cells(cells,rx);
556 if(rx.size() == 1 &&
mode == 0){
570 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
571 std::vector<float> eByLayer;
582 std::vector<float> output;
583 std::vector<unsigned int> rx = this->
hadRxId(tt);
588 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortFCAL23Cells(cells,rx);
594 if(rx.size() == 1 &&
mode == 0){
605 IdTTL1CellMapType::const_iterator ttL1Cell(map.find(Id));
606 IdTTL1CellMapType::const_iterator ttL1Cell_E(map.end());
607 if(ttL1Cell != ttL1Cell_E){
608 return ((ttL1Cell->second)->eneTower()) * 1
e-3;
615 const double eta)
const{
616 std::vector<std::vector<const CaloCell*> > output;
618 std::vector<const CaloCell*> fcal2A;
619 std::vector<const CaloCell*> fcal2B;
620 std::vector<const CaloCell*> fcal3A;
621 std::vector<const CaloCell*> fcal3B;
622 double absEta = fabs(eta);
628 double cellEta = fabs(caloDDE->
eta_raw());
629 double x = fabs(caloDDE->
x_raw());
630 double y = fabs(caloDDE->
y_raw());
635 bool lowEta = (
absEta < 4.05 && cellEta < 3.3) || (
absEta > 4.05 && cellEta < 3.97);
637 if ((
x > 100. && x < 160. && y > 340. &&
y < 380.) ||
638 (
x > 320. &&
x < 360. &&
y > 170. &&
y < 210.) ||
639 (
x > 30. &&
x < 60. &&
y > 170. &&
y < 210.)) lowEta =
true;
640 if ((
x > 160. && x < 190. && y > 340. &&
y < 380.) ||
641 (
x > 230. &&
x < 260. &&
y > 300. &&
y < 340.) ||
642 (
x > 130. &&
x < 160. &&
y > 140. &&
y < 170.) ||
643 (
x > 160. &&
x < 200. &&
y > 90. &&
y < 140.)) lowEta =
false;
644 if (lowEta) fcal2A.push_back(*
i);
645 else fcal2B.push_back(*
i);
649 bool lowEta = (
absEta < 4.05 && cellEta < 3.43) || (
absEta > 4.05 && cellEta < 3.9);
651 double xs = caloDDE->
x_raw();
652 double ys = caloDDE->
y_raw();
653 if ((
x > 120. && x < 160. && y > 140. &&
y < 200.) ||
654 (
x > 160. &&
x < 220. &&
y > 100. &&
y < 140.) ||
655 (xs > 120. && xs < 160. && ys > -140. && ys < -100.) ||
656 (xs > -160. && xs < -100. && ys > 100. && ys < 140.)) lowEta =
true;
657 if ((
x > 0. && x < 60. && y > 380. &&
y < 420.) ||
658 (xs > 320. && xs < 370. && ys > 140. && ys < 190.) ||
659 (xs > -360. && xs < -320. && ys > -180. && ys < -140.)) lowEta =
false;
660 if (lowEta) fcal3A.push_back(*
i);
661 else fcal3B.push_back(*
i);
665 unsigned int size2A = fcal2A.size();
666 unsigned int size2B = fcal2B.size();
667 unsigned int size3A = fcal3A.size();
668 unsigned int size3B = fcal3B.size();
671 if(size2A > 0 && size2B > 0 && size3A == 0 && size3B == 0){
672 output.push_back(fcal2A);
673 output.push_back(fcal2B);
675 if(size2A == 0 && size2B == 0 && size3A > 0 && size3B > 0){
676 output.push_back(fcal3A);
677 output.push_back(fcal3B);
684 const std::vector<unsigned int>& rxId)
const{
687 std::vector<const CaloCell*> cellsA;
688 std::vector<const CaloCell*> cellsB;
690 std::vector<std::vector<const CaloCell*> > output;
693 unsigned int rxidA = rxId.at(0);
694 unsigned int rxidB = rxId.at(1);
698 unsigned int someRxId =
m_rxMapTool->offlineCell2RxId( (*i)->ID().get_identifier32().get_compact() );
699 if(someRxId == rxidA){cellsA.push_back(*
i);}
700 if(someRxId == rxidB){cellsB.push_back(*
i);}
702 output.push_back(cellsA);
703 output.push_back(cellsB);
714 const EventContext& ctx = Gaudi::Hive::currentContext();
718 float nonNominal(0.0);
729 float nonNominal(0.0);
739 const EventContext& ctx = Gaudi::Hive::currentContext();
749 if(
count < 1.0){
return 0.0;}
766 if((*i)->provenance() & 0x2000) {
767 nom += ((*i)->e() * (*i)->quality());
784 float nonNominal(0.0);
810 if (!tileCell)
return 0.0;
819 float score(0.0),multiplier(1.0);
820 bool adc1_noGainL1(
false),adc1_halfGainL1(
false);
821 bool pmt2Valid(
false),adc2_noGainL1(
false),adc2_halfGainL1(
false);
845 if(adc1_noGainL1 ==
true && adc1_halfGainL1 ==
true){adc1_halfGainL1 =
false;}
846 if(adc2_noGainL1 ==
true && adc2_halfGainL1 ==
true){adc2_halfGainL1 =
false;}
848 if(pmt2Valid ==
false){multiplier = 2.0;}
849 if(adc1_halfGainL1 ==
true){
score += 0.25;}
850 if(adc1_noGainL1 ==
true){
score += 0.5;}
851 if(adc2_halfGainL1 ==
true){
score += 0.25;}
852 if(adc2_noGainL1 ==
true){
score += 0.5;}
854 return score * multiplier;
862 if(tileCell && tileCell->
provenance() & 0x8080) {
893 std::vector<float> nNonNomHV;
897 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
905 std::vector<std::vector<float> > nNonNomHV;
908 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
909 std::vector<float> v1;
910 std::vector<float>
v2;
911 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
913 if ((*i).empty())
continue;
914 if (rx.size() == 2) {
915 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortEMCrackCells((*
i));
917 if ((*j).empty())
continue;
923 nNonNomHV.push_back(v1);
924 if (rx.size() == 2) nNonNomHV.push_back(
v2);
936 std::vector<float> NonNomHV;
939 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
949 std::vector<float> output;
951 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
956 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortEMCrackCells(cells);
963 output.push_back( this->
LArHVScale( cells ) );
970 std::vector<std::vector<float> > output;
973 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
974 std::vector<float> v1;
975 std::vector<float>
v2;
976 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
978 if ((*i).empty())
continue;
979 if (rx.size() == 2) {
980 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortEMCrackCells((*
i));
982 if ((*j).empty())
continue;
983 if (j == cellsRx.begin()) v1.push_back(this->
LArHVScale((*j)));
986 }
else if (rx.size() == 1) v1.push_back(this->
LArHVScale((*
i)));
988 output.push_back(v1);
989 if (rx.size() == 2) output.push_back(
v2);
1026 std::vector<float> nNonNomHV;
1029 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
1048 std::vector<std::vector<float> > nNonNomHV;
1052 std::vector<unsigned int> rx = this->
hadRxId(tt);
1053 std::vector<float> v1;
1054 std::vector<float>
v2;
1055 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
1057 if ((*i).empty())
continue;
1058 if (rx.size() == 2) {
1059 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortFCAL23Cells((*
i),rx);
1061 if ((*j).empty())
continue;
1062 if (j == cellsRx.begin()) v1.push_back( (isTile ==
false) ? this->
LArNonNominalHV((*j))
1067 }
else if (rx.size() == 1) v1.push_back( (isTile ==
false) ? this->
LArNonNominalHV((*
i))
1070 nNonNomHV.push_back(v1);
1071 if (rx.size() == 2) nNonNomHV.push_back(
v2);
1079 if(isTile ==
true){
return -9.9;}
1088 std::vector<float> NonNomHV;
1091 if(isTile ==
true){
return NonNomHV;}
1094 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
1104 std::vector<float> output;
1106 std::vector<unsigned int> rx = this->
hadRxId(tt);
1110 if(isTile ==
true){
return output;}
1115 std::vector<std::vector<const CaloCell*> > vvcells = this->
sortFCAL23Cells(cells,rx);
1122 output.push_back( this->
LArHVScale( cells ) );
1130 std::vector<std::vector<float> > output;
1134 std::vector<unsigned int> rx = this->
hadRxId(tt);
1135 std::vector<float> v1;
1136 std::vector<float>
v2;
1137 std::vector<std::vector<const CaloCell*> >
cells =
m_cells2tt->caloCellsByLayer(Id);
1139 if ((*i).empty())
continue;
1140 if (rx.size() == 2) {
1141 std::vector<std::vector<const CaloCell*> > cellsRx = this->
sortFCAL23Cells((*
i),rx);
1143 if ((*j).empty())
continue;
1144 if (j == cellsRx.begin()) v1.push_back(this->
LArHVScale((*j)));
1147 }
else if (rx.size() == 1) v1.push_back(this->
LArHVScale((*
i)));
1149 output.push_back(v1);
1150 if (rx.size() == 2) output.push_back(
v2);
1173 std::vector<int> output;
1174 std::map<int, std::vector<const CaloCell*> > sc_ids;
1180 for(std::map<
int, std::vector<const CaloCell*> >::const_iterator
i=sc_ids.begin();
i!=sc_ids.end();++
i){
1181 output.push_back( (*i).first );
1196 for(Itr_db
i=dbAttrList->
begin();
i!=dbAttrList->
end();++
i){
1197 if(
i->first == coolId){
1198 attrList = &(
i->second);
1208 std::vector<L1CaloRxCoolChannelId> rx = this->
emReceivers(tt);
1209 std::vector<const coral::AttributeList*> v_attr;
1211 typedef std::vector<L1CaloRxCoolChannelId>::const_iterator Itr_Id;
1213 for(Itr_Id
a=rx.begin();
a!=rx.end();++
a){
1214 for(Itr_db
i=dbAttrList->
begin();
i!=dbAttrList->
end();++
i){
1215 if(
i->first == (*a).id()){
1216 v_attr.push_back( &(
i->second) );
1229 for(Itr_db
i=dbAttrList->
begin();
i!=dbAttrList->
end();++
i){
1230 if(
i->first == coolId){
1231 attrList = &(
i->second);
1240 std::vector<L1CaloRxCoolChannelId> rx = this->
hadReceivers(tt);
1241 std::vector<const coral::AttributeList*> v_attr;
1243 typedef std::vector<L1CaloRxCoolChannelId>::const_iterator Itr_Id;
1245 for(Itr_Id
a=rx.begin();
a!=rx.end();++
a){
1246 for(Itr_db
i=dbAttrList->
begin();
i!=dbAttrList->
end();++
i){
1247 if(
i->first == (*a).id()){
1248 v_attr.push_back( &(
i->second) );
1264 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1265 if((*attrList)[attrNum].specification().
name() ==
"gain"){
1266 value = (
float) (*attrList)[attrNum].data<
float>();
1274 unsigned int value = 0;
1275 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1276 if((*attrList)[attrNum].specification().
name() ==
"status"){
1277 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1286 unsigned int value = 0;
1287 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1288 if((*attrList)[attrNum].specification().
name() ==
"ModuleId"){
1289 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1297 unsigned int value = 0;
1298 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1299 if((*attrList)[attrNum].specification().
name() ==
"ErrorCode"){
1300 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1308 unsigned long long value = 0;
1309 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1310 if((*attrList)[attrNum].specification().
name() ==
"PprDacScanResultsTimeStamp"){
1311 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1319 unsigned long long value = 0;
1320 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1321 if((*attrList)[attrNum].specification().
name() ==
"PprPedestalRunResultsTimeStamp"){
1322 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1330 unsigned long long value = 0;
1331 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1332 if((*attrList)[attrNum].specification().
name() ==
"PprNoiseRunResultsTimeStamp"){
1333 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1341 unsigned long long value = 0;
1342 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1343 if((*attrList)[attrNum].specification().
name() ==
"PprTimingResultsTimeStamp"){
1344 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1352 unsigned long long value = 0;
1353 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1354 if((*attrList)[attrNum].specification().
name() ==
"PprSatBcidResultsTimeStamp"){
1355 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1363 unsigned long long value = 0;
1364 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1365 if((*attrList)[attrNum].specification().
name() ==
"PprFirFilterResultsTimeStamp"){
1366 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1374 unsigned long long value = 0;
1375 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1376 if((*attrList)[attrNum].specification().
name() ==
"PprLutValuesResultsTimeStamp"){
1377 value = (
unsigned long long) (*attrList)[attrNum].data<
unsigned long long>();
1386 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1387 if((*attrList)[attrNum].specification().
name() ==
"DacOffset"){
1388 value = (
double) (*attrList)[attrNum].data<
double>();
1397 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1398 if((*attrList)[attrNum].specification().
name() ==
"DacSlope"){
1399 value = (
double) (*attrList)[attrNum].data<
double>();
1408 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1409 if((*attrList)[attrNum].specification().
name() ==
"PedMean"){
1410 value = (
double) (*attrList)[attrNum].data<
double>();
1418 unsigned int value = 0;
1419 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1420 if((*attrList)[attrNum].specification().
name() ==
"PedValue"){
1421 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1429 unsigned int value = 0;
1430 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1431 if((*attrList)[attrNum].specification().
name() ==
"FullDelayData"){
1432 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1440 unsigned short int value = 0;
1441 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1442 if((*attrList)[attrNum].specification().
name() ==
"SyncDelayBcid"){
1443 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1452 unsigned short int value = 0;
1453 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1454 if((*attrList)[attrNum].specification().
name() ==
"InBcidNegedge"){
1455 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1464 unsigned short int value = 0;
1465 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1466 if((*attrList)[attrNum].specification().
name() ==
"ExtBcidThreshold"){
1467 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1475 unsigned short int value = 0;
1476 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1477 if((*attrList)[attrNum].specification().
name() ==
"SatBcidThreshLow"){
1478 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1486 unsigned short int value = 0;
1487 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1488 if((*attrList)[attrNum].specification().
name() ==
"SatBcidThreshHigh"){
1489 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1497 unsigned short int value = 0;
1498 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1499 if((*attrList)[attrNum].specification().
name() ==
"SatBcidLevel"){
1500 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1508 unsigned short int value = 0;
1509 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1510 if((*attrList)[attrNum].specification().
name() ==
"BcidEnergyRangeLow"){
1511 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1519 unsigned short int value = 0;
1520 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1521 if((*attrList)[attrNum].specification().
name() ==
"BcidEnergyRangeHigh"){
1522 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1530 unsigned short int value = 0;
1531 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1532 if((*attrList)[attrNum].specification().
name() ==
"FirStartBit"){
1533 value = (
unsigned short int) (*attrList)[attrNum].data<
unsigned short int>();
1542 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1543 if((*attrList)[attrNum].specification().
name() ==
"FirCoeff1"){
1544 value = (
short) (*attrList)[attrNum].data<
short>();
1553 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1554 if((*attrList)[attrNum].specification().
name() ==
"FirCoeff2"){
1555 value = (
short) (*attrList)[attrNum].data<
short>();
1564 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1565 if((*attrList)[attrNum].specification().
name() ==
"FirCoeff3"){
1566 value = (
short) (*attrList)[attrNum].data<
short>();
1575 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1576 if((*attrList)[attrNum].specification().
name() ==
"FirCoeff4"){
1577 value = (
short) (*attrList)[attrNum].data<
short>();
1586 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1587 if((*attrList)[attrNum].specification().
name() ==
"FirCoeff5"){
1588 value = (
short) (*attrList)[attrNum].data<
short>();
1596 unsigned short value = 0;
1597 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1598 if((*attrList)[attrNum].specification().
name() ==
"LutStrategy"){
1599 value = (
unsigned short) (*attrList)[attrNum].data<
unsigned short>();
1607 unsigned short value = 0;
1608 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1609 if((*attrList)[attrNum].specification().
name() ==
"LutOffset"){
1610 value = (
unsigned short) (*attrList)[attrNum].data<
unsigned short>();
1618 unsigned short value = 0;
1619 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1620 if((*attrList)[attrNum].specification().
name() ==
"LutSlope"){
1621 value = (
unsigned short) (*attrList)[attrNum].data<
unsigned short >();
1629 unsigned short value = 0;
1630 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1631 if((*attrList)[attrNum].specification().
name() ==
"LutNoiseCut"){
1632 value = (
unsigned short) (*attrList)[attrNum].data<
unsigned short>();
1642 unsigned int value = 0;
1643 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1644 if((*attrList)[attrNum].specification().
name() ==
"disabledBits"){
1645 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1655 unsigned int value = 0;
1656 for(
unsigned int attrNum=0;attrNum<attrList->size();attrNum++){
1657 if((*attrList)[attrNum].specification().
name() ==
"ErrorCode"){
1658 value = (
unsigned int) (*attrList)[attrNum].data<
unsigned int>();
1696 ATH_MSG_INFO(
"L1Calo L1CaloOfflineTriggerTowerTools initialize() success!");
1697 return StatusCode::SUCCESS;
1701 return StatusCode::SUCCESS;