256 bool passed_electron_HLT =
true;
257 bool passed_muon_HLT =
true;
266 int vertex_number = vertexCollection.size();
267 VertexCollection::const_iterator
v = vertexCollection.begin();
268 double vertex_chi2 = v->normalizedChi2();
269 double vertex_d0 =
sqrt(v->x() * v->x() + v->y() * v->y());
271 double vertex_numTrks = v->tracksSize();
272 double vertex_sumTrks = 0.0;
274 vertex_curTrack != v->tracks_end(); vertex_curTrack++) {
275 vertex_sumTrks += (*vertex_curTrack)->pt();
290 if (electronCollection.
isValid()) {
291 int posEle = 0, negEle = 0;
294 if (passed_electron_HLT) {
295 for (reco::GsfElectronCollection::const_iterator recoElectron =
296 electronCollection->begin();
297 recoElectron != electronCollection->end(); recoElectron++) {
303 if (recoElectron->charge() == 1) {
305 }
else if (recoElectron->charge() == -1) {
317 nEle = posEle + negEle;
318 if (nEle > 9.) nEle = 9.;
322 unsigned int eleCollectionSize = electronCollection->size();
323 for (
unsigned int i = 0;
i < eleCollectionSize;
i++) {
325 double pt = ele.
pt();
327 for (
unsigned int j =
i + 1; j < eleCollectionSize; j++) {
328 const GsfElectron& ele2 = electronCollection->at(j);
329 double pt2 = ele2.
pt();
332 ele.
px() + ele2.
px(), ele.
py() + ele2.
py(),
333 ele.
pz() + ele2.
pz(), ele.
p() + ele2.
p());
347 if (muonCollection.
isValid()) {
349 int posMu = 0, negMu = 0;
350 TLorentzVector m1, m2;
351 if (passed_muon_HLT) {
352 for (reco::MuonCollection::const_iterator
recoMuon =
353 muonCollection->begin();
361 }
else if (
recoMuon->isGlobalMuon() &&
367 }
else if (
recoMuon->isGlobalMuon()) {
371 }
else if (
recoMuon->isTrackerMuon() &&
377 }
else if (
recoMuon->isStandAloneMuon()) {
384 }
else if (
recoMuon->charge() == -1) {
389 if (nMu > 9.) nMu = 9.;
394 unsigned int muonCollectionSize = muonCollection->size();
395 for (
unsigned int i = 0;
i < muonCollectionSize;
i++) {
396 const Muon&
mu = muonCollection->at(
i);
400 for (
unsigned int j =
i + 1; j < muonCollectionSize; j++) {
401 const Muon& mu2 = muonCollection->at(j);
402 double pt2 = mu2.
pt();
407 mu.
px() + mu2.
px(), mu.
py() + mu2.
py(), mu.
pz() + mu2.
pz(),
414 mu.
px() + mu2.
px(), mu.
py() + mu2.
py(), mu.
pz() + mu2.
pz(),
421 mu.
px() + mu2.
px(), mu.
py() + mu2.
py(), mu.
pz() + mu2.
pz(),
436 if (caloJetCollection.
isValid()) {
441 float jet2_et = -9.0;
444 for (CaloJetCollection::const_iterator i_calojet =
445 caloJetCollection->begin();
446 i_calojet != caloJetCollection->end(); i_calojet++) {
447 float jet_current_et = i_calojet->et();
454 if (jet_current_et < 15)
continue;
456 if (jet_current_et > jet_et) {
460 jet_et = i_calojet->et();
464 }
else if (jet_current_et > jet2_et) {
465 jet2_et = i_calojet->et();
481 if (caloMETCollection.
isValid()) {
482 float caloMet = caloMETCollection->begin()->et();
483 float caloMet_phi = caloMETCollection->begin()->phi();
489 if (pfMETCollection.
isValid()) {
490 float pfMet = pfMETCollection->begin()->et();
491 float pfMet_phi = pfMETCollection->begin()->phi();
499 if (nMu + nEle > 2 && nMu + nEle < 10) {
550 if ((nMu + nEle) >= 10)
551 LogDebug(
"HiggsDQM") <<
"WARNING: " << nMu + nEle
552 <<
" leptons in this event: run=" <<
e.id().run()
553 <<
", event=" <<
e.id().event() <<
"\n";
edm::EDGetTokenT< reco::CaloMETCollection > theCaloMETCollectionToken_
edm::EDGetTokenT< reco::GsfElectronCollection > theElectronCollectionToken_
MonitorElement * h_mPhi_TM
MonitorElement * h_mPt_TM
MonitorElement * h_vertex_numTrks
MonitorElement * h_mEta_GMTM
double px() const final
x coordinate of momentum vector
MonitorElement * h_mPhi_GM
MonitorElement * h_mEta_TM
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
double pt() const final
transverse momentum
std::vector< Vertex > VertexCollection
collection of Vertex objects
MonitorElement * h_mPt_STAM
MonitorElement * h_vertex_d0
bool isTrackerMuon() const override
MonitorElement * h_dimumass_GMGM
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
MonitorElement * h_jet_count
MonitorElement * h_mPt_GMPT
bool isGlobalMuon() const override
double pz() const final
z coordinate of momentum vector
MonitorElement * h_pfMet_phi
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
MonitorElement * h_mPhi_GMPT
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollectionToken_
caloMet
____________________________________________________________________________||
MonitorElement * h_jet_et
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
double p() const final
magnitude of momentum vector
T const * product() const
MonitorElement * h_eMultiplicity
MonitorElement * h_vertex_chi2
MonitorElement * h_vertex_number
MonitorElement * h_dimumass_GMTM
double py() const final
y coordinate of momentum vector
MonitorElement * h_mEta_GMPT
MonitorElement * h_vertex_sumTrks
MonitorElement * h_caloMet
MonitorElement * h_mPt_GMTM
MonitorElement * h_caloMet_phi
MonitorElement * h_mPhi_STAM
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollectionToken_
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
MonitorElement * h_mEta_STAM
MonitorElement * h_mEta_GM
MonitorElement * h_dielemass
MonitorElement * h_mPt_GM
MonitorElement * h_mPhi_GMTM
MonitorElement * h_dimumass_TMTM
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionToken_
MonitorElement * h_lepcounts
MonitorElement * h_mMultiplicity