26 using namespace isodeposit;
47 src_( cfg.getParameter<
InputTag>(
"src" ) ),
48 beamSpot_(cfg.getParameter<
InputTag>(
"beamSpot" ) ),
49 primaryVertices_(cfg.getParameter<
InputTag>(
"primaryVertices" ) ),
50 zGenParticlesMatch_(cfg.getParameter<
InputTag>(
"zGenParticlesMatch" ) ),
51 alpha_(cfg.getParameter<double>(
"alpha") ),
52 beta_(cfg.getParameter<double>(
"beta") ),
53 hltPath_(cfg.getParameter<std::
string >(
"hltPath") ){
54 produces<vector<pat::CompositeCandidate> >();
68 bool isMCMatchTrue=
false;
76 auto_ptr<vector<pat::CompositeCandidate> > dimuonColl(
new vector<pat::CompositeCandidate> () );
79 for (
unsigned int i = 0;
i< dimuons->size();++
i){
85 float trueMass,truePt,trueEta,truePhi,trueY;
130 float zDau1SaEta = stAloneTrack1->eta();
131 float zDau2SaEta = stAloneTrack2->eta();
132 float zDau1SaPhi = stAloneTrack1->phi();
133 float zDau2SaPhi = stAloneTrack2->phi();
134 float zDau1SaPt,zDau2SaPt;
136 momentum = stAloneTrack1->momentum();
138 mu_mass = dau1->
mass();
140 zDau1SaPt = stAloneTrack1->pt();
141 zDau2SaPt = - stAloneTrack2->pt();
143 momentum = stAloneTrack2->momentum();
145 mu_mass = dau2->
mass();
147 zDau1SaPt = - stAloneTrack1->pt();
148 zDau2SaPt = stAloneTrack2->pt();
152 double mass = (p4_1+p4_2).mass();
153 float zMassSa = mass;
164 dimuonColl->push_back(dimuon);
169 evt.
put( dimuonColl);
Analysis-level particle class.
virtual float mass() const =0
mass
virtual float eta() const =0
momentum pseudorapidity
#define DEFINE_FWK_MODULE(type)
stand alone muon component tag
bool isGlobalMuon() const
virtual float phi() const =0
momentum azimuthal angle
virtual double rapidity() const =0
rapidity
virtual const PolarLorentzVector & polarP4() const =0
four-momentum Lorentz vector
bool isNonnull() const
Checks for non-null.
InputTag primaryVertices_
virtual float pt() const =0
transverse momentum
ZMuMuUserData(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void addUserFloat(const std::string &label, float data)
Set user-defined float.
void produce(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
InputTag zGenParticlesMatch_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
T get() const
get a component
Analysis-level muon class.
virtual const CandidateBaseRef & masterClone() const =0
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.