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 #7470 from cbernet/heppy_7_3_1
Integration of Heppy in 74X
- Loading branch information
Showing
78 changed files
with
2,675 additions
and
1,098 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
#ifndef PhysicsTools_Heppy_ReclusterJets_h | ||
#define PhysicsTools_Heppy_ReclusterJets_h | ||
|
||
#include <vector> | ||
#include <iostream> | ||
#include <cmath> | ||
#include <TLorentzVector.h> | ||
#include <TMath.h> | ||
#include "DataFormats/Math/interface/LorentzVector.h" | ||
|
||
#include <boost/shared_ptr.hpp> | ||
#include <fastjet/internal/base.hh> | ||
#include "fastjet/PseudoJet.hh" | ||
#include "fastjet/JetDefinition.hh" | ||
#include "fastjet/ClusterSequence.hh" | ||
#include "fastjet/Selector.hh" | ||
#include "fastjet/PseudoJet.hh" | ||
|
||
namespace heppy{ | ||
class ReclusterJets { | ||
|
||
public: | ||
typedef math::XYZTLorentzVector LorentzVector; | ||
|
||
ReclusterJets(const std::vector<LorentzVector> & objects, double ktpower, double rparam); | ||
|
||
/// get grouping (inclusive jets) | ||
std::vector<LorentzVector> getGrouping(double ptMin = 0.0); | ||
|
||
/// get grouping (exclusive jets, until n are left) | ||
std::vector<LorentzVector> getGroupingExclusive(int njets); | ||
/// get grouping (exclusive jets, up to cut dcut) | ||
std::vector<LorentzVector> getGroupingExclusive(double dcut); | ||
|
||
private: | ||
// pack the returns in a fwlite-friendly way | ||
std::vector<LorentzVector> makeP4s(const std::vector<fastjet::PseudoJet> &jets) ; | ||
|
||
// used to handle the inputs | ||
std::vector<fastjet::PseudoJet> fjInputs_; // fastjet inputs | ||
|
||
double ktpower_; | ||
double rparam_; | ||
|
||
/// fastjet outputs | ||
typedef boost::shared_ptr<fastjet::ClusterSequence> ClusterSequencePtr; | ||
ClusterSequencePtr fjClusterSeq_; | ||
std::vector<fastjet::PseudoJet> inclusiveJets_; | ||
std::vector<fastjet::PseudoJet> exclusiveJets_; | ||
}; | ||
} | ||
#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
Oops, something went wrong.