36 virtual void endJob()
override;
54 selectMuonToken_( consumes<vector<
pat::
Muon> >( pset.getParameter<
InputTag>(
"selectMuon" ) ) ),
56 pathName_( pset.getParameter<
string>(
"pathName" ) ),
57 nbinsEta_( pset.getParameter<
int>(
"EtaBins" ) ),
58 minEta_( pset.getParameter<double>(
"minEta" ) ),
59 maxEta_( pset.getParameter<double>(
"maxEta" ) ),
60 nbinsPt_( pset.getParameter<
int>(
"PtBins" ) ),
61 minPt_( pset.getParameter<double>(
"minPt" ) ),
62 maxPt_( pset.getParameter<double>(
"maxPt" ) ),
63 nbinsEtaPt_( pset.getParameter<
int>(
"EtaPt80Bins" ) ){
82 int zmumuSize = zMuMu->
size();
84 for(
int i = 0;
i < zmumuSize ; ++
i){
85 bool singleTrigFlag0 =
false;
86 bool singleTrigFlag1 =
false;
97 double EtaPatMu0 = mu0.
eta();
98 double EtaPatMu1 = mu1.
eta();
99 double PtPatMu0 = mu0.
pt();
100 double PtPatMu1 = mu1.
pt();
105 int dimTrig0 = mu0HLTMatches.size();
106 int dimTrig1 = mu1HLTMatches.size();
108 for(
int j = 0; j < dimTrig0 ; ++j){
109 singleTrigFlag0 =
true;
112 double PtTrig = mu0HLTMatches[j].pt();
113 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;
145 if(!singleTrigFlag0 && !singleTrigFlag1)
NoTrigger_++;
156 cout<<
"eps^2 = " << DoubleTrig << endl;
157 cout<<
"2eps(1 - eps) = " << OneTrig << endl;
virtual double pt() const final
transverse momentum
virtual void endJob() override
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup) override
TH1D * h_numberMuon_ptStudy_
vector< double > vectorEta
virtual double eta() const final
momentum pseudorapidity
def analyze(function, filename, filter=None)
#define DEFINE_FWK_MODULE(type)
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
def setup(process, global_tag, zero_tesla=False)
T * make(const Args &...args) const
make new ROOT object
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
EDGetTokenT< vector< pat::Muon > > selectMuonToken_
EDGetTokenT< CandidateView > zMuMuToken_
testAnalyzer(const edm::ParameterSet &pset)
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath(const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
virtual const CandidateBaseRef & masterClone() const =0
TH1D * h_pt_distribution_
TH1D * h_numberTrigMuon_ptStudy_
Analysis-level muon class.
vector< double > vectorPt