LOG(INFO)<<GREEN<<"Enabling Test Group...."<<cTGroup.first<<RESET;
setOffset(fTargetOffset,cTGroup.first,true);// takes the group ID
//updateHists ( "Offsets" );
// looping over the test groups, enable it
LOG(INFO)<<GREEN<<"Enabling Test Group...."<<cTGroup.first<<RESET;
setOffset(fTargetOffset,cTGroup.first,true);// takes the group ID
//updateHists ( "Offsets" );
bitwiseVplus(cTGroup.first);
bitwiseVplus(cTGroup.first);
LOG(INFO)<<RED<<"Disabling Test Group...."<<cTGroup.first<<RESET;
uint8_tcOffset=(fHoleMode)?0x00:0xFF;
setOffset(cOffset,cTGroup.first,true);
LOG(INFO)<<RED<<"Disabling Test Group...."<<cTGroup.first<<RESET;
uint8_tcOffset=(fHoleMode)?0x00:0xFF;
setOffset(cOffset,cTGroup.first,true);
// done looping all the bits - I should now have the Vplus value that corresponds to 50% occupancy at the desired VCth and Offset for this test group mapped against CBC
cTmpProfile->Fill(cTGroup.first,cCbc.second);// fill Vplus value for each test group
}
// done looping all the bits - I should now have the Vplus value that corresponds to 50% occupancy at the desired VCth and Offset for this test group mapped against CBC
// instead of the code below, use a histogram to histogram the noise
if(cChan.getNoise()==0||cChan.getNoise()>1023)LOG(INFO)<<RED<<"Error, SCurve Fit for Fe "<<int(cCbc.first->getFeId())<<" Cbc "<<int(cCbc.first->getCbcId())<<" Channel "<<int(cChan.fChannelId)<<" did not work correctly! Noise "<<cChan.getNoise()<<RESET;
cPedeHist->Fill(cChan.getPedestal());
}
cMeanPedestal+=cPedeHist->GetMean();
LOG(INFO)<<BOLDRED<<"Average untuned pedestal for Fe "<<+cCbc.first->getFeId()<<" Cbc "<<+cCbc.first->getCbcId()<<" : "<<cPedeHist->GetMean()<<" Vcth units!"<<RESET;