76 |
|
objectsToGet.push_back(tempInputCollection); |
77 |
|
objectsToCut.push_back(tempInputCollection); |
78 |
|
|
79 |
– |
// vector<edm::ParameterSet> branchList(treeBranchSets_.at(iBranchSet).getParameter<vector<edm::ParameterSet> >("histograms")); |
79 |
|
vector<string> branchList(treeBranchSets_.at(iBranchSet).getParameter<vector<string> >("branches")); |
80 |
|
|
81 |
< |
for(uint iBranch = 0; iBranch<branchList.size(); iBranch++){ |
83 |
< |
|
84 |
< |
vector<double> defaultValue; |
85 |
< |
defaultValue.push_back (-1.0); |
86 |
< |
|
81 |
> |
for (uint iBranch = 0; iBranch<branchList.size(); iBranch++) { |
82 |
|
BranchSpecs br; |
83 |
|
br.inputCollection = tempInputCollection; |
84 |
|
br.inputVariable = branchList.at(iBranch); |
85 |
|
TString newName = TString(br.inputCollection) + "_" + TString(br.inputVariable); |
86 |
|
br.name = string(newName.Data()); |
92 |
– |
|
87 |
|
treeBranches_.push_back(br); |
94 |
– |
|
88 |
|
} |
89 |
|
|
90 |
|
} // end for (uint iBranchSet = 0; iBranchSet<treeBranchSets_.size(); iBranchSet++) { |
1100 |
|
oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(numToPlot,scaleFactor); |
1101 |
|
} |
1102 |
|
} |
1110 |
– |
else if(objectToPlot == "jets") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(jets->size(),scaleFactor); |
1111 |
– |
else if(objectToPlot == "secondaryJets") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(jets->size(),scaleFactor); |
1112 |
– |
else if(objectToPlot == "muons") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size(),scaleFactor); |
1113 |
– |
else if(objectToPlot == "secondaryMuons") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size(),scaleFactor); |
1114 |
– |
else if(objectToPlot == "dimuonPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size()*(muons->size()-1)/2,scaleFactor); |
1115 |
– |
else if(objectToPlot == "muonSecondaryMuonPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size()*(muons->size()-1)/2,scaleFactor); |
1116 |
– |
else if(objectToPlot == "electrons") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size(),scaleFactor); |
1117 |
– |
else if(objectToPlot == "secondaryElectrons") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size(),scaleFactor); |
1118 |
– |
else if(objectToPlot == "dielectronPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*(electrons->size()-1)/2,scaleFactor); |
1119 |
– |
else if(objectToPlot == "electronSecondaryElectronPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*(electrons->size()-1)/2,scaleFactor); |
1120 |
– |
else if(objectToPlot == "electronMuonPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*muons->size(),scaleFactor); |
1121 |
– |
else if(objectToPlot == "electronJetPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*jets->size(),scaleFactor); |
1122 |
– |
else if(objectToPlot == "muonJetPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size()*jets->size(),scaleFactor); |
1123 |
– |
else if(objectToPlot == "electronTrackPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*tracks->size(),scaleFactor); |
1124 |
– |
else if(objectToPlot == "electronTrigobjPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(electrons->size()*trigobjs->size(),scaleFactor); |
1125 |
– |
else if(objectToPlot == "muonTrigobjPairs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(muons->size()*trigobjs->size(),scaleFactor); |
1126 |
– |
else if(objectToPlot == "events") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(events->size(),scaleFactor); |
1127 |
– |
else if(objectToPlot == "taus") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(taus->size(),scaleFactor); |
1128 |
– |
else if(objectToPlot == "mets") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(mets->size(),scaleFactor); |
1129 |
– |
else if(objectToPlot == "tracks") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(tracks->size(),scaleFactor); |
1130 |
– |
else if(objectToPlot == "genjets") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(genjets->size(),scaleFactor); |
1131 |
– |
else if(objectToPlot == "mcparticles") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(mcparticles->size(),scaleFactor); |
1132 |
– |
else if(objectToPlot == "bxlumis") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(bxlumis->size(),scaleFactor); |
1133 |
– |
else if(objectToPlot == "photons") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(photons->size(),scaleFactor); |
1134 |
– |
else if(objectToPlot == "superclusters") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(superclusters->size(),scaleFactor); |
1135 |
– |
else if(objectToPlot == "trigobjs") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(trigobjs->size(),scaleFactor); |
1136 |
– |
else if(objectToPlot == "primaryvertexs"){ |
1137 |
– |
oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName+"BeforePileupCorrection")->Fill(primaryvertexs->size()); |
1138 |
– |
oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName+"AfterPileupCorrection")->Fill(primaryvertexs->size(),scaleFactor); |
1139 |
– |
} |
1140 |
– |
if(objectToPlot == "stops" && datasetType_ == "signalMC") oneDHists_.at(currentChannelIndex).at(currentCut).at(histoName)->Fill(stops->size(),scaleFactor); |
1141 |
– |
|
1103 |
|
} // end for (uint currentObjectIndex = 0; currentObjectIndex != objectsToPlot.size(); currentObjectIndex++) |
1104 |
< |
} |
1105 |
< |
} |
1104 |
> |
} // end if(eventPassedPreviousCuts.at(currentDir)){ |
1105 |
> |
} // end loop over cuts |
1106 |
|
|
1107 |
|
BNTrees_.at(currentChannelIndex)->Fill(); |
1108 |
|
|
1109 |
< |
} //end loop over channel |
1109 |
> |
} // end loop over channel |
1110 |
|
|
1111 |
|
masterCutFlow_->fillCutFlow(masterScaleFactor); |
1112 |
|
|