Skip to content

Commit

Permalink
Merge pull request cms-sw#949 from slava77/comparisons-12Feb2018
Browse files Browse the repository at this point in the history
reco comparisons updates: add plots of user data for leptons and photons
  • Loading branch information
smuzaffar authored Feb 13, 2018
2 parents 38fb304 + 770224d commit ba1416e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions comparisons/validate.C
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,25 @@ void photonVars(TString cName = "photons_", TString tName = "recoPhotons_"){
photon("puppiChargedHadronIso", cName,tName);
photon("puppiNeutralHadronIso", cName,tName);
photon("puppiPhotonIso", cName,tName);

photon("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userFloats_[%d]",i), "", true);
}
photon("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userInts_[%d]",i), "", true);
}
photon("[email protected]", cName,tName);
photon("[email protected]", cName,tName);
for (int i = 0; i< 12; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].isolations_[%d]",i), "", true);
}
photon("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].photonIDs_[%d].second",i), "", true);
}

}
}

Expand Down Expand Up @@ -587,9 +606,22 @@ void electronVars(TString cName = "gsfElectrons_", TString tName = "recoGsfElect
electron("dB(pat::Electron::PVDZ)", cName,tName, true);

electron("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userFloats_[%d]",i), "", true);
}
electron("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userInts_[%d]",i), "", true);
}
electron("[email protected]", cName,tName);
electron("[email protected]", cName,tName);
for (int i = 0; i< 12; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].isolations_[%d]",i), "", true);
}
electron("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].electronIDs_[%d].second",i), "", true);
}
}

}
Expand Down Expand Up @@ -725,9 +757,18 @@ void muonVars(TString cName = "muons_", TString tName = "recoMuons_"){
muonVar("dB(pat::Muon::PVDZ)", cName,tName, true);

muonVar("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userFloats_[%d]",i), "", true);
}
muonVar("[email protected]", cName,tName);
for (int i = 0; i< 32; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].userInts_[%d]",i), "", true);
}
muonVar("[email protected]", cName,tName);
muonVar("[email protected]", cName,tName);
for (int i = 0; i< 12; ++i){
plotvar(tName+cName+"_"+recoS+Form(".obj[].isolations_[%d]",i), "", true);
}

muonVar("simType", cName,tName);
muonVar("simExtType", cName,tName);
Expand Down

0 comments on commit ba1416e

Please sign in to comment.