Go to the documentation of this file.
25 #include "fftjet/ProximityClusteringTree.hh"
26 #include "fftjet/OpenDXPeakTree.hh"
58 typedef fftjet::SparseClusteringTree<fftjet::Peak, long>
SparseTree;
59 typedef fftjet::OpenDXPeakTree<long, fftjet::AbsClusteringTree>
DXFormatter;
60 typedef fftjet::OpenDXPeakTree<long, fftjet::SparseClusteringTree>
SparseFormatter;
70 void endJob()
override;
73 void processTreeData(
const edm::Event&, std::ofstream&);
77 if (ptr.get() ==
nullptr)
95 std::unique_ptr<fftjet::AbsDistanceCalculator<fftjet::Peak> >
distanceCalc;
118 : clusteringTree(nullptr),
121 etaMax(ps.getParameter<double>(
"etaMax")),
122 storeInSinglePrecision(
true),
127 throw cms::Exception(
"FFTJetBadConfig") <<
"etaMax can not be negative" << std::endl;
164 template <
class Real>
175 if (
input->isSparse()) {
195 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
T getParameter(std::string const &) const
fftjet::ProximityClusteringTree< fftjet::Peak, long > ClusteringTree
std::unique_ptr< std::vector< double > > iniScales
ClusteringTree * clusteringTree
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)