Changes in / [837fa70:a7c9002] in git
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
cards/FCC/FCChh.tcl
r837fa70 ra7c9002 15 15 16 16 set ExecutionPath { 17 17 18 ParticlePropagator 18 19 … … 32 33 Calorimeter 33 34 EFlowMerger 34 35 EFlowFilter 36 35 37 PhotonEfficiency 36 38 PhotonIsolation … … 62 64 63 65 UniqueObjectFinder 66 67 GenParticleFilter 64 68 65 69 TreeWriter … … 410 414 } 411 415 416 ###################### 417 # EFlowFilter 418 ###################### 419 420 module PdgCodeFilter EFlowFilter { 421 set InputArray EFlowMerger/eflow 422 set OutputArray eflow 423 424 add PdgCode {11} 425 add PdgCode {-11} 426 add PdgCode {13} 427 add PdgCode {-13} 428 } 429 412 430 413 431 ################### … … 573 591 module Isolation PhotonIsolation { 574 592 set CandidateInputArray PhotonEfficiency/photons 575 set IsolationInputArray EFlow Merger/eflow593 set IsolationInputArray EFlowFilter/eflow 576 594 577 595 set OutputArray photons … … 593 611 module Isolation ElectronIsolation { 594 612 set CandidateInputArray ElectronFilter/electrons 595 set IsolationInputArray EFlow Merger/eflow613 set IsolationInputArray EFlowFilter/eflow 596 614 597 615 set OutputArray electrons … … 613 631 module Isolation MuonIsolation { 614 632 set CandidateInputArray MuonMomentumSmearing/muons 615 set IsolationInputArray EFlow Merger/eflow633 set IsolationInputArray EFlowFilter/eflow 616 634 617 635 set OutputArray muons … … 637 655 638 656 (pt <= 10.0) * (0.00) + 639 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.001) + \ 640 (abs(eta) < 2.5) * (pt > 500.0) * (0.001)*(1.0 - pt/50000.) + \ 641 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.00075) + \ 642 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0) * (0.00075)*(1.0 - pt/50000.) + \ 657 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.001) + \ 658 (abs(eta) < 2.5) * (pt > 500.0 && pt < 20000.0) * (0.001)*(1.0 - pt/20000.) + \ 659 (abs(eta) < 2.5) * (pt > 20000.0) * (0.000) + \ 660 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.00075) + \ 661 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 20000.0) * (0.00075)*(1.0 - pt/20000.) + \ 662 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 20000.0) * (0.000) + \ 643 663 (abs(eta) > 4.0) * (0.00)} 644 664 … … 646 666 647 667 (pt <= 10.0) * (0.00) + 648 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.04) + \ 649 (abs(eta) < 2.5) * (pt > 500.0) * (0.04)*(1.0 - pt/50000.) + \ 650 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.03) + \ 651 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0) * (0.03)*(1.0 - pt/50000.) + \ 668 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.04) + \ 669 (abs(eta) < 2.5) * (pt > 500.0 && pt < 20000.0) * (0.04)*(1.0 - pt/20000.) + \ 670 (abs(eta) < 2.5) * (pt > 20000.0) * (0.000) + \ 671 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.03) + \ 672 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 20000.0) * (0.03)*(1.0 - pt/20000.) + \ 673 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 20000.0) * (0.000) + \ 652 674 (abs(eta) > 4.0) * (0.00)} 653 675 654 676 add EfficiencyFormula {5} { 655 677 656 (pt <= 10.0) * (0.00) + 657 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.85) + \ 658 (abs(eta) < 2.5) * (pt > 500.0) * (0.85)*(1.0 - pt/50000.) + \ 659 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.64) + \ 660 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0) * (0.64)*(1.0 - pt/50000.) + \ 661 (abs(eta) > 4.0) * (0.00)} 678 (pt <= 10.0) * (0.00) + 679 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.85) + 680 (abs(eta) < 2.5) * (pt > 500.0 && pt < 20000.0) * (0.85)*(1.0 - pt/20000.) + 681 (abs(eta) < 2.5) * (pt > 20000.0) * (0.000) + 682 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.64) + 683 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 20000.0) * (0.64)*(1.0 - pt/20000.) + 684 (abs(eta) <= 2.5 && abs(eta) < 4.0) * (pt > 20000.0) * (0.000) + 685 (abs(eta) >= 4.0) * (0.00)} 662 686 663 687 } … … 712 736 add EfficiencyFormula {0} { 713 737 714 (pt <= 10.0) * (0.00) + 715 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.01) + \ 716 (abs(eta) < 2.5) * (pt > 5000.0) * (0.01) *(8./9. - pt/45000.) + \ 717 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.0075) + \ 718 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0) * (0.0075)*(8./9. - pt/45000.) + \ 738 (pt <= 10.0) * (0.00) + 739 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.01) + \ 740 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.01) *(8./9. - pt/30000.) + \ 741 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \ 742 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.0075) + \ 743 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.0075)*(8./9. - pt/30000.) + \ 744 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \ 719 745 (abs(eta) > 4.0) * (0.00)} 720 746 721 747 add EfficiencyFormula {11} { 722 748 723 (pt <= 10.0) * (0.00) + 724 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.005) + \ 725 (abs(eta) < 2.5) * (pt > 5000.0) * (0.005) *(8./9. - pt/45000.) + \ 726 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.00375) + \ 727 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0) * (0.00375)*(8./9. - pt/45000.) + \ 749 (pt <= 10.0) * (0.00) + 750 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.005) + \ 751 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.005) *(8./9. - pt/30000.) + \ 752 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \ 753 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.00375) + \ 754 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.00375)*(8./9. - pt/30000.) + \ 755 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \ 728 756 (abs(eta) > 4.0) * (0.00)} 729 757 730 758 add EfficiencyFormula {15} { 731 759 732 (pt <= 10.0) * (0.00) + 733 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.6) + \ 734 (abs(eta) < 2.5) * (pt > 5000.0) * (0.6) *(8./9. - pt/45000.) + \ 735 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.45) + \ 736 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0) * (0.45)*(8./9. - pt/45000.) + \ 737 (abs(eta) > 4.0) * (0.00)} 760 (pt <= 10.0) * (0.00) + 761 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.6) + \ 762 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.6) *(8./9. - pt/30000.) + \ 763 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \ 764 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.45) + \ 765 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.45)*(8./9. - pt/30000.) + \ 766 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \ 767 (abs(eta) > 4.0) * (0.00)} 738 768 739 769 } … … 753 783 } 754 784 785 ###################### 786 # GenParticleFilter 787 ###################### 788 789 # store only interesting particles 790 module StatusPidFilter GenParticleFilter { 791 set InputArray Delphes/allParticles 792 set OutputArray filteredParticles 793 set PTMin 0.0 794 795 } 755 796 756 797 ################## … … 761 802 # add Branch InputArray BranchName BranchClass 762 803 add Branch Delphes/allParticles Particle GenParticle 804 add Branch GenParticleFilter/filteredParticles FilteredParticle GenParticle 763 805 764 806 add Branch GenJetFinder/jets GenJet Jet -
cards/delphes_card_ATLAS.tcl
r837fa70 ra7c9002 21 21 Calorimeter 22 22 EFlowMerger 23 23 EFlowFilter 24 24 25 PhotonEfficiency 25 26 PhotonIsolation … … 405 406 } 406 407 408 ###################### 409 # EFlowFilter 410 ###################### 411 412 module PdgCodeFilter EFlowFilter { 413 set InputArray EFlowMerger/eflow 414 set OutputArray eflow 415 416 add PdgCode {11} 417 add PdgCode {-11} 418 add PdgCode {13} 419 add PdgCode {-13} 420 } 421 407 422 ################### 408 423 # Photon efficiency … … 428 443 module Isolation PhotonIsolation { 429 444 set CandidateInputArray PhotonEfficiency/photons 430 set IsolationInputArray EFlow Merger/eflow445 set IsolationInputArray EFlowFilter/eflow 431 446 432 447 set OutputArray photons … … 439 454 } 440 455 441 #################442 # Electron filter443 #################444 445 module PdgCodeFilter ElectronFilter {446 set InputArray HCal/eflowTracks447 set OutputArray electrons448 set Invert true449 add PdgCode {11}450 add PdgCode {-11}451 }452 456 453 457 ##################### … … 474 478 module Isolation ElectronIsolation { 475 479 set CandidateInputArray ElectronEfficiency/electrons 476 set IsolationInputArray EFlow Merger/eflow480 set IsolationInputArray EFlowFilter/eflow 477 481 478 482 set OutputArray electrons … … 508 512 module Isolation MuonIsolation { 509 513 set CandidateInputArray MuonEfficiency/muons 510 set IsolationInputArray EFlow Merger/eflow514 set IsolationInputArray EFlowFilter/eflow 511 515 512 516 set OutputArray muons -
cards/delphes_card_ATLAS_PileUp.tcl
r837fa70 ra7c9002 23 23 EFlowMergerAllTracks 24 24 EFlowMerger 25 25 EFlowFilter 26 26 27 NeutrinoFilter 27 28 GenJetFinder … … 372 373 } 373 374 375 ###################### 376 # EFlowFilter 377 ###################### 378 379 module PdgCodeFilter EFlowFilter { 380 set InputArray EFlowMergerAllTracks/eflow 381 set OutputArray eflow 382 383 add PdgCode {11} 384 add PdgCode {-11} 385 add PdgCode {13} 386 add PdgCode {-13} 387 } 388 389 374 390 ############# 375 391 # Rho pile-up … … 508 524 module Isolation PhotonIsolation { 509 525 set CandidateInputArray PhotonEfficiency/photons 510 set IsolationInputArray EFlow MergerAllTracks/eflow526 set IsolationInputArray EFlowFilter/eflow 511 527 set RhoInputArray Rho/rho 512 528 … … 543 559 module Isolation ElectronIsolation { 544 560 set CandidateInputArray ElectronEfficiency/electrons 545 set IsolationInputArray EFlow MergerAllTracks/eflow561 set IsolationInputArray EFlowFilter/eflow 546 562 set RhoInputArray Rho/rho 547 563 … … 578 594 module Isolation MuonIsolation { 579 595 set CandidateInputArray MuonEfficiency/muons 580 set IsolationInputArray EFlow MergerAllTracks/eflow596 set IsolationInputArray EFlowFilter/eflow 581 597 set RhoInputArray Rho/rho 582 598 -
cards/delphes_card_CMS.tcl
r837fa70 ra7c9002 21 21 Calorimeter 22 22 EFlowMerger 23 23 EFlowFilter 24 24 25 PhotonEfficiency 25 26 PhotonIsolation … … 317 318 318 319 set EnergyMin 1.0 319 set EnergySignificanceMin 2.0320 set EnergySignificanceMin 1.0 320 321 321 322 set SmearTowerCenter true … … 418 419 } 419 420 421 ###################### 422 # EFlowFilter 423 ###################### 424 425 module PdgCodeFilter EFlowFilter { 426 set InputArray EFlowMerger/eflow 427 set OutputArray eflow 428 429 add PdgCode {11} 430 add PdgCode {-11} 431 add PdgCode {13} 432 add PdgCode {-13} 433 } 434 435 420 436 ################### 421 437 # Photon efficiency … … 441 457 module Isolation PhotonIsolation { 442 458 set CandidateInputArray PhotonEfficiency/photons 443 set IsolationInputArray EFlow Merger/eflow459 set IsolationInputArray EFlowFilter/eflow 444 460 445 461 set OutputArray photons … … 476 492 module Isolation ElectronIsolation { 477 493 set CandidateInputArray ElectronEfficiency/electrons 478 set IsolationInputArray EFlow Merger/eflow494 set IsolationInputArray EFlowFilter/eflow 479 495 480 496 set OutputArray electrons … … 510 526 module Isolation MuonIsolation { 511 527 set CandidateInputArray MuonEfficiency/muons 512 set IsolationInputArray EFlow Merger/eflow528 set IsolationInputArray EFlowFilter/eflow 513 529 514 530 set OutputArray muons -
cards/delphes_card_CMS_PileUp.tcl
r837fa70 ra7c9002 26 26 EFlowMergerAllTracks 27 27 EFlowMerger 28 28 EFlowFilter 29 29 30 NeutrinoFilter 30 31 GenJetFinder … … 436 437 } 437 438 439 ###################### 440 # EFlowFilter 441 ###################### 442 443 module PdgCodeFilter EFlowFilter { 444 set InputArray EFlowMergerAllTracks/eflow 445 set OutputArray eflow 446 447 add PdgCode {11} 448 add PdgCode {-11} 449 add PdgCode {13} 450 add PdgCode {-13} 451 } 438 452 439 453 ########################## … … 653 667 module Isolation PhotonIsolation { 654 668 set CandidateInputArray PhotonEfficiency/photons 655 set IsolationInputArray EFlow MergerAllTracks/eflow669 set IsolationInputArray EFlowFilter/eflow 656 670 set RhoInputArray Rho/rho 657 671 … … 688 702 module Isolation ElectronIsolation { 689 703 set CandidateInputArray ElectronEfficiency/electrons 690 set IsolationInputArray EFlow MergerAllTracks/eflow704 set IsolationInputArray EFlowFilter/eflow 691 705 set RhoInputArray Rho/rho 692 706 … … 724 738 module Isolation MuonIsolation { 725 739 set CandidateInputArray MuonEfficiency/muons 726 set IsolationInputArray EFlow MergerAllTracks/eflow740 set IsolationInputArray EFlowFilter/eflow 727 741 set RhoInputArray Rho/rho 728 742 -
cards/delphes_card_ILD.tcl
r837fa70 ra7c9002 23 23 Calorimeter 24 24 EFlowMerger 25 25 EFlowFilter 26 26 27 PhotonEfficiency 27 28 PhotonIsolation … … 350 351 } 351 352 353 ###################### 354 # EFlowFilter 355 ###################### 356 357 module PdgCodeFilter EFlowFilter { 358 set InputArray EFlowMerger/eflow 359 set OutputArray eflow 360 361 add PdgCode {11} 362 add PdgCode {-11} 363 add PdgCode {13} 364 add PdgCode {-13} 365 } 366 352 367 353 368 ################### … … 491 506 module Isolation PhotonIsolation { 492 507 set CandidateInputArray PhotonEfficiency/photons 493 set IsolationInputArray EFlow Merger/eflow508 set IsolationInputArray EFlowFilter/eflow 494 509 495 510 set OutputArray photons … … 525 540 module Isolation ElectronIsolation { 526 541 set CandidateInputArray ElectronEfficiency/electrons 527 set IsolationInputArray EFlow Merger/eflow542 set IsolationInputArray EFlowFilter/eflow 528 543 529 544 set OutputArray electrons … … 561 576 module Isolation MuonIsolation { 562 577 set CandidateInputArray MuonEfficiency/muons 563 set IsolationInputArray EFlow Merger/eflow578 set IsolationInputArray EFlowFilter/eflow 564 579 565 580 set OutputArray muons -
classes/DelphesHepMCReader.cc
r837fa70 ra7c9002 51 51 using namespace std; 52 52 53 static const int kBufferSize = 1024;53 static const int kBufferSize = 16384; 54 54 55 55 //--------------------------------------------------------------------------- -
classes/DelphesLHEFReader.cc
r837fa70 ra7c9002 48 48 using namespace std; 49 49 50 static const int kBufferSize = 1024;50 static const int kBufferSize = 16384; 51 51 52 52 //--------------------------------------------------------------------------- -
examples/Example1.py
r837fa70 ra7c9002 10 10 11 11 ROOT.gSystem.Load("libDelphes") 12 13 try: 14 ROOT.gInterpreter.Declare('#include "classes/DelphesClasses.h"') 15 ROOT.gInterpreter.Declare('#include "external/ExRootAnalysis/ExRootTreeReader.h"') 16 except: 17 pass 12 18 13 19 inputFile = sys.argv[1] -
examples/Validation.cpp
r837fa70 ra7c9002 250 250 eta = TMath::Abs(genMomentum.Eta()); 251 251 252 252 253 if(eta > etamax || eta < etamin ) continue; 253 254 255 //cout<<"b parton: "<<pt<<endl; 254 256 if (particle->PID == pdgID && genMomentum.Pt() > ptmin && genMomentum.Pt() < ptmax ) 255 257 { … … 279 281 if( !(jet->BTag & (1 << 0)) ) continue; 280 282 } 281 282 if(TMath::Abs(pdgID) == 1)283 284 if(TMath::Abs(pdgID) == 1) 283 285 { 284 286 Jet *jet = (Jet *)recoObj; … … 299 301 } 300 302 } 301 302 303 histGenPt->Fill(pt); 303 if(deltaR < 0.3 ) { histRecoPt->Fill(pt);}304 if(deltaR < 0.3 && bestRecoMomentum.Pt()> 0.20*pt ) { histRecoPt->Fill(pt);} 304 305 305 306 } … … 1352 1353 TClonesArray *branchCaloJet = treeReaderJet->UseBranch("CaloJet"); 1353 1354 TClonesArray *branchJet = treeReaderJet->UseBranch("Jet"); 1354 1355 1355 1356 TClonesArray *branchParticleBJet = treeReaderBJet->UseBranch("Particle"); 1356 1357 TClonesArray *branchPFBJet = treeReaderBJet->UseBranch("Jet"); … … 1404 1405 1405 1406 TPaveText *pave = new TPaveText(0.0, 0.89, 0.94, 0.94,"NDC"); 1406 pave->SetTextAlign( kHAlignRight);1407 pave->SetTextAlign(30); 1407 1408 pave->SetTextFont(132); 1408 1409 pave->SetBorderSize(0); … … 1439 1440 const int n_ptbins = ptVals.size(); 1440 1441 1441 1442 1442 ////////////////////////// 1443 1443 // Tracking performance // … … 1906 1906 TGraphErrors gr_pfele_res_eta[n_ptbins]; 1907 1907 1908 TGraphErrors gr_trkele_res_e[n_etabins]; 1909 TGraphErrors gr_trkele_res_eeta[n_ptbins]; 1910 1908 1911 std::vector<resolPlot> plots_pfele_res_e[n_etabins], plots_pfele_res_eta[n_ptbins]; 1912 std::vector<resolPlot> plots_trkele_res_e[n_etabins], plots_trkele_res_eeta[n_ptbins]; 1909 1913 1910 1914 TCanvas *c_pfele_res_e[n_etabins]; … … 1922 1926 gr_pfele_res_e[k] = EresGraph(&plots_pfele_res_e[k]); 1923 1927 1928 HistogramsCollection(&plots_trkele_res_e[k], TMath::Log10(ptMin), TMath::Log10(ptMax), "trkele"); 1929 GetEres<Track>(&plots_trkele_res_e[k], branchTrackElectron, branchParticleElectron, 11, etaVals.at(k), etaVals.at(k+1), treeReaderElectron); 1930 gr_trkele_res_e[k] = EresGraph(&plots_trkele_res_e[k]); 1931 1924 1932 s_etaMin = Form("%.1f",etaVals.at(k)); 1925 1933 s_etaMax = Form("%.1f",etaVals.at(k+1)); … … 1930 1938 1931 1939 addResoGraph(mg_pfele_res_e[k], &gr_ecal_res_e[k], leg_pfele_res_e[k], markerStyles.at(0), colors.at(0), "ECAL"); 1932 addResoGraph(mg_pfele_res_e[k], &gr_trkele_res_ pt[k], leg_pfele_res_e[k], markerStyles.at(1), colors.at(1), "Track");1940 addResoGraph(mg_pfele_res_e[k], &gr_trkele_res_e[k], leg_pfele_res_e[k], markerStyles.at(1), colors.at(1), "Track"); 1933 1941 addResoGraph(mg_pfele_res_e[k], &gr_pfele_res_e[k], leg_pfele_res_e[k], markerStyles.at(2), colors.at(2), "Particle-flow"); 1934 1942 … … 1961 1969 gr_pfele_res_eta[k] = EresGraphVsEta(&plots_pfele_res_eta[k]); 1962 1970 1971 HistogramsCollectionVsEta(&plots_trkele_res_eeta[k], etaMin, etaMax, 0.5*ptVals.at(k), 2.0*ptVals.at(k), "trkele", 0.0, 2.0); 1972 GetEresVsEta<Track>(&plots_trkele_res_eeta[k], branchTrackElectron, branchParticleElectron, 11, 0.5*ptVals.at(k), 2.0*ptVals.at(k), treeReaderElectron); 1973 gr_trkele_res_eeta[k] = EresGraphVsEta(&plots_trkele_res_eeta[k]); 1974 1963 1975 s_e = Form("e^{ #pm}, E = %.0f GeV",ptVals.at(k)); 1964 1976 if(ptVals.at(k) >= 1000.) s_e = Form("e^{ #pm}, E = %.0f TeV",ptVals.at(k)/1000.); … … 1969 1981 1970 1982 addResoGraph(mg_pfele_res_eta[k], &gr_ecal_res_eta[k], leg_pfele_res_eta[k], markerStyles.at(0), colors.at(0), "ECAL"); 1971 addResoGraph(mg_pfele_res_eta[k], &gr_trkele_res_e ta[k], leg_pfele_res_eta[k], markerStyles.at(1), colors.at(1), "Track");1983 addResoGraph(mg_pfele_res_eta[k], &gr_trkele_res_eeta[k], leg_pfele_res_eta[k], markerStyles.at(1), colors.at(1), "Track"); 1972 1984 addResoGraph(mg_pfele_res_eta[k], &gr_pfele_res_eta[k], leg_pfele_res_eta[k], markerStyles.at(2), colors.at(2), "Particle-flow"); 1973 1985 … … 2001 2013 TGraphErrors gr_pfpi_res_eta[n_ptbins]; 2002 2014 2015 TGraphErrors gr_trkpi_res_e[n_etabins]; 2016 TGraphErrors gr_trkpi_res_eeta[n_ptbins]; 2017 2003 2018 std::vector<resolPlot> plots_pfpi_res_e[n_etabins], plots_pfpi_res_eta[n_ptbins]; 2019 std::vector<resolPlot> plots_trkpi_res_e[n_etabins], plots_trkpi_res_eeta[n_ptbins]; 2004 2020 2005 2021 TCanvas *c_pfpi_res_e[n_etabins]; … … 2017 2033 gr_pfpi_res_e[k] = EresGraph(&plots_pfpi_res_e[k]); 2018 2034 2035 HistogramsCollection(&plots_trkpi_res_e[k], TMath::Log10(ptMin), TMath::Log10(ptMax), "trkpi"); 2036 GetEres<Track>(&plots_trkpi_res_e[k], branchTrackPion, branchParticlePion, 211, etaVals.at(k), etaVals.at(k+1), treeReaderPion); 2037 gr_trkpi_res_e[k] = EresGraph(&plots_trkpi_res_e[k]); 2038 2039 2019 2040 s_etaMin = Form("%.1f",etaVals.at(k)); 2020 2041 s_etaMax = Form("%.1f",etaVals.at(k+1)); … … 2025 2046 2026 2047 addResoGraph(mg_pfpi_res_e[k], &gr_hcal_res_e[k], leg_pfpi_res_e[k], markerStyles.at(0), colors.at(0), "HCAL"); 2027 addResoGraph(mg_pfpi_res_e[k], &gr_trkpi_res_ pt[k], leg_pfpi_res_e[k], markerStyles.at(1), colors.at(1), "Track");2048 addResoGraph(mg_pfpi_res_e[k], &gr_trkpi_res_e[k], leg_pfpi_res_e[k], markerStyles.at(1), colors.at(1), "Track"); 2028 2049 addResoGraph(mg_pfpi_res_e[k], &gr_pfpi_res_e[k], leg_pfpi_res_e[k], markerStyles.at(2), colors.at(2), "Particle-flow"); 2029 2050 … … 2056 2077 gr_pfpi_res_eta[k] = EresGraphVsEta(&plots_pfpi_res_eta[k]); 2057 2078 2079 HistogramsCollectionVsEta(&plots_trkpi_res_eeta[k], etaMin, etaMax, 0.5*ptVals.at(k), 2.0*ptVals.at(k), "trkpi", 0.0, 2.0); 2080 GetEresVsEta<Track>(&plots_trkpi_res_eeta[k], branchPion, branchParticlePion, 211, 0.5*ptVals.at(k), 2.0*ptVals.at(k), treeReaderPion); 2081 gr_trkpi_res_eeta[k] = EresGraphVsEta(&plots_trkpi_res_eeta[k]); 2082 2083 2058 2084 s_e = Form("#pi^{ #pm}, E = %.0f GeV",ptVals.at(k)); 2059 2085 if(ptVals.at(k) >= 1000.) s_e = Form("#pi^{ #pm}, E = %.0f TeV",ptVals.at(k)/1000.); … … 2063 2089 2064 2090 addResoGraph(mg_pfpi_res_eta[k], &gr_hcal_res_eta[k], leg_pfpi_res_eta[k], markerStyles.at(0), colors.at(0), "HCAL"); 2065 addResoGraph(mg_pfpi_res_eta[k], &gr_trkpi_res_e ta[k], leg_pfpi_res_eta[k], markerStyles.at(1), colors.at(1), "Track");2091 addResoGraph(mg_pfpi_res_eta[k], &gr_trkpi_res_eeta[k], leg_pfpi_res_eta[k], markerStyles.at(1), colors.at(1), "Track"); 2066 2092 addResoGraph(mg_pfpi_res_eta[k], &gr_pfpi_res_eta[k], leg_pfpi_res_eta[k], markerStyles.at(2), colors.at(2), "Particle-flow"); 2067 2093 … … 2418 2444 c_recpho_eff_eta->Print(figPath+"img_recpho_eff_eta.png","png"); 2419 2445 2446 2420 2447 ///////////////////////////////////////// 2421 2448 // B-jets Efficiency/ mistag rates /// … … 2482 2509 c_recbjet_eff_eta->Print(figPath+"img_recbjet_eff_eta.png","png"); 2483 2510 2484 2485 2486 2511 // ------ c - mistag ------ 2487 2512 … … 2560 2585 for (k = 0; k < etaVals.size()-1; k++) 2561 2586 { 2562 2587 2563 2588 h_recbjet_lmis_pt = GetEffPt<Jet>(branchJet, branchParticleJet, "Jet", 1, ptMin, ptMax, etaVals.at(k), etaVals.at(k+1), treeReaderJet); 2564 2589 gr_recbjet_lmis_pt[k] = TGraphErrors(h_recbjet_lmis_pt); … … 2589 2614 2590 2615 mg_recbjet_lmis_pt->Draw("APE"); 2591 DrawAxis(mg_recbjet_lmis_pt, leg_recbjet_lmis_pt, ptMin, ptMax, 0.0, 0. 005, "p_{T} [GeV]", "light - mistag rate (%)", true, false);2616 DrawAxis(mg_recbjet_lmis_pt, leg_recbjet_lmis_pt, ptMin, ptMax, 0.0, 0.5, "p_{T} [GeV]", "light - mistag rate (%)", true, false); 2592 2617 leg_recbjet_lmis_pt->Draw(); 2593 2618 pave->Draw(); … … 2600 2625 2601 2626 mg_recbjet_lmis_eta->Draw("APE"); 2602 DrawAxis(mg_recbjet_lmis_eta, leg_recbjet_lmis_eta, etaMin, etaMax, 0.0, 0. 005, " #eta ", "light - mistag rate (%)", false, false);2627 DrawAxis(mg_recbjet_lmis_eta, leg_recbjet_lmis_eta, etaMin, etaMax, 0.0, 0.5, " #eta ", "light - mistag rate (%)", false, false); 2603 2628 leg_recbjet_lmis_eta->Draw(); 2604 2629 pave->Draw(); … … 2718 2743 2719 2744 mg_rectaujet_mis_pt->Draw("APE"); 2720 DrawAxis(mg_rectaujet_mis_pt, leg_rectaujet_mis_pt, ptMin, ptMax, 0.0, 10., "p_{T} [GeV]", "#tau - mistag(%)", true, false);2745 DrawAxis(mg_rectaujet_mis_pt, leg_rectaujet_mis_pt, ptMin, ptMax, 0.0, 5., "p_{T} [GeV]", "#tau - mistag(%)", true, false); 2721 2746 leg_rectaujet_mis_pt->Draw(); 2722 2747 pave->Draw(); … … 2750 2775 plots_trkpi_res_pt[k].at(bin).resolHist->Write(); 2751 2776 plots_trkele_res_pt[k].at(bin).resolHist->Write(); 2752 2777 plots_trkmu_res_pt[k].at(bin).resolHist->Write(); 2753 2778 plots_ecal_res_e[k].at(bin).resolHist->Write(); 2754 2779 plots_hcal_res_e[k].at(bin).resolHist->Write(); … … 2780 2805 2781 2806 fout->Write(); 2807 2808 2809 2782 2810 2783 2811 cout << "** Exiting..." << endl; -
external/fastjet/CMakeLists.txt
r837fa70 ra7c9002 1 include_directories( ${CMAKE_SOURCE_DIR}/external)1 include_directories(BEFORE ${CMAKE_SOURCE_DIR}/external) 2 2 3 3 file(GLOB sources *.cc plugins/*/*.cc contribs/*/*.cc tools/*.cc) -
modules/CMakeLists.txt
r837fa70 ra7c9002 18 18 19 19 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx) 20 21 # install public headers 22 install(FILES Delphes.h DESTINATION include/modules) -
modules/StatusPidFilter.cc
r837fa70 ra7c9002 104 104 pass = kFALSE; 105 105 106 // status == 3106 // hard scattering particles (first condition for Py6, second for Py8) 107 107 if(status == 3) pass = kTRUE; 108 if(status > 20 && status < 30 ) pass = kTRUE; 108 109 109 110 // electrons, muons, taus and neutrinos … … 111 112 112 113 // heavy quarks 113 if(pdgCode == 5 || pdgCode == 6) pass = kTRUE;114 if(pdgCode == 4 ||pdgCode == 5 || pdgCode == 6) pass = kTRUE; 114 115 115 116 // Gauge bosons and other fundamental bosons 116 117 if(pdgCode > 22 && pdgCode < 43) pass = kTRUE; 117 118 118 if(!pass || candidate->Momentum.Pt() < =fPTMin) continue;119 if(!pass || candidate->Momentum.Pt() < fPTMin) continue; 119 120 120 121 fOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.