25 #include "fftjet/ProximityClusteringTree.hh" 26 #include "fftjet/OpenDXPeakTree.hh" 59 typedef fftjet::SparseClusteringTree<fftjet::Peak,long>
SparseTree;
60 typedef fftjet::OpenDXPeakTree<long,fftjet::AbsClusteringTree>
DXFormatter;
61 typedef fftjet::OpenDXPeakTree<long,fftjet::SparseClusteringTree>
SparseFormatter;
71 void endJob()
override ;
74 void processTreeData(
const edm::Event&, std::ofstream&);
79 if (ptr.get() ==
nullptr)
97 std::unique_ptr<fftjet::AbsDistanceCalculator<fftjet::Peak> >
distanceCalc;
123 etaMax(ps.getParameter<double>(
"etaMax")),
124 storeInSinglePrecision(
true),
131 <<
"etaMax can not be negative" << std::endl;
218 std::ofstream
file(filename.str().c_str());
221 <<
"Failed to open file \"" 222 << filename.str() <<
"\"" << std::endl;
fftjet::OpenDXPeakTree< long, fftjet::AbsClusteringTree > DXFormatter
T getParameter(std::string const &) const
EventNumber_t event() const
Class for storing FFTJet sparse clustering trees.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::InputTag treeLabel
std::unique_ptr< fftjet::Functor1< double, fftjet::Peak > > fftjet_PeakFunctor_parser(const edm::ParameterSet &ps)
unsigned long long EventNumber_t
void checkConfig(const Ptr &ptr, const char *message)
void processTreeData(const edm::Event &, std::ofstream &)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< StoredTree > treeToken
static std::string const input
#define DEFINE_FWK_MODULE(type)
ClusteringTree * clusteringTree
fftjet::Functor1< double, fftjet::Peak > PeakProperty
~FFTJetTreeDump() override
fftjet::ProximityClusteringTree< fftjet::Peak, long > ClusteringTree
reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > StoredTree
std::unique_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > distanceCalc
const bool storeInSinglePrecision
const std::string outputPrefix
std::unique_ptr< DXFormatter > denseFormatter
fftjet::SparseClusteringTree< fftjet::Peak, long > SparseTree
std::unique_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > fftjet_DistanceCalculator_parser(const edm::ParameterSet &ps)
fftjet::OpenDXPeakTree< long, fftjet::SparseClusteringTree > SparseFormatter
std::unique_ptr< PeakProperty > glyphSize
void sparsePeakTreeFromStorable(const reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > &in, const std::vector< double > *scaleSetIfNotAdaptive, double completeEventScale, fftjet::SparseClusteringTree< fftjet::Peak, long > *out)
void densePeakTreeFromStorable(const reco::PattRecoTree< Real, reco::PattRecoPeak< Real > > &in, const std::vector< double > *scaleSetIfNotAdaptive, double completeEventScale, fftjet::AbsClusteringTree< fftjet::Peak, long > *out)
std::unique_ptr< SparseFormatter > sparseFormatter
const double completeEventScale
const bool insertCompleteEvent
std::unique_ptr< std::vector< double > > iniScales
void analyze(const edm::Event &, const edm::EventSetup &) override
std::unique_ptr< std::vector< double > > fftjet_ScaleSet_parser(const edm::ParameterSet &ps)
std::unique_ptr< PeakProperty > glyphColor