Changeset 9be57d9 in git
- Timestamp:
- Feb 27, 2015, 1:41:42 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- fa33983
- Parents:
- d5cae2b (diff), 532016b (diff), 76ab6be (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rd5cae2b r9be57d9 29 29 OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH))) 30 30 endif 31 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils 31 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon 32 32 endif 33 33 -
doc/genMakefile.tcl
rd5cae2b r9be57d9 219 219 OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH))) 220 220 endif 221 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils 221 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon 222 222 endif 223 223 -
modules/ModulesLinkDef.h
rd5cae2b r9be57d9 50 50 #include "modules/JetPileUpSubtractor.h" 51 51 #include "modules/TrackPileUpSubtractor.h" 52 #include "modules/TaggingParticlesSkimmer.h" 52 53 #include "modules/PileUpJetID.h" 53 54 #include "modules/ConstituentFilter.h" … … 89 90 #pragma link C++ class JetPileUpSubtractor+; 90 91 #pragma link C++ class TrackPileUpSubtractor+; 92 #pragma link C++ class TaggingParticlesSkimmer+; 91 93 #pragma link C++ class PileUpJetID+; 92 94 #pragma link C++ class ConstituentFilter+; -
modules/TauTagging.cc
rd5cae2b r9be57d9 33 33 #include "classes/DelphesFactory.h" 34 34 #include "classes/DelphesFormula.h" 35 36 #include "ExRootAnalysis/ExRootResult.h"37 #include "ExRootAnalysis/ExRootFilter.h"38 #include "ExRootAnalysis/ExRootClassifier.h"39 35 40 36 #include "TMath.h" … … 53 49 using namespace std; 54 50 55 //------------------------------------------------------------------------------56 57 class TauTaggingPartonClassifier : public ExRootClassifier58 {59 public:60 61 TauTaggingPartonClassifier(const TObjArray *array);62 63 Int_t GetCategory(TObject *object);64 65 Double_t fEtaMax, fPTMin;66 67 const TObjArray *fParticleInputArray;68 };69 51 70 52 //------------------------------------------------------------------------------ … … 79 61 { 80 62 Candidate *tau = static_cast<Candidate *>(object); 81 Candidate *daughter = 0; 63 Candidate *daughter1 = 0; 64 Candidate *daughter2 = 0; 65 82 66 const TLorentzVector &momentum = tau->Momentum; 83 Int_t pdgCode, i ;67 Int_t pdgCode, i, j; 84 68 85 69 pdgCode = TMath::Abs(tau->PID); … … 98 82 for(i = tau->D1; i <= tau->D2; ++i) 99 83 { 100 daughter = static_cast<Candidate *>(fParticleInputArray->At(i)); 101 pdgCode = TMath::Abs(daughter->PID); 102 if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15 || pdgCode == 24) return -1; 84 daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i)); 85 pdgCode = TMath::Abs(daughter1->PID); 86 if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15) return -1; 87 else if(pdgCode == 24) 88 { 89 if(daughter1->D1 < 0) return -1; 90 for(j = daughter1->D1; j <= daughter1->D2; ++j) 91 { 92 daughter2 = static_cast<Candidate*>(fParticleInputArray->At(j)); 93 pdgCode = TMath::Abs(daughter2->PID); 94 if(pdgCode == 11 || pdgCode == 13) return -1; 95 } 96 97 } 103 98 } 104 99 -
modules/TauTagging.h
rd5cae2b r9be57d9 31 31 32 32 #include "classes/DelphesModule.h" 33 #include "ExRootAnalysis/ExRootResult.h" 34 #include "ExRootAnalysis/ExRootFilter.h" 35 #include "ExRootAnalysis/ExRootClassifier.h" 33 36 34 37 #include <map> … … 76 79 }; 77 80 81 82 //------------------------------------------------------------------------------ 83 84 class TauTaggingPartonClassifier : public ExRootClassifier 85 { 86 public: 87 88 TauTaggingPartonClassifier(const TObjArray *array); 89 90 Int_t GetCategory(TObject *object); 91 92 Double_t fEtaMax, fPTMin; 93 94 const TObjArray *fParticleInputArray; 95 }; 96 97 78 98 #endif
Note:
See TracChangeset
for help on using the changeset viewer.