48 std::map<unsigned, unsigned>
sumN_;
62 trigger_(iConfig.getParameter<
edm::
InputTag>(
"trigger")),
68 muonMatch_(iConfig.getParameter<
std::
string>(
"muonMatch")),
70 minID_(iConfig.getParameter<unsigned>(
"minID")),
72 maxID_(iConfig.getParameter<unsigned>(
"maxID")),
83 fileService->
make<TH2D>(
"ptTrigCand",
"Object vs. candidate p_{T} (GeV)", 60, 0., 300., 60, 0., 300.);
84 histos2D_[
"ptTrigCand"]->SetXTitle(
"candidate p_{T} (GeV)");
85 histos2D_[
"ptTrigCand"]->SetYTitle(
"object p_{T} (GeV)");
88 fileService->
make<TH2D>(
"etaTrigCand",
"Object vs. candidate #eta", 50, -2.5, 2.5, 50, -2.5, 2.5);
89 histos2D_[
"etaTrigCand"]->SetXTitle(
"candidate #eta");
90 histos2D_[
"etaTrigCand"]->SetYTitle(
"object #eta");
94 histos2D_[
"phiTrigCand"]->SetXTitle(
"candidate #phi");
95 histos2D_[
"phiTrigCand"]->SetYTitle(
"object #phi");
98 histos1D_[
"turnOn"]->SetXTitle(
"candidate p_{T} (GeV)");
99 histos1D_[
"turnOn"]->SetYTitle(
"# of objects");
103 histos1D_[
"ptMean"]->SetXTitle(
"trigger object type");
104 histos1D_[
"ptMean"]->SetYTitle(
"mean p_{T} (GeV)");
123 const helper::TriggerMatchHelper matchHelper;
130 for (
size_t iMuon = 0; iMuon <
muons->size(); ++iMuon) {
134 if (trigRef.isAvailable() && trigRef.isNonnull()) {
135 histos2D_[
"ptTrigCand"]->Fill(
muons->at(iMuon).pt(), trigRef->pt());
136 histos2D_[
"etaTrigCand"]->Fill(
muons->at(iMuon).eta(), trigRef->eta());
137 histos2D_[
"phiTrigCand"]->Fill(
muons->at(iMuon).phi(), trigRef->phi());
152 if (candRefs.empty())
158 if (muonRef.isAvailable() && muonRef.isNonnull()) {
159 histos1D_[
"turnOn"]->Fill(muonRef->pt());