61 std::vector<reco::VoronoiBackground>
vvm;
79 doEqualize_(iConfig.getParameter<bool>(
"doEqualize")),
80 equalizeThreshold0_(iConfig.getParameter<double>(
"equalizeThreshold0")),
81 equalizeThreshold1_(iConfig.getParameter<double>(
"equalizeThreshold1")),
82 equalizeR_(iConfig.getParameter<double>(
"equalizeR")),
83 useTextTable_(iConfig.getParameter<bool>(
"useTextTable")),
84 jetCorrectorFormat_(iConfig.getParameter<bool>(
"jetCorrectorFormat")),
85 isCalo_(iConfig.getParameter<bool>(
"isCalo")),
86 tableLabel_(iConfig.getParameter<std::
string>(
"tableLabel")),
87 etaBins_(iConfig.getParameter<int>(
"etaBins")),
88 fourierOrder_(iConfig.getParameter<int>(
"fourierOrder"))
94 produces<reco::VoronoiMap>();
95 produces<std::vector<float> >();
117 const char *calibrationFile =
NULL;
119 if(isData) calibrationFile =
"RecoHI/HiJetAlgos/data/ue_calibrations_hermite_calo_data.txt";
120 if(!isData) calibrationFile =
"RecoHI/HiJetAlgos/data/ue_calibrations_hermite_calo_mc.txt";
122 if(isData) calibrationFile =
"RecoHI/HiJetAlgos/data/ue_calibrations_hermite_pf_data.txt";
123 if(!isData) calibrationFile =
"RecoHI/HiJetAlgos/data/ue_calibrations_hermite_pf_mc.txt";
155 for(
unsigned int i = 0;
i < inputsHandle->size(); ++
i){
164 std::auto_ptr<std::vector<float> > vnout(
new std::vector<float>(voronoi_vn.begin(), voronoi_vn.end()));
168 for(
unsigned int i = 0;
i < inputsHandle->size(); ++
i){
170 const double pre_eq_pt = subtracted_momenta[
i];
171 const double post_eq_pt = equalized_momenta[
i];
172 const double area = particle_area[
i];
173 const double mass_square = ref->massSqr();
174 const double pre_eq_mt =
sqrt(mass_square + pre_eq_pt * pre_eq_pt);
175 const double post_eq_mt =
sqrt(mass_square + post_eq_pt * post_eq_pt);
178 LogDebug(
"VoronoiBackgroundProducer")<<
"Subtraction --- oldpt : "<<ref->pt()<<
" --- newpt : "<<post_eq_pt<<endl;
T getParameter(std::string const &) const
~VoronoiBackgroundProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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
std::vector< float > values
T const * product() const
edm::EDGetTokenT< reco::CandidateView > src_
std::vector< double > subtracted_unequalized_perp(void)
double equalizeThreshold0_
std::vector< double > subtracted_equalized_perp(void)