Skip to content
Snippets Groups Projects
Commit f3673be6 authored by Emily Anne Thompson's avatar Emily Anne Thompson
Browse files

Migrate RPVLLTestRates to use DataHandles

parent 263909b5
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39666Migrate LongLivedParticleDPDMaker to R22
...@@ -61,13 +61,12 @@ StatusCode RPVLLTestRates::execute() { ...@@ -61,13 +61,12 @@ StatusCode RPVLLTestRates::execute() {
if (m_EventCounter==0) { if (m_EventCounter==0) {
////////// first event! //////////////////////// ////////// first event! ////////////////////////
const SkimDecisionCollection *SDcoll = 0; SG::ReadHandle<SkimDecisionCollection> SDcoll("StreamDESDM_RPVLL_SkimDecisionsContainer");
StatusCode sc = evtStore()->retrieve(SDcoll, "StreamDESDM_RPVLL_SkimDecisionsContainer"); if (SDcoll.isValid()) {
if (sc.isSuccess()) {
std::cout<<"nick - booking skimPasshist"<<std::endl; std::cout<<"nick - booking skimPasshist"<<std::endl;
m_skimPassHist = new TH1F("skim","skim",SDcoll->size(), 0.,(float)SDcoll->size()); m_skimPassHist = new TH1F("skim","skim",SDcoll->size(), 0.,(float)SDcoll->size());
m_twoDskimHist = new TH2F("skim2D","skim",SDcoll->size(),0.,(float)SDcoll->size(),SDcoll->size(), 0.,(float)SDcoll->size()); m_twoDskimHist = new TH2F("skim2D","skim",SDcoll->size(),0.,(float)SDcoll->size(),SDcoll->size(), 0.,(float)SDcoll->size());
sc = m_tHistSvc->regHist("/AANT/skimPass",m_skimPassHist); StatusCode sc = m_tHistSvc->regHist("/AANT/skimPass",m_skimPassHist);
if (sc.isFailure()) msg(MSG::ERROR)<<"Failed to book TH1"<<endmsg; if (sc.isFailure()) msg(MSG::ERROR)<<"Failed to book TH1"<<endmsg;
sc = m_tHistSvc->regHist("/AANT/skimPass2D",m_twoDskimHist); sc = m_tHistSvc->regHist("/AANT/skimPass2D",m_twoDskimHist);
if (sc.isFailure()) msg(MSG::ERROR)<<"Failed to book TH1"<<endmsg; if (sc.isFailure()) msg(MSG::ERROR)<<"Failed to book TH1"<<endmsg;
...@@ -97,11 +96,10 @@ StatusCode RPVLLTestRates::execute() { ...@@ -97,11 +96,10 @@ StatusCode RPVLLTestRates::execute() {
//// these are the ones that are useful for RPVLL filters //// these are the ones that are useful for RPVLL filters
const SkimDecisionCollection *SDcoll = 0; SG::ReadHandle<SkimDecisionCollection> SDcoll("StreamDESDM_RPVLL_SkimDecisionsContainer");
StatusCode sc = evtStore()->retrieve(SDcoll, "StreamDESDM_RPVLL_SkimDecisionsContainer");
int isAc=0; int isAc=0;
if (sc.isSuccess()){ if (SDcoll.isValid()) {
SkimDecisionCollection::const_iterator itr=SDcoll->begin(), itrEnd = SDcoll->end(); SkimDecisionCollection::const_iterator itr=SDcoll->begin(), itrEnd = SDcoll->end();
int filterCount = 0; int filterCount = 0;
for(; itr != itrEnd; itr++) { for(; itr != itrEnd; itr++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment