Changes in / [20ca0cd:9327245] in git
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cards/CMS_PhaseII/CMS_PhaseII_Substructure_PIX4022_0PU.tcl
r20ca0cd r9327245 33 33 PhotonEnergySmearing 34 34 ElectronFilter 35 35 36 TrackPileUpSubtractor 37 RecoPuFilter 36 38 37 39 TowerMerger 38 40 NeutralEFlowMerger 39 EFlowMergerAllTracks 41 40 42 EFlowMerger 43 EFlowMergerCHS 44 Rho 41 45 42 46 LeptonFilterNoLep … … 48 52 49 53 PhotonIsolation 54 PhotonIsolationCHS 50 55 PhotonEfficiency 56 PhotonEfficiencyCHS 51 57 52 58 ElectronIsolation 59 ElectronIsolationCHS 60 53 61 ElectronEfficiency 62 ElectronEfficiencyCHS 54 63 55 64 MuonIsolation 65 MuonIsolationCHS 66 56 67 MuonLooseIdEfficiency 57 68 MuonTightIdEfficiency 69 70 MuonLooseIdEfficiencyCHS 71 MuonTightIdEfficiencyCHS 58 72 59 73 NeutrinoFilter … … 68 82 FastJetFinder 69 83 FastJetFinderAK8 84 JetPileUpSubtractor 85 JetPileUpSubtractorAK8 70 86 FastJetFinderPUPPI 71 87 FastJetFinderPUPPIAK8 … … 121 137 122 138 # maximum spread in the beam direction in m 123 set ZVertexSpread 0 139 set ZVertexSpread 0.25 124 140 125 141 # maximum spread in time in s 126 set TVertexSpread 0142 set TVertexSpread 800E-12 127 143 128 144 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s) - {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))} 129 set VertexDistributionFormula 1145 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))} 130 146 131 147 } … … 273 289 source muonMomentumResolution.tcl 274 290 } 275 276 277 278 291 279 292 ############## … … 527 540 } 528 541 542 ######################## 543 # Reco PU filter 544 ######################## 545 546 module RecoPuFilter RecoPuFilter { 547 set InputArray HCal/eflowTracks 548 set OutputArray eflowTracks 549 } 529 550 530 551 ################################################### … … 539 560 } 540 561 541 542 562 #################### 543 563 # Neutral eflow erger … … 551 571 } 552 572 553 554 #################### 573 ##################### 555 574 # Energy flow merger 556 #################### 575 ##################### 557 576 558 577 module Merger EFlowMerger { … … 564 583 } 565 584 566 ############################ ######567 # Energy flow merger (all tracks)568 ############################ ######569 570 module Merger EFlowMerger AllTracks{585 ############################ 586 # Energy flow merger no PU 587 ############################ 588 589 module Merger EFlowMergerCHS { 571 590 # add InputArray InputArray 572 add InputArray TrackMerger/tracks591 add InputArray RecoPuFilter/eflowTracks 573 592 add InputArray PhotonEnergySmearing/eflowPhotons 574 593 add InputArray HCal/eflowNeutralHadrons … … 695 714 } 696 715 697 698 716 ##################### 699 717 # MC truth jet finder … … 735 753 } 736 754 737 ############ 755 756 ############# 757 # Rho pile-up 758 ############# 759 760 module FastJetFinder Rho { 761 # set InputArray Calorimeter/towers 762 set InputArray EFlowMergerCHS/eflow 763 764 set ComputeRho true 765 set RhoOutputArray rho 766 767 # area algorithm: 0 Do not compute area, 1 Active area explicit ghosts, 2 One ghost passive area, 3 Passive area, 4 Voronoi, 5 Active area 768 set AreaAlgorithm 5 769 770 # jet algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt 771 set JetAlgorithm 4 772 set ParameterR 0.4 773 set GhostEtaMax 5.0 774 775 add RhoEtaRange -5.0 -4.0 776 add RhoEtaRange -4.0 -1.5 777 add RhoEtaRange -1.5 1.5 778 add RhoEtaRange 1.5 4.0 779 add RhoEtaRange 4.0 5.0 780 781 set JetPTMin 0.0 782 } 783 784 785 ############## 738 786 # Jet finder 739 ############ 787 ############## 740 788 741 789 module FastJetFinder FastJetFinder { 742 790 # set InputArray TowerMerger/towers 743 set InputArray EFlowMerger /eflow791 set InputArray EFlowMergerCHS/eflow 744 792 745 793 set OutputArray jets 794 795 set AreaAlgorithm 5 746 796 747 797 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt … … 755 805 module FastJetFinder FastJetFinderAK8 { 756 806 # set InputArray TowerMerger/towers 757 set InputArray EFlowMerger /eflow807 set InputArray EFlowMergerCHS/eflow 758 808 759 809 set OutputArray jets 810 811 set AreaAlgorithm 5 760 812 761 813 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt … … 784 836 } 785 837 838 ########################### 839 # Jet Pile-Up Subtraction 840 ########################### 841 842 module JetPileUpSubtractor JetPileUpSubtractor { 843 set JetInputArray FastJetFinder/jets 844 set RhoInputArray Rho/rho 845 846 set OutputArray jets 847 848 set JetPTMin 15.0 849 } 850 851 ############################## 852 # Jet Pile-Up Subtraction AK8 853 ############################## 854 855 module JetPileUpSubtractor JetPileUpSubtractorAK8 { 856 set JetInputArray FastJetFinderAK8/jets 857 set RhoInputArray Rho/rho 858 859 set OutputArray jets 860 861 set JetPTMin 15.0 862 } 863 786 864 module FastJetFinder FastJetFinderPUPPI { 787 865 # set InputArray TowerMerger/towers … … 833 911 834 912 module EnergyScale JetEnergyScale { 835 set InputArray FastJetFinder/jets913 set InputArray JetPileUpSubtractor/jets 836 914 set OutputArray jets 837 915 … … 841 919 842 920 module EnergyScale JetEnergyScaleAK8 { 843 set InputArray FastJetFinderAK8/jets921 set InputArray JetPileUpSubtractorAK8/jets 844 922 set OutputArray jets 845 923 … … 907 985 } 908 986 987 988 ######################## 989 # Photon isolation CHS # 990 ######################## 991 992 module Isolation PhotonIsolationCHS { 993 994 # particle for which calculate the isolation 995 set CandidateInputArray PhotonFilter/photons 996 997 # isolation collection 998 set IsolationInputArray EFlowMerger/eflow 999 1000 # output array 1001 set OutputArray photons 1002 1003 # isolation cone 1004 set DeltaRMax 0.3 1005 1006 # minimum pT 1007 set PTMin 1.0 1008 1009 # iso ratio to cut 1010 set PTRatioMax 9999. 1011 1012 } 909 1013 910 1014 … … 929 1033 930 1034 1035 ##################### 1036 # Photon efficiency # 1037 ##################### 1038 1039 module Efficiency PhotonEfficiencyCHS { 1040 1041 ## input particles 1042 set InputArray PhotonIsolationCHS/photons 1043 ## output particles 1044 set OutputArray photons 1045 # set EfficiencyFormula {efficiency formula as a function of eta and pt} 1046 # efficiency formula for photons 1047 set EfficiencyFormula { (pt <= 10.0) * (0.00) + \ 1048 (abs(eta) <= 1.5) * (pt > 10.0) * (0.9635) + \ 1049 (abs(eta) > 1.5 && abs(eta) <= 4.0) * (pt > 10.0) * (0.9624) + \ 1050 (abs(eta) > 4.0) * (0.00)} 1051 1052 } 1053 931 1054 ###################### 932 1055 # Electron isolation # … … 949 1072 } 950 1073 1074 1075 ########################## 1076 # Electron isolation CHS # 1077 ########################## 1078 1079 module Isolation ElectronIsolationCHS { 1080 1081 set CandidateInputArray ElectronFilter/electrons 1082 1083 # isolation collection 1084 set IsolationInputArray EFlowMerger/eflow 1085 1086 set OutputArray electrons 1087 1088 set DeltaRMax 0.3 1089 set PTMin 1.0 1090 set PTRatioMax 9999. 1091 1092 } 951 1093 952 1094 … … 995 1137 } 996 1138 1139 ########################### 1140 # Electron efficiency CHS # 1141 ########################### 1142 1143 module Efficiency ElectronEfficiencyCHS { 1144 1145 set InputArray ElectronIsolationCHS/electrons 1146 set OutputArray electrons 1147 1148 # set EfficiencyFormula {efficiency formula as a function of eta and pt} 1149 # efficiency formula for electrons 1150 set EfficiencyFormula { 1151 (pt <= 4.0) * (0.00) + \ 1152 (abs(eta) <= 1.45 ) * (pt > 4.0 && pt <= 6.0) * (0.50) + \ 1153 (abs(eta) <= 1.45 ) * (pt > 6.0 && pt <= 8.0) * (0.70) + \ 1154 (abs(eta) <= 1.45 ) * (pt > 8.0 && pt <= 10.0) * (0.85) + \ 1155 (abs(eta) <= 1.45 ) * (pt > 10.0 && pt <= 30.0) * (0.94) + \ 1156 (abs(eta) <= 1.45 ) * (pt > 30.0 && pt <= 50.0) * (0.97) + \ 1157 (abs(eta) <= 1.45 ) * (pt > 50.0 && pt <= 70.0) * (0.98) + \ 1158 (abs(eta) <= 1.45 ) * (pt > 70.0 ) * (1.0) + \ 1159 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 4.0 && pt <= 10.0) * (0.35) + \ 1160 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 10.0 && pt <= 30.0) * (0.40) + \ 1161 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 30.0 && pt <= 70.0) * (0.45) + \ 1162 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 70.0 ) * (0.55) + \ 1163 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 4.0 && pt <= 10.0) * (0.75) + \ 1164 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 10.0 && pt <= 30.0) * (0.85) + \ 1165 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 30.0 && pt <= 50.0) * (0.95) + \ 1166 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 50.0 && pt <= 70.0) * (0.95) + \ 1167 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 70.0 ) * (1.0) + \ 1168 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 4.0 && pt <= 10.0) * (0.65) + \ 1169 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 10.0 && pt <= 30.0) * (0.75) + \ 1170 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 30.0 && pt <= 50.0) * (0.90) + \ 1171 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 50.0 && pt <= 70.0) * (0.90) + \ 1172 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 70.0 ) * (0.90) + \ 1173 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 4.0 && pt <= 10.0) * (0.65) + \ 1174 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 10.0 && pt <= 30.0) * (0.75) + \ 1175 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 30.0 && pt <= 50.0) * (0.90) + \ 1176 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 50.0 && pt <= 70.0) * (0.90) + \ 1177 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 70.0 ) * (0.90) + \ 1178 (abs(eta) > 4.0) * (0.00) 1179 1180 } 1181 } 1182 1183 997 1184 ################## 998 1185 # Muon isolation # … … 1013 1200 } 1014 1201 1015 1016 ################## 1017 # Muon Loose Id # 1018 ################## 1202 ###################### 1203 # Muon isolation CHS # 1204 ###################### 1205 1206 module Isolation MuonIsolationCHS { 1207 set CandidateInputArray MuonMomentumSmearing/muons 1208 1209 # isolation collection 1210 set IsolationInputArray EFlowMerger/eflow 1211 1212 set OutputArray muons 1213 1214 set DeltaRMax 0.3 1215 set PTMin 1.0 1216 set PTRatioMax 9999. 1217 1218 } 1219 1220 1221 ##################### 1222 # Muon Loose Id # 1223 ##################### 1019 1224 1020 1225 module Efficiency MuonLooseIdEfficiency { … … 1038 1243 } 1039 1244 1245 1246 ##################### 1247 # Muon Loose Id CHS # 1248 ##################### 1249 1250 module Efficiency MuonLooseIdEfficiencyCHS { 1251 set InputArray MuonIsolationCHS/muons 1252 set OutputArray muons 1253 # tracking + LooseID efficiency formula for muons 1254 source muonLooseId.tcl 1255 1256 } 1257 1258 1259 ###################### 1260 # Muon Tight Id CHS # 1261 ###################### 1262 1263 module Efficiency MuonTightIdEfficiencyCHS { 1264 set InputArray MuonIsolationCHS/muons 1265 set OutputArray muons 1266 # tracking + TightID efficiency formula for muons 1267 source muonTightId.tcl 1268 } 1040 1269 1041 1270 … … 1250 1479 module StatusPidFilter GenParticleFilter { 1251 1480 1252 set InputArray 1481 set InputArray Delphes/allParticles 1253 1482 set OutputArray filteredParticles 1254 1483 set PTMin 5.0 … … 1278 1507 add Branch MuonLooseIdEfficiency/muons MuonLoose Muon 1279 1508 add Branch MuonTightIdEfficiency/muons MuonTight Muon 1509 1510 add Branch PhotonEfficiencyCHS/photons PhotonCHS Photon 1511 add Branch ElectronEfficiencyCHS/electrons ElectronCHS Electron 1512 add Branch MuonLooseIdEfficiencyCHS/muons MuonLooseCHS Muon 1513 add Branch MuonTightIdEfficiencyCHS/muons MuonTightCHS Muon 1280 1514 1281 1515 add Branch JetEnergyScale/jets Jet Jet … … 1289 1523 add Branch GenPileUpMissingET/momentum GenPileUpMissingET MissingET 1290 1524 add Branch ScalarHT/energy ScalarHT ScalarHT 1291 } 1525 1526 } -
cards/CMS_PhaseII/CMS_PhaseII_Substructure_PIX4022_200PU.tcl
r20ca0cd r9327245 33 33 PhotonEnergySmearing 34 34 ElectronFilter 35 35 36 TrackPileUpSubtractor 37 RecoPuFilter 36 38 37 39 TowerMerger 38 40 NeutralEFlowMerger 39 EFlowMergerAllTracks 41 40 42 EFlowMerger 43 EFlowMergerCHS 44 Rho 41 45 42 46 LeptonFilterNoLep … … 48 52 49 53 PhotonIsolation 54 PhotonIsolationCHS 50 55 PhotonEfficiency 56 PhotonEfficiencyCHS 51 57 52 58 ElectronIsolation 59 ElectronIsolationCHS 60 53 61 ElectronEfficiency 62 ElectronEfficiencyCHS 54 63 55 64 MuonIsolation 65 MuonIsolationCHS 66 56 67 MuonLooseIdEfficiency 57 68 MuonTightIdEfficiency 69 70 MuonLooseIdEfficiencyCHS 71 MuonTightIdEfficiencyCHS 58 72 59 73 NeutrinoFilter … … 68 82 FastJetFinder 69 83 FastJetFinderAK8 84 JetPileUpSubtractor 85 JetPileUpSubtractorAK8 70 86 FastJetFinderPUPPI 71 87 FastJetFinderPUPPIAK8 … … 126 142 set TVertexSpread 800E-12 127 143 128 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s) 144 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s) - {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))} 129 145 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))} 130 146 … … 138 154 module ParticlePropagator ParticlePropagator { 139 155 set InputArray PileUpMerger/stableParticles 156 #set InputArray Delphes/stableParticles 140 157 141 158 set OutputArray stableParticles … … 272 289 source muonMomentumResolution.tcl 273 290 } 274 275 276 277 291 278 292 ############## … … 526 540 } 527 541 542 ######################## 543 # Reco PU filter 544 ######################## 545 546 module RecoPuFilter RecoPuFilter { 547 set InputArray HCal/eflowTracks 548 set OutputArray eflowTracks 549 } 528 550 529 551 ################################################### … … 538 560 } 539 561 540 541 562 #################### 542 563 # Neutral eflow erger … … 550 571 } 551 572 552 553 #################### 573 ##################### 554 574 # Energy flow merger 555 #################### 575 ##################### 556 576 557 577 module Merger EFlowMerger { … … 563 583 } 564 584 565 ############################ ######566 # Energy flow merger (all tracks)567 ############################ ######568 569 module Merger EFlowMerger AllTracks{585 ############################ 586 # Energy flow merger no PU 587 ############################ 588 589 module Merger EFlowMergerCHS { 570 590 # add InputArray InputArray 571 add InputArray TrackMerger/tracks591 add InputArray RecoPuFilter/eflowTracks 572 592 add InputArray PhotonEnergySmearing/eflowPhotons 573 593 add InputArray HCal/eflowNeutralHadrons … … 694 714 } 695 715 696 697 716 ##################### 698 717 # MC truth jet finder … … 735 754 736 755 737 738 ############ 756 ############# 757 # Rho pile-up 758 ############# 759 760 module FastJetFinder Rho { 761 # set InputArray Calorimeter/towers 762 set InputArray EFlowMergerCHS/eflow 763 764 set ComputeRho true 765 set RhoOutputArray rho 766 767 # area algorithm: 0 Do not compute area, 1 Active area explicit ghosts, 2 One ghost passive area, 3 Passive area, 4 Voronoi, 5 Active area 768 set AreaAlgorithm 5 769 770 # jet algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt 771 set JetAlgorithm 4 772 set ParameterR 0.4 773 set GhostEtaMax 5.0 774 775 add RhoEtaRange -5.0 -4.0 776 add RhoEtaRange -4.0 -1.5 777 add RhoEtaRange -1.5 1.5 778 add RhoEtaRange 1.5 4.0 779 add RhoEtaRange 4.0 5.0 780 781 set JetPTMin 0.0 782 } 783 784 785 ############## 739 786 # Jet finder 740 ############ 787 ############## 741 788 742 789 module FastJetFinder FastJetFinder { 743 790 # set InputArray TowerMerger/towers 744 set InputArray EFlowMerger /eflow791 set InputArray EFlowMergerCHS/eflow 745 792 746 793 set OutputArray jets 794 795 set AreaAlgorithm 5 747 796 748 797 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt … … 756 805 module FastJetFinder FastJetFinderAK8 { 757 806 # set InputArray TowerMerger/towers 758 set InputArray EFlowMerger /eflow807 set InputArray EFlowMergerCHS/eflow 759 808 760 809 set OutputArray jets 810 811 set AreaAlgorithm 5 761 812 762 813 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt … … 785 836 } 786 837 838 ########################### 839 # Jet Pile-Up Subtraction 840 ########################### 841 842 module JetPileUpSubtractor JetPileUpSubtractor { 843 set JetInputArray FastJetFinder/jets 844 set RhoInputArray Rho/rho 845 846 set OutputArray jets 847 848 set JetPTMin 15.0 849 } 850 851 ############################## 852 # Jet Pile-Up Subtraction AK8 853 ############################## 854 855 module JetPileUpSubtractor JetPileUpSubtractorAK8 { 856 set JetInputArray FastJetFinderAK8/jets 857 set RhoInputArray Rho/rho 858 859 set OutputArray jets 860 861 set JetPTMin 15.0 862 } 863 787 864 module FastJetFinder FastJetFinderPUPPI { 788 865 # set InputArray TowerMerger/towers … … 834 911 835 912 module EnergyScale JetEnergyScale { 836 set InputArray FastJetFinder/jets913 set InputArray JetPileUpSubtractor/jets 837 914 set OutputArray jets 838 915 … … 842 919 843 920 module EnergyScale JetEnergyScaleAK8 { 844 set InputArray FastJetFinderAK8/jets921 set InputArray JetPileUpSubtractorAK8/jets 845 922 set OutputArray jets 846 923 … … 908 985 } 909 986 987 988 ######################## 989 # Photon isolation CHS # 990 ######################## 991 992 module Isolation PhotonIsolationCHS { 993 994 # particle for which calculate the isolation 995 set CandidateInputArray PhotonFilter/photons 996 997 # isolation collection 998 set IsolationInputArray EFlowMerger/eflow 999 1000 # output array 1001 set OutputArray photons 1002 1003 # isolation cone 1004 set DeltaRMax 0.3 1005 1006 # minimum pT 1007 set PTMin 1.0 1008 1009 # iso ratio to cut 1010 set PTRatioMax 9999. 1011 1012 } 910 1013 911 1014 … … 930 1033 931 1034 1035 ##################### 1036 # Photon efficiency # 1037 ##################### 1038 1039 module Efficiency PhotonEfficiencyCHS { 1040 1041 ## input particles 1042 set InputArray PhotonIsolationCHS/photons 1043 ## output particles 1044 set OutputArray photons 1045 # set EfficiencyFormula {efficiency formula as a function of eta and pt} 1046 # efficiency formula for photons 1047 set EfficiencyFormula { (pt <= 10.0) * (0.00) + \ 1048 (abs(eta) <= 1.5) * (pt > 10.0) * (0.9635) + \ 1049 (abs(eta) > 1.5 && abs(eta) <= 4.0) * (pt > 10.0) * (0.9624) + \ 1050 (abs(eta) > 4.0) * (0.00)} 1051 1052 } 1053 932 1054 ###################### 933 1055 # Electron isolation # … … 950 1072 } 951 1073 1074 1075 ########################## 1076 # Electron isolation CHS # 1077 ########################## 1078 1079 module Isolation ElectronIsolationCHS { 1080 1081 set CandidateInputArray ElectronFilter/electrons 1082 1083 # isolation collection 1084 set IsolationInputArray EFlowMerger/eflow 1085 1086 set OutputArray electrons 1087 1088 set DeltaRMax 0.3 1089 set PTMin 1.0 1090 set PTRatioMax 9999. 1091 1092 } 952 1093 953 1094 … … 996 1137 } 997 1138 1139 ########################### 1140 # Electron efficiency CHS # 1141 ########################### 1142 1143 module Efficiency ElectronEfficiencyCHS { 1144 1145 set InputArray ElectronIsolationCHS/electrons 1146 set OutputArray electrons 1147 1148 # set EfficiencyFormula {efficiency formula as a function of eta and pt} 1149 # efficiency formula for electrons 1150 set EfficiencyFormula { 1151 (pt <= 4.0) * (0.00) + \ 1152 (abs(eta) <= 1.45 ) * (pt > 4.0 && pt <= 6.0) * (0.50) + \ 1153 (abs(eta) <= 1.45 ) * (pt > 6.0 && pt <= 8.0) * (0.70) + \ 1154 (abs(eta) <= 1.45 ) * (pt > 8.0 && pt <= 10.0) * (0.85) + \ 1155 (abs(eta) <= 1.45 ) * (pt > 10.0 && pt <= 30.0) * (0.94) + \ 1156 (abs(eta) <= 1.45 ) * (pt > 30.0 && pt <= 50.0) * (0.97) + \ 1157 (abs(eta) <= 1.45 ) * (pt > 50.0 && pt <= 70.0) * (0.98) + \ 1158 (abs(eta) <= 1.45 ) * (pt > 70.0 ) * (1.0) + \ 1159 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 4.0 && pt <= 10.0) * (0.35) + \ 1160 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 10.0 && pt <= 30.0) * (0.40) + \ 1161 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 30.0 && pt <= 70.0) * (0.45) + \ 1162 (abs(eta) > 1.45 && abs(eta) <= 1.55) * (pt > 70.0 ) * (0.55) + \ 1163 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 4.0 && pt <= 10.0) * (0.75) + \ 1164 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 10.0 && pt <= 30.0) * (0.85) + \ 1165 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 30.0 && pt <= 50.0) * (0.95) + \ 1166 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 50.0 && pt <= 70.0) * (0.95) + \ 1167 (abs(eta) >= 1.55 && abs(eta) <= 2.0 ) * (pt > 70.0 ) * (1.0) + \ 1168 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 4.0 && pt <= 10.0) * (0.65) + \ 1169 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 10.0 && pt <= 30.0) * (0.75) + \ 1170 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 30.0 && pt <= 50.0) * (0.90) + \ 1171 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 50.0 && pt <= 70.0) * (0.90) + \ 1172 (abs(eta) >= 2.0 && abs(eta) <= 2.5 ) * (pt > 70.0 ) * (0.90) + \ 1173 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 4.0 && pt <= 10.0) * (0.65) + \ 1174 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 10.0 && pt <= 30.0) * (0.75) + \ 1175 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 30.0 && pt <= 50.0) * (0.90) + \ 1176 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 50.0 && pt <= 70.0) * (0.90) + \ 1177 (abs(eta) > 2.5 && abs(eta) <= 4.0 ) * (pt > 70.0 ) * (0.90) + \ 1178 (abs(eta) > 4.0) * (0.00) 1179 1180 } 1181 } 1182 1183 998 1184 ################## 999 1185 # Muon isolation # … … 1014 1200 } 1015 1201 1016 1017 ################## 1018 # Muon Loose Id # 1019 ################## 1202 ###################### 1203 # Muon isolation CHS # 1204 ###################### 1205 1206 module Isolation MuonIsolationCHS { 1207 set CandidateInputArray MuonMomentumSmearing/muons 1208 1209 # isolation collection 1210 set IsolationInputArray EFlowMerger/eflow 1211 1212 set OutputArray muons 1213 1214 set DeltaRMax 0.3 1215 set PTMin 1.0 1216 set PTRatioMax 9999. 1217 1218 } 1219 1220 1221 ##################### 1222 # Muon Loose Id # 1223 ##################### 1020 1224 1021 1225 module Efficiency MuonLooseIdEfficiency { … … 1039 1243 } 1040 1244 1245 1246 ##################### 1247 # Muon Loose Id CHS # 1248 ##################### 1249 1250 module Efficiency MuonLooseIdEfficiencyCHS { 1251 set InputArray MuonIsolationCHS/muons 1252 set OutputArray muons 1253 # tracking + LooseID efficiency formula for muons 1254 source muonLooseId.tcl 1255 1256 } 1257 1258 1259 ###################### 1260 # Muon Tight Id CHS # 1261 ###################### 1262 1263 module Efficiency MuonTightIdEfficiencyCHS { 1264 set InputArray MuonIsolationCHS/muons 1265 set OutputArray muons 1266 # tracking + TightID efficiency formula for muons 1267 source muonTightId.tcl 1268 } 1041 1269 1042 1270 … … 1251 1479 module StatusPidFilter GenParticleFilter { 1252 1480 1253 set InputArray 1481 set InputArray Delphes/allParticles 1254 1482 set OutputArray filteredParticles 1255 1483 set PTMin 5.0 … … 1279 1507 add Branch MuonLooseIdEfficiency/muons MuonLoose Muon 1280 1508 add Branch MuonTightIdEfficiency/muons MuonTight Muon 1509 1510 add Branch PhotonEfficiencyCHS/photons PhotonCHS Photon 1511 add Branch ElectronEfficiencyCHS/electrons ElectronCHS Electron 1512 add Branch MuonLooseIdEfficiencyCHS/muons MuonLooseCHS Muon 1513 add Branch MuonTightIdEfficiencyCHS/muons MuonTightCHS Muon 1281 1514 1282 1515 add Branch JetEnergyScale/jets Jet Jet … … 1290 1523 add Branch GenPileUpMissingET/momentum GenPileUpMissingET MissingET 1291 1524 add Branch ScalarHT/energy ScalarHT ScalarHT 1292 } 1525 1526 } -
modules/ModulesLinkDef.h
r20ca0cd r9327245 58 58 #include "modules/StatusPidFilter.h" 59 59 #include "modules/PdgCodeFilter.h" 60 #include "modules/RecoPuFilter.h" 60 61 #include "modules/Cloner.h" 61 62 #include "modules/Weighter.h" … … 103 104 #pragma link C++ class StatusPidFilter+; 104 105 #pragma link C++ class PdgCodeFilter+; 106 #pragma link C++ class RecoPuFilter+; 105 107 #pragma link C++ class Cloner+; 106 108 #pragma link C++ class Weighter+; -
modules/PhotonConversions.cc
r20ca0cd r9327245 59 59 fItInputArray(0), fConversionMap(0), fDecayXsec(0) 60 60 { 61 fDecayXsec = new TF1 ;61 fDecayXsec = new TF1("decayXsec","1.0 - 4.0/3.0 * x * (1.0 - x)", 0.0, 1.0); 62 62 fConversionMap = new DelphesCylindricalFormula; 63 63 } … … 84 84 85 85 fConversionMap->Compile(GetString("ConversionMap", "0.0")); 86 87 #if ROOT_VERSION_CODE < ROOT_VERSION(6,04,00)88 fDecayXsec->Compile("1.0 - 4.0/3.0 * x * (1.0 - x)");89 #else90 fDecayXsec->GetFormula()->Compile("1.0 - 4.0/3.0 * x * (1.0 - x)");91 #endif92 fDecayXsec->SetRange(0.0, 1.0);93 86 94 87 // import array with output from filter/classifier module -
readers/DelphesCMSFWLite.cpp
r20ca0cd r9327245 65 65 ExRootTreeBranch *branchEvent, ExRootTreeBranch *branchRwgt, 66 66 DelphesFactory *factory, TObjArray *allParticleOutputArray, 67 TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray )67 TObjArray *stableParticleOutputArray, TObjArray *partonOutputArray, Bool_t firstEvent) 68 68 { 69 69 70 fwlite::Handle< GenEventInfoProduct > handleGenEventInfo; 70 71 71 fwlite::Handle< LHEEventProduct > handleLHEEvent; 72 73 72 fwlite::Handle< vector< reco::GenParticle > > handleParticle; 73 74 74 vector< reco::GenParticle >::const_iterator itParticle; 75 75 … … 78 78 79 79 handleGenEventInfo.getByLabel(event, "generator"); 80 handleLHEEvent.getByLabel(event, "externalLHEProducer"); 81 handleParticle.getByLabel(event, "genParticles"); 80 81 if (!((handleLHEEvent.getBranchNameFor(event, "source")).empty())) 82 { 83 handleLHEEvent.getByLabel(event, "source"); 84 } 85 else if (!((handleLHEEvent.getBranchNameFor(event, "externalLHEProducer")).empty())) 86 { 87 handleLHEEvent.getByLabel(event, "externalLHEProducer"); 88 } 89 else if (firstEvent) 90 { 91 std::cout<<"Wrong LHEEvent Label! Please, check the input file."<<std::endl; 92 } 93 94 if (!((handleParticle.getBranchNameFor(event, "genParticles")).empty())) 95 { 96 handleParticle.getByLabel(event, "genParticles"); 97 } 98 else if (!((handleParticle.getBranchNameFor(event, "prunedGenParticles")).empty())) 99 { 100 handleParticle.getByLabel(event, "prunedGenParticles"); 101 } 102 else 103 { 104 std::cout<<"Wrong GenParticle Label! Please, check the input file."<<std::endl; 105 exit(-1); 106 } 107 108 Bool_t foundLHE = !((handleLHEEvent.getBranchNameFor(event, "source")).empty()) || !((handleLHEEvent.getBranchNameFor(event, "externalLHEProducer")).empty()); 82 109 83 110 HepMCEvent *element; … … 91 118 Double_t px, py, pz, e, mass; 92 119 Double_t x, y, z; 93 94 const vector< gen::WeightsInfo > &vectorWeightsInfo = handleLHEEvent->weights();95 vector< gen::WeightsInfo >::const_iterator itWeightsInfo;96 120 97 121 element = static_cast<HepMCEvent *>(branchEvent->NewEntry()); … … 117 141 element->ProcTime = 0.0; 118 142 119 for(itWeightsInfo = vectorWeightsInfo.begin(); itWeightsInfo != vectorWeightsInfo.end(); ++itWeightsInfo) 120 { 121 weight = static_cast<Weight *>(branchRwgt->NewEntry()); 122 weight->Weight = itWeightsInfo->wgt; 143 144 if(foundLHE) 145 { 146 const vector< gen::WeightsInfo > &vectorWeightsInfo = handleLHEEvent->weights(); 147 vector< gen::WeightsInfo >::const_iterator itWeightsInfo; 148 149 for(itWeightsInfo = vectorWeightsInfo.begin(); itWeightsInfo != vectorWeightsInfo.end(); ++itWeightsInfo) 150 { 151 weight = static_cast<Weight *>(branchRwgt->NewEntry()); 152 weight->Weight = itWeightsInfo->wgt; 153 } 123 154 } 124 155 … … 207 238 Int_t i; 208 239 Long64_t eventCounter, numberOfEvents; 240 Bool_t firstEvent = kTRUE; 209 241 210 242 if(argc < 4) … … 281 313 modularDelphes->Clear(); 282 314 treeWriter->Clear(); 315 283 316 for(event.toBegin(); !event.atEnd() && !interrupted; ++event) 284 317 { 285 318 ConvertInput(event, eventCounter, branchEvent, branchRwgt, factory, 286 allParticleOutputArray, stableParticleOutputArray, partonOutputArray );319 allParticleOutputArray, stableParticleOutputArray, partonOutputArray, firstEvent); 287 320 modularDelphes->ProcessTask(); 321 322 firstEvent = kFALSE; 288 323 289 324 treeWriter->Fill();
Note:
See TracChangeset
for help on using the changeset viewer.