Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77564
b: "refs/heads/CMSSW_7_1_X"
c: 4eff16c
h: "refs/heads/CMSSW_7_1_X"
v: v3
  • Loading branch information
Francesca Cavallari committed Nov 10, 2009
1 parent d5b7660 commit babe258
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 6e28964702a06f76a7f65a7a6358442f0418eac0
"refs/heads/CMSSW_7_1_X": 4eff16cc357716d19d1ca0fa5b833282f77b1267
10 changes: 7 additions & 3 deletions trunk/CondTools/Ecal/src/EcalTPGBadXTHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ void popcon::EcalTPGBadXTHandler::getNewObjects()
FEConfigMainInfo fe_main_info;
fe_main_info.setConfigTag(the_config_tag);
fe_main_info.setVersion(the_config_version);
std::cout << " version=" <<fe_main_info.getVersion()<< std::endl;


try{
std::cout << " before fetch config set" << std::endl;
econn-> fetchConfigSet(&fe_main_info);
Expand Down Expand Up @@ -212,7 +214,7 @@ void popcon::EcalTPGBadXTHandler::getNewObjects()
// logic id is 1011ssxxxx
// get SM id
int sm_num=0;
if(fed_id<=627 ) sm_num=fed_id-591-18;
if(fed_id<=627 ) sm_num=fed_id-609+18;
if(fed_id>627 ) sm_num=fed_id-627;

// get crystal id
Expand All @@ -222,13 +224,15 @@ void popcon::EcalTPGBadXTHandler::getNewObjects()

if(my_EcalLogicId[ixt].getID1()==fed_id && my_EcalLogicId[ixt].getID2()==tt_id
&& my_EcalLogicId[ixt].getID3()==xt_id ) {
//1011060504
int ecid= my_EcalLogicId[ixt].getLogicID();
xt_num=(ecid)-(101100+sm_num)*1000;
xt_num=(ecid)-(101100+sm_num)*10000;

}
}

std::cout<< " masking crystal "<<sm_num<<"/"<<xt_num<<" from fed/tt/xt"<<
fed_id<<"/"<<tt_id<<"/"<<xt_id<< endl;
EBDetId ebdetid(sm_num,xt_num,EBDetId::SMCRYSTALMODE);

badXt->setValue(ebdetid.rawId(),rd_badXt.getStatus());
Expand Down

0 comments on commit babe258

Please sign in to comment.