26 using namespace isodeposit;
51 alpha_(
cfg.getParameter<double>(
"alpha")),
52 beta_(
cfg.getParameter<double>(
"beta")),
54 produces<vector<pat::CompositeCandidate> >();
67 bool isMCMatchTrue =
false;
75 unique_ptr<vector<pat::CompositeCandidate> > dimuonColl(
new vector<pat::CompositeCandidate>());
77 for (
unsigned int i = 0;
i <
dimuons->size(); ++
i) {
83 float trueMass, truePt, trueEta, truePhi, trueY;
119 if (mu1.
isGlobalMuon() ==
true && mu2.isGlobalMuon() ==
true) {
127 float zDau1SaEta = stAloneTrack1->eta();
128 float zDau2SaEta = stAloneTrack2->eta();
129 float zDau1SaPhi = stAloneTrack1->phi();
130 float zDau2SaPhi = stAloneTrack2->phi();
131 float zDau1SaPt, zDau2SaPt;
133 momentum = stAloneTrack1->momentum();
137 zDau1SaPt = stAloneTrack1->pt();
138 zDau2SaPt = -stAloneTrack2->pt();
140 momentum = stAloneTrack2->momentum();
144 zDau1SaPt = -stAloneTrack1->pt();
145 zDau2SaPt = stAloneTrack2->pt();
150 float zMassSa =
mass;
161 dimuonColl->push_back(dimuon);