forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#164 from amarini/taunu_and_hmm
Taunu and hmm
- Loading branch information
Showing
18 changed files
with
111 additions
and
140 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef JET_FILTER_2016_H | ||
#define JET_FILTER_2016_H | ||
|
||
#include "interface/Corrector.hpp" | ||
|
||
#include "TH2D.h" | ||
#include <memory> | ||
|
||
class JetFilter2016: public CorrectorBase | ||
{ | ||
// kill jets accordingly to JetMet Map | ||
std::unique_ptr<TH2D> h; | ||
|
||
public: | ||
void Init() override; | ||
const string name() const override { return "JetFilter2016";} | ||
int correct(Event *e) override ; | ||
//vector<Jet *> & GetJetVector(Event *e) { return e->jets_;} | ||
//inline void Scale( Object&o, float value) { o.Scale(value);} | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#include "interface/JetFilter2016.hpp" | ||
#include "TFile.h" | ||
|
||
//#define DEBUG 2 | ||
|
||
#ifdef DEBUG | ||
#include <iostream> | ||
#endif | ||
|
||
void JetFilter2016::Init(){ | ||
TFile *f=TFile::Open("aux/hotjets-runBCDEFGH.root"); | ||
h.reset( (TH2D*)f->Get("h2jet")->Clone() ) ; | ||
//f->Close(); | ||
} | ||
|
||
int JetFilter2016::correct(Event *e) | ||
{ | ||
#ifdef DEBUG | ||
if (DEBUG>1){ | ||
std::cout <<" BEFORE CORRECTIONS:"; | ||
for(int ijet =0; ;ijet++) | ||
{ | ||
Jet *j= e->GetJet(ijet); | ||
if (j==NULL) break; | ||
std::cout << "("<<j->Pt()<<","<<j->Eta()<<","<<j->Phi()<<") "; | ||
|
||
} | ||
std::cout << std::endl; | ||
} | ||
#endif | ||
|
||
for (auto&j : GetJetVector(e) ) | ||
{ | ||
if ( h->GetBinContent(h->FindBin(j->Eta(), j->Phi())) > 0) | ||
{ | ||
// bad | ||
Scale(*j,0.0); | ||
} | ||
} | ||
#ifdef DEBUG | ||
if (DEBUG>1){ | ||
std::cout <<" AFTER CORRECTIONS:"; | ||
for(int ijet =0; ;ijet++) | ||
{ | ||
Jet *j= e->GetJet(ijet); | ||
if (j==NULL) break; | ||
std::cout << "("<<j->Pt()<<","<<j->Eta()<<","<<j->Phi()<<") "; | ||
|
||
} | ||
std::cout << std::endl; | ||
} | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.