@@ -25,11 +25,13 @@ int main(int argc, char** argv) {
2525 };
2626 std::vector<std::function<bool (unsigned int )>> sels = {
2727 [&](unsigned int isim) { return 1 .; },
28- [&](unsigned int isim) { return abs (lstEff.sim_eta ().at (isim)) < 2.4 ; },
29- [&](unsigned int isim) { return abs (lstEff.sim_eta ().at (isim)) > 1.1 and abs (lstEff.sim_eta ().at (isim)) < 1.7 ; },
28+ [&](unsigned int isim) { return std::abs (lstEff.sim_eta ().at (isim)) < 2.4 ; },
3029 [&](unsigned int isim) {
31- return (abs (lstEff.sim_eta ().at (isim)) < 1.1 or abs (lstEff.sim_eta ().at (isim)) > 1.7 ) and
32- abs (lstEff.sim_eta ().at (isim)) < 2.4 ;
30+ return std::abs (lstEff.sim_eta ().at (isim)) > 1.1 and std::abs (lstEff.sim_eta ().at (isim)) < 1.7 ;
31+ },
32+ [&](unsigned int isim) {
33+ return (std::abs (lstEff.sim_eta ().at (isim)) < 1.1 or std::abs (lstEff.sim_eta ().at (isim)) > 1.7 ) and
34+ std::abs (lstEff.sim_eta ().at (isim)) < 2.4 ;
3335 }};
3436 pdgids.insert (pdgids.end (), ana.pdgids .begin (), ana.pdgids .end ());
3537
@@ -584,7 +586,7 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
584586 bool sel = effset.sel (isimtrk);
585587
586588 if (effset.pdgid != 0 ) {
587- if (abs (pdgidtrk) != abs (effset.pdgid ))
589+ if (std:: abs (pdgidtrk) != std:: abs (effset.pdgid ))
588590 return ;
589591 }
590592
@@ -607,7 +609,7 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
607609 const float vtx_perp_thresh = 2.5 ;
608610
609611 // N minus eta cut
610- if (pt > ana.pt_cut and abs (vtx_z) < vtx_z_thresh and abs (vtx_perp) < vtx_perp_thresh) {
612+ if (pt > ana.pt_cut and std:: abs (vtx_z) < vtx_z_thresh and std:: abs (vtx_perp) < vtx_perp_thresh) {
611613 // vs. eta plot
612614 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_eta" , eta);
613615 if (pass)
@@ -617,7 +619,7 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
617619 }
618620
619621 // N minus pt cut
620- if (abs (eta) < ana.eta_cut and abs (vtx_z) < vtx_z_thresh and abs (vtx_perp) < vtx_perp_thresh) {
622+ if (std:: abs (eta) < ana.eta_cut and std:: abs (vtx_z) < vtx_z_thresh and std:: abs (vtx_perp) < vtx_perp_thresh) {
621623 // vs. pt plot
622624 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_pt" , pt);
623625 if (pass)
@@ -627,7 +629,7 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
627629 }
628630
629631 // N minus dxy cut
630- if (abs (eta) < ana.eta_cut and pt > ana.pt_cut and abs (vtx_z) < vtx_z_thresh) {
632+ if (std:: abs (eta) < ana.eta_cut and pt > ana.pt_cut and std:: abs (vtx_z) < vtx_z_thresh) {
631633 // vs. dxy plot
632634 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_dxy" , dxy);
633635 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_vxy" , vtx_perp);
@@ -641,7 +643,7 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
641643 }
642644
643645 // N minus dz cut
644- if (abs (eta) < ana.eta_cut and pt > ana.pt_cut and abs (vtx_perp) < vtx_perp_thresh) {
646+ if (std:: abs (eta) < ana.eta_cut and pt > ana.pt_cut and std:: abs (vtx_perp) < vtx_perp_thresh) {
645647 // vs. dz plot
646648 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_dz" , dz);
647649 if (pass)
@@ -651,7 +653,8 @@ void fillEfficiencySet(int isimtrk, SimTrackSetDefinition& effset) {
651653 }
652654
653655 // All phase-space cuts
654- if (abs (eta) < ana.eta_cut and pt > ana.pt_cut and abs (vtx_z) < vtx_z_thresh and abs (vtx_perp) < vtx_perp_thresh) {
656+ if (std::abs (eta) < ana.eta_cut and pt > ana.pt_cut and std::abs (vtx_z) < vtx_z_thresh and
657+ std::abs (vtx_perp) < vtx_perp_thresh) {
655658 // vs. Phi plot
656659 ana.tx .pushbackToBranch <float >(category_name + " _ef_denom_phi" , phi);
657660 if (pass)
@@ -687,12 +690,12 @@ void fillFakeRateSet(int itc, RecoTrackSetDefinition& FRset) {
687690 if (pass)
688691 ana.tx .pushbackToBranch <float >(category_name + " _fr_numer_eta" , eta);
689692 }
690- if (abs (eta) < ana.eta_cut ) {
693+ if (std:: abs (eta) < ana.eta_cut ) {
691694 ana.tx .pushbackToBranch <float >(category_name + " _fr_denom_pt" , pt);
692695 if (pass)
693696 ana.tx .pushbackToBranch <float >(category_name + " _fr_numer_pt" , pt);
694697 }
695- if (abs (eta) < ana.eta_cut and pt > ana.pt_cut ) {
698+ if (std:: abs (eta) < ana.eta_cut and pt > ana.pt_cut ) {
696699 ana.tx .pushbackToBranch <float >(category_name + " _fr_denom_phi" , phi);
697700 if (pass)
698701 ana.tx .pushbackToBranch <float >(category_name + " _fr_numer_phi" , phi);
@@ -725,12 +728,12 @@ void fillDuplicateRateSet(int itc, RecoTrackSetDefinition& DRset) {
725728 if (pass)
726729 ana.tx .pushbackToBranch <float >(category_name + " _dr_numer_eta" , eta);
727730 }
728- if (abs (eta) < ana.eta_cut ) {
731+ if (std:: abs (eta) < ana.eta_cut ) {
729732 ana.tx .pushbackToBranch <float >(category_name + " _dr_denom_pt" , pt);
730733 if (pass)
731734 ana.tx .pushbackToBranch <float >(category_name + " _dr_numer_pt" , pt);
732735 }
733- if (abs (eta) < ana.eta_cut and pt > ana.pt_cut ) {
736+ if (std:: abs (eta) < ana.eta_cut and pt > ana.pt_cut ) {
734737 ana.tx .pushbackToBranch <float >(category_name + " _dr_denom_phi" , phi);
735738 if (pass)
736739 ana.tx .pushbackToBranch <float >(category_name + " _dr_numer_phi" , phi);
0 commit comments