Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong folder and NaN problem #2564

Merged
merged 1 commit into from
Feb 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Validation/L1T/plugins/L1Validator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ L1Validator::L1Validator(const edm::ParameterSet& iConfig){

//_fileName = iConfig.getParameter<std::string>("fileName");

_dbe->setCurrentFolder(_dirName.c_str());
_Hists = new L1ValidatorHists(_dbe);
}

Expand Down Expand Up @@ -173,13 +172,14 @@ void L1Validator::endJob(){

// ------------ method called when starting to processes a run ------------
void L1Validator::beginRun(edm::Run const&, edm::EventSetup const&){
_dbe->setCurrentFolder(_dirName.c_str());
_Hists->Book();
}

// ------------ method called when ending the processing of a run ------------

void L1Validator::endRun(edm::Run const&, edm::EventSetup const&){
_Hists->Normalize();
//_Hists->Normalize();
}


Expand Down
2 changes: 1 addition & 1 deletion Validation/L1T/python/L1Validator_cfi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FWCore.ParameterSet.Config as cms

L1Validator = cms.EDAnalyzer('L1Validator',
dirName=cms.string("L1T/L1TriggerVsGen/"),
dirName=cms.string("L1T/L1TriggerVsGen"),
# fileName=cms.string("L1Validation.root") #output file name
GenSource=cms.InputTag("genParticles"),
L1ExtraIsoEGSource=cms.InputTag("l1extraParticles", "Isolated"),
Expand Down
18 changes: 9 additions & 9 deletions Validation/L1T/src/L1ValidatorHists.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ void L1ValidatorHists::Book(){
dR[i] = _dbe->book1D( (Name[i]+"_dR").c_str(), (Name[i]+" dR").c_str(), 20, 0, 1);
dPt[i] = _dbe->book1D( (Name[i]+"_dPt").c_str(), (Name[i]+" dPt").c_str(), 20, -1, 1);

N[i]->getTH1()->Sumw2();
N_Pt[i]->Sumw2();
N_Eta[i]->Sumw2();
Eff_Pt[i]->getTH1()->Sumw2();
Eff_Eta[i]->getTH1()->Sumw2();
TurnOn_15[i]->getTH1()->Sumw2();
TurnOn_30[i]->getTH1()->Sumw2();
dR[i]->getTH1()->Sumw2();
dPt[i]->getTH1()->Sumw2();
// N[i]->getTH1()->Sumw2();
// N_Pt[i]->Sumw2();
// N_Eta[i]->Sumw2();
// Eff_Pt[i]->getTH1()->Sumw2();
// Eff_Eta[i]->getTH1()->Sumw2();
// TurnOn_15[i]->getTH1()->Sumw2();
// TurnOn_30[i]->getTH1()->Sumw2();
// dR[i]->getTH1()->Sumw2();
// dPt[i]->getTH1()->Sumw2();
}

}
Expand Down