forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Legacy fiducial and differential xs measurement full Run2 (cms-analys…
…is#1166) + Factorized fiducial and differential xs workflow + Prompt 2016 analysis strategy + Full Run2 optimize categorization Co-authored-by: Simone Pigazzi <[email protected]> Co-authored-by: abeschi <[email protected]> Co-authored-by: Simone Pigazzini <[email protected]> Co-authored-by: Seth Zenz <[email protected]> Co-authored-by: vtavolar <[email protected]> Co-authored-by: Pasquale Musella <[email protected]> Co-authored-by: gfasanel <[email protected]> Co-authored-by: Shervin <[email protected]> Co-authored-by: Nadezda <nadezda.chernyavskaya>
- Loading branch information
Showing
124 changed files
with
63,466 additions
and
197,717 deletions.
There are no files selected for viewing
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,50 @@ | ||
#ifndef FLASHgg_GenJetExtra_h | ||
#define FLASHgg_GenJetExtra_h | ||
|
||
//#include "flashgg/DataFormats/interface/Jet.h" | ||
#include "DataFormats/PatCandidates/interface/PackedGenParticle.h" | ||
#include "DataFormats/JetReco/interface/GenJet.h" | ||
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" | ||
#include "DataFormats/Common/interface/Ptr.h" | ||
|
||
#include <string> | ||
|
||
namespace flashgg { | ||
|
||
class GenJetExtra : public reco::GenJet | ||
{ | ||
|
||
public: | ||
GenJetExtra(){} | ||
GenJetExtra(const reco::GenJet &j) : reco::GenJet(j) {} | ||
|
||
bool hasBottom() const {return hasBottom_;} | ||
void setHasBottom( bool x ){hasBottom_ = x;} | ||
|
||
bool hasBquark() const {return hasBquark_;} | ||
void setHasBquark( bool x ){hasBquark_ = x;} | ||
|
||
bool deltaRBquarkGenJet() const {return deltaRBquarkGenjet_;} | ||
void setDeltaRBquarkGenjet( double x ){deltaRBquarkGenjet_ = x;} | ||
|
||
bool jetPtOverBquarkPt() const {return jetPtOverBquarkPt_;} | ||
void setJetPtOverBquarkPt( double x ){jetPtOverBquarkPt_ = x;} | ||
|
||
|
||
private: | ||
bool hasBottom_; | ||
bool hasBquark_; | ||
double deltaRBquarkGenjet_; | ||
double jetPtOverBquarkPt_; | ||
}; | ||
} | ||
|
||
#endif | ||
// Local Variables: | ||
// mode:c++ | ||
// indent-tabs-mode:nil | ||
// tab-width:4 | ||
// c-basic-offset:4 | ||
// End: | ||
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | ||
|
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,64 @@ | ||
#ifndef FLASHgg_GenLeptonExtra_h | ||
#define FLASHgg_GenLeptonExtra_h | ||
|
||
//#include "flashgg/DataFormats/interface/Lepton.h" | ||
#include "DataFormats/PatCandidates/interface/PackedGenParticle.h" | ||
#include "DataFormats/Candidate/interface/ShallowCloneCandidate.h" | ||
#include "DataFormats/Common/interface/Ptr.h" | ||
|
||
#include <string> | ||
|
||
namespace flashgg { | ||
|
||
class GenLeptonExtra : public reco::ShallowCloneCandidate | ||
{ | ||
|
||
public: | ||
typedef edm::Ptr<pat::PackedGenParticle> ptr_type; | ||
typedef ptr_type::value_type cand_type; | ||
// typedef Lepton::mcMatch_t match_type; //FIXME | ||
|
||
GenLeptonExtra() {} | ||
GenLeptonExtra( ptr_type ptr ) : ptr_( ptr ) {} | ||
|
||
|
||
bool operator==( const ptr_type &rhs ) const { return ptr_ == rhs; } | ||
bool operator!=( const ptr_type &rhs ) const { return ptr_ != rhs; } | ||
|
||
const cand_type &cand() const { return *ptr_; } | ||
ptr_type ptr() const { return ptr_; } | ||
void setPtr( ptr_type x ) { ptr_ = x; } | ||
|
||
float genIso() const { return genIso_; } | ||
void setGenIso( float x ) { genIso_ = x; } | ||
|
||
float genIsoAfterDressing() const { return genIsoAfterDressing_; } | ||
void setGenIsoAfterDressing( float x ) { genIsoAfterDressing_ = x; } | ||
|
||
// reco::Particle::LorentzVector dressedP4() const { return dressedP4_; } | ||
// void setDressedP4( reco::Particle::LorentzVector x ) { dressedP4_ = x; } | ||
// void setP4( reco::Particle::LorentzVector x ) { p4_ = x; } | ||
|
||
// void copyTo( flashgg::Lepton &fg, const std::string &postFix = "" ) const | ||
// { | ||
// fg.addUserFloat( "genIso" + postFix, genIso_ ); | ||
// } | ||
|
||
private: | ||
ptr_type ptr_; | ||
float genIso_; | ||
float genIsoAfterDressing_; | ||
// reco::Particle::LorentzVector dressedP4_; | ||
// reco::Particle::LorentzVector p4_; | ||
}; | ||
} | ||
|
||
#endif | ||
// Local Variables: | ||
// mode:c++ | ||
// indent-tabs-mode:nil | ||
// tab-width:4 | ||
// c-basic-offset:4 | ||
// End: | ||
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | ||
|
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
Oops, something went wrong.