47 std::vector<reco::VoronoiBackground>
vvm;
65 doEqualize_(iConfig.getParameter<bool>(
"doEqualize")),
66 equalizeThreshold0_(iConfig.getParameter<double>(
"equalizeThreshold0")),
67 equalizeThreshold1_(iConfig.getParameter<double>(
"equalizeThreshold1")),
68 equalizeR_(iConfig.getParameter<double>(
"equalizeR")),
69 isCalo_(iConfig.getParameter<bool>(
"isCalo")),
70 etaBins_(iConfig.getParameter<int>(
"etaBins")),
71 fourierOrder_(iConfig.getParameter<int>(
"fourierOrder"))
77 produces<reco::VoronoiMap>();
78 produces<std::vector<float> >();
107 for(
unsigned int i = 0;
i < inputsHandle->size(); ++
i){
116 std::auto_ptr<std::vector<float> > vnout(
new std::vector<float>(voronoi_vn.begin(), voronoi_vn.end()));
120 for(
unsigned int i = 0;
i < inputsHandle->size(); ++
i){
122 const double pre_eq_pt = subtracted_momenta[
i];
123 const double post_eq_pt = equalized_momenta[
i];
124 const double area = particle_area[
i];
125 const double mass_square = ref->massSqr();
126 const double pre_eq_mt =
sqrt(mass_square + pre_eq_pt * pre_eq_pt);
127 const double post_eq_mt =
sqrt(mass_square + post_eq_pt * post_eq_pt);
130 LogDebug(
"VoronoiBackgroundProducer")<<
"Subtraction --- oldpt : "<<ref->pt()<<
" --- newpt : "<<post_eq_pt<<endl;
T getParameter(std::string const &) const
~VoronoiBackgroundProducer()
std::vector< double > perp_fourier(void)
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
VoronoiAlgorithm * voronoi_
virtual void produce(edm::Event &, const edm::EventSetup &)
double equalizeThreshold1_
std::vector< double > particle_area(void)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void push_back_particle(const double perp, const double pseudorapidity, const double azimuth, const unsigned int reduced_particle_flow_id)
void addDefault(ParameterSetDescription const &psetDescription)
VoronoiBackgroundProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< reco::VoronoiBackground > vvm
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
char data[epos_bytes_allocation]
std::vector< double > subtracted_unequalized_perp(void)
double equalizeThreshold0_
std::vector< double > subtracted_equalized_perp(void)