26 #include "fftjet/ProximityClusteringTree.hh"
27 #include "fftjet/OpenDXPeakTree.hh"
44 using namespace fftjetcms;
58 typedef fftjet::SparseClusteringTree<fftjet::Peak,long>
SparseTree;
59 typedef fftjet::OpenDXPeakTree<long,fftjet::AbsClusteringTree>
DXFormatter;
60 typedef fftjet::OpenDXPeakTree<long,fftjet::SparseClusteringTree>
SparseFormatter;
69 virtual void endJob() ;
72 void processTreeData(
const edm::Event&, std::ofstream&);
77 if (ptr.get() ==
NULL)
93 std::auto_ptr<fftjet::AbsDistanceCalculator<fftjet::Peak> >
distanceCalc;
117 treeLabel(ps.getParameter<edm::InputTag>(
"treeLabel")),
118 outputPrefix(ps.getParameter<std::
string>(
"outputPrefix")),
119 etaMax(ps.getParameter<double>(
"etaMax")),
120 storeInSinglePrecision(
true),
121 insertCompleteEvent(ps.getParameter<bool>(
"insertCompleteEvent")),
122 completeEventScale(ps.getParameter<double>(
"completeEventScale")),
127 <<
"etaMax can not be negative" << std::endl;
180 const unsigned long runNum = iEvent.
id().
run();
181 const unsigned long evNum = iEvent.
id().
event();
188 if (input->isSparse())
214 std::ofstream
file(filename.str().c_str());
217 <<
"Failed to open file \""
218 << filename.str() <<
"\"" << std::endl;
fftjet::OpenDXPeakTree< long, fftjet::AbsClusteringTree > DXFormatter
std::auto_ptr< PeakProperty > glyphSize
T getParameter(std::string const &) const
EventNumber_t event() const
Class for storing FFTJet sparse clustering trees.
std::auto_ptr< SparseFormatter > sparseFormatter
#define DEFINE_FWK_MODULE(type)
const edm::InputTag treeLabel
void checkConfig(const Ptr &ptr, const char *message)
void processTreeData(const edm::Event &, std::ofstream &)
std::auto_ptr< std::vector< double > > iniScales
std::auto_ptr< DXFormatter > denseFormatter
ClusteringTree * clusteringTree
fftjet::Functor1< double, fftjet::Peak > PeakProperty
fftjet::ProximityClusteringTree< fftjet::Peak, long > ClusteringTree
std::auto_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > distanceCalc
const bool storeInSinglePrecision
std::auto_ptr< PeakProperty > glyphColor
const std::string outputPrefix
fftjet::SparseClusteringTree< fftjet::Peak, long > SparseTree
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
fftjet::OpenDXPeakTree< long, fftjet::SparseClusteringTree > SparseFormatter
std::auto_ptr< fftjet::Functor1< double, fftjet::Peak > > fftjet_PeakFunctor_parser(const edm::ParameterSet &ps)
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)
const double completeEventScale
std::auto_ptr< fftjet::AbsDistanceCalculator< fftjet::Peak > > fftjet_DistanceCalculator_parser(const edm::ParameterSet &ps)
const bool insertCompleteEvent
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::auto_ptr< std::vector< double > > fftjet_ScaleSet_parser(const edm::ParameterSet &ps)