201 : compressionSettings_(iConfig.getUntrackedParameter<
int>(
"compressionSettings", -1)),
202 splitTracks_(iConfig.getParameter<
edm::
InputTag>(
"splitTracks")),
203 splitGlobalMuons_(iConfig.getParameter<
edm::
InputTag>(
"splitGlobalMuons")),
204 originalTracks_(iConfig.getParameter<
edm::
InputTag>(
"originalTracks")),
205 originalGlobalMuons_(iConfig.getParameter<
edm::
InputTag>(
"originalGlobalMuons")),
206 checkIfGolden_(iConfig.getParameter<
bool>(
"checkIfGolden")),
207 splitMuons_(iConfig.getParameter<
bool>(
"ifSplitMuons")),
208 totalTracksToAnalyzer_(0),
211 goldenPlusTwoTracksCtr(0),
212 _passesTracksPlusMuonsCuts(0),
213 splitterTree_(nullptr),
439 bool isGolden =
true;
467 bool topGlobalMuonFlag =
false;
468 bool bottomGlobalMuonFlag =
false;
469 int topGlobalMuon = -1;
470 int bottomGlobalMuon = -1;
471 double topGlobalMuonNorchi2 = 1e10;
472 double bottomGlobalMuonNorchi2 = 1e10;
476 for (std::vector<reco::Muon>::const_iterator gmI =
globalMuons->begin(); gmI !=
globalMuons->end(); gmI++) {
477 if (gmI->isTrackerMuon() && gmI->isStandAloneMuon() && gmI->isGlobalMuon()) {
481 if (gmI->innerTrack() == trackerTrackRef1) {
482 if (gmI->globalTrack()->normalizedChi2() < topGlobalMuonNorchi2) {
483 topGlobalMuonFlag =
true;
484 topGlobalMuonNorchi2 = gmI->globalTrack()->normalizedChi2();
485 topGlobalMuon = gmCtr;
488 if (gmI->innerTrack() == trackerTrackRef2) {
489 if (gmI->globalTrack()->normalizedChi2() < bottomGlobalMuonNorchi2) {
490 bottomGlobalMuonFlag =
true;
491 bottomGlobalMuonNorchi2 = gmI->globalTrack()->normalizedChi2();
492 bottomGlobalMuon = gmCtr;
519 if (
hit->isValid()) {
522 int type =
hit->geographicalId().subdetId();
561 if (
hit->isValid()) {
564 int type =
hit->geographicalId().subdetId();
594 double ddxy_Val = track1.
d0() - track2.
d0();
595 double ddz_Val = track1.
dz() - track2.
dz();
596 double dtheta_Val = track1.
theta() - track2.
theta();
597 double deta_Val = track1.
eta() - track2.
eta();
598 double dphi_Val = track1.
phi() - track2.
phi();
599 double dpt_Val = track1.
pt() - track2.
pt();
600 double dp_Val = track1.
p() - track2.
p();
601 double dqoverpt_Val = track1.
charge() / track1.
pt() - track2.
charge() / track2.
pt();
609 int nhitinTIBorg = 0;
610 int nhitinTOBorg = 0;
611 int nhitinTIDorg = 0;
612 int nhitinTECorg = 0;
613 int nhitinBPIXorg = 0;
614 int nhitinFPIXorg = 0;
616 if (
hit->isValid()) {
619 int type =
hit->geographicalId().subdetId();
758 dp_sta_ = sta1->p() - sta2->p();
804 dp_glb_ = glb1->p() - glb2->p();
1054 if (2 !=
muons.size())
1057 double mudd0 = 0., mudphi = 0., muddsz = 0., mudeta = 0.;
1058 for (
unsigned int bindex = 0; bindex <
muons.size(); ++bindex) {
1065 mudd0 += mutrack->
d0();
1066 mudphi += mutrack->
phi();
1067 muddsz += mutrack->
dsz();
1068 mudeta += mymuon.
eta();
1071 mudd0 -= mutrack->
d0();
1072 mudphi -= mutrack->
phi();
1073 muddsz -= mutrack->
dsz();
1074 mudeta -= mymuon.
eta();
1077 if ((fabs(mudd0) < 15.0) && (fabs(mudphi) < 0.045) && (fabs(muddsz) < 20.0) && (fabs(mudeta) < 0.060))