Go to the documentation of this file.
27 #include "fftjet/ProximityClusteringTree.hh"
28 #include "fftjet/OpenDXPeakTree.hh"
60 typedef fftjet::SparseClusteringTree<fftjet::Peak, long>
SparseTree;
61 typedef fftjet::OpenDXPeakTree<long, fftjet::AbsClusteringTree>
DXFormatter;
62 typedef fftjet::OpenDXPeakTree<long, fftjet::SparseClusteringTree>
SparseFormatter;
72 void endJob()
override;
75 void processTreeData(
const edm::Event&, std::ofstream&);
79 if (ptr.get() ==
nullptr)
97 std::unique_ptr<fftjet::AbsDistanceCalculator<fftjet::Peak> >
distanceCalc;
120 : clusteringTree(nullptr),
123 etaMax(ps.getParameter<double>(
"etaMax")),
124 storeInSinglePrecision(
true),
129 throw cms::Exception(
"FFTJetBadConfig") <<
"etaMax can not be negative" << std::endl;
166 template <
class Real>
177 if (
input->isSparse()) {
197 throw cms::Exception(
"FFTJetBadConfig") <<
"Failed to open file \"" <<
filename.str() <<
"\"" << std::endl;
std::unique_ptr< fftjet::Functor1< double, fftjet::Peak > > fftjet_PeakFunctor_parser(const edm::ParameterSet &ps)
static const std::string input
fftjet::Functor1< double, fftjet::Peak > PeakProperty
std::unique_ptr< SparseFormatter > sparseFormatter
std::unique_ptr< std::vector< double > > fftjet_ScaleSet_parser(const edm::ParameterSet &ps)
~FFTJetTreeDump() override
void processTreeData(const edm::Event &, std::ofstream &)
std::unique_ptr< PeakProperty > glyphSize
fftjet::OpenDXPeakTree< long, fftjet::AbsClusteringTree > DXFormatter
const bool insertCompleteEvent
fftjet::OpenDXPeakTree< long, fftjet::SparseClusteringTree > SparseFormatter
void densePeakTreeFromStorable(const reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > &in, const std::vector< double > *scaleSetIfNotAdaptive, double completeEventScale, fftjet::AbsClusteringTree< fftjet::Peak, long > *out)
const std::string outputPrefix
edm::EDGetTokenT< StoredTree > treeToken
#define DEFINE_FWK_MODULE(type)
const bool storeInSinglePrecision
fftjet::SparseClusteringTree< fftjet::Peak, long > SparseTree
unsigned long long EventNumber_t
void sparsePeakTreeFromStorable(const reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > &in, const std::vector< double > *scaleSetIfNotAdaptive, double completeEventScale, fftjet::SparseClusteringTree< fftjet::Peak, long > *out)
const edm::InputTag treeLabel
Class for storing FFTJet sparse clustering trees.
void checkConfig(const Ptr &ptr, const char *message)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::unique_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > distanceCalc
const double completeEventScale
std::unique_ptr< PeakProperty > glyphColor
reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > StoredTree
fftjet::ProximityClusteringTree< fftjet::Peak, long > ClusteringTree
std::unique_ptr< std::vector< double > > iniScales
ClusteringTree * clusteringTree
T getParameter(std::string const &) const
std::unique_ptr< DXFormatter > denseFormatter
void analyze(const edm::Event &, const edm::EventSetup &) override
std::unique_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > fftjet_DistanceCalculator_parser(const edm::ParameterSet &ps)