|
|
Go to the documentation of this file.
37 void endJob()
override;
55 : selectMuonToken_(consumes<vector<
pat::
Muon> >(
pset.getParameter<
InputTag>(
"selectMuon"))),
57 pathName_(
pset.getParameter<
string>(
"pathName")),
58 nbinsEta_(
pset.getParameter<
int>(
"EtaBins")),
59 minEta_(
pset.getParameter<double>(
"minEta")),
60 maxEta_(
pset.getParameter<double>(
"maxEta")),
61 nbinsPt_(
pset.getParameter<
int>(
"PtBins")),
62 minPt_(
pset.getParameter<double>(
"minPt")),
63 maxPt_(
pset.getParameter<double>(
"maxPt")),
64 nbinsEtaPt_(
pset.getParameter<
int>(
"EtaPt80Bins")) {
85 int zmumuSize =
zMuMu->size();
87 for (
int i = 0;
i < zmumuSize; ++
i) {
88 bool singleTrigFlag0 =
false;
89 bool singleTrigFlag1 =
false;
94 const pat::Muon& mu0 = dynamic_cast<const pat::Muon&>(*dau0);
95 const pat::Muon& mu1 = dynamic_cast<const pat::Muon&>(*dau1);
98 double EtaPatMu0 = mu0.
eta();
99 double EtaPatMu1 = mu1.
eta();
100 double PtPatMu0 = mu0.
pt();
101 double PtPatMu1 = mu1.
pt();
106 int dimTrig0 = mu0HLTMatches.size();
107 int dimTrig1 = mu1HLTMatches.size();
109 for (
int j = 0;
j < dimTrig0; ++
j) {
110 singleTrigFlag0 =
true;
113 double PtTrig = mu0HLTMatches[
j].pt();
114 double PtDif = PtTrig - PtPatMu0;
125 for (
int j = 0;
j < dimTrig1; ++
j) {
126 singleTrigFlag1 =
true;
129 double PtTrig = mu0HLTMatches[
j].pt();
130 double PtDif = PtTrig - PtPatMu1;
141 if (singleTrigFlag0 && singleTrigFlag1)
143 if (singleTrigFlag0 && !singleTrigFlag1)
145 if (!singleTrigFlag0 && singleTrigFlag1)
147 if (!singleTrigFlag0 && !singleTrigFlag1)
159 cout <<
"eps^2 = " << DoubleTrig << endl;
160 cout <<
"2eps(1 - eps) = " << OneTrig << endl;
162 for (
int i = 0;
i < dimVec; ++
i)
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
zMuMu
zMuMu vector of PSet is common to all categories except zMuTrk category
double pt() const final
transverse momentum
Analysis-level muon class.
testAnalyzer(const edm::ParameterSet &pset)
EDGetTokenT< vector< pat::Muon > > selectMuonToken_
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
vector< double > vectorEta
vector< double > vectorPt
double eta() const final
momentum pseudorapidity
EDGetTokenT< CandidateView > zMuMuToken_
TH1D * h_numberMuon_ptStudy_
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath(const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
virtual const CandidateBaseRef & masterClone() const =0
TH1D * h_numberTrigMuon_ptStudy_
T * make(const Args &... args) const
make new ROOT object
TH1D * h_pt_distribution_