13 double puCent[11] = {-5,-4,-3,-2,-1,0,1,2,3,4,5};
24 src_ ( iConfig.getParameter<edm::InputTag>(
"src") ),
25 jetType_ (iConfig.getParameter<std::string>(
"jetType") ),
26 rhoTag_ (iConfig.getParameter<std::string>(
"rhoTag") )
31 produces<reco::CaloJetCollection >();
34 produces<reco::PFJetCollection >();
37 produces<reco::GenJetCollection >();
40 throw cms::Exception(
"InvalidInput") <<
"invalid jet type in HiL1Subtractor\n";
72 int rsize = rs->size();
74 for(
int j = 0;
j < rsize;
j++){
75 double medianpt=rs->at(
j);
80 int jetsize = h_jets->size();
81 for(
int ijet = 0; ijet < jetsize; ++ijet){
85 double jet_eta = jet.
eta();
86 double jet_et = jet.
et();
94 if (jet_eta<-2.5 && jet_eta>-3.5)rho=
medianPtkt[2];
95 if (jet_eta<-1.5 && jet_eta>-2.5)rho=
medianPtkt[3];
96 if (jet_eta<-0.5 && jet_eta>-1.5)rho=
medianPtkt[4];
97 if (jet_eta<0.5 && jet_eta>-0.5)rho=
medianPtkt[5];
98 if (jet_eta<1.5 && jet_eta>0.5)rho=
medianPtkt[6];
99 if (jet_eta<2.5 && jet_eta>1.5)rho=
medianPtkt[7];
100 if (jet_eta<3.5 && jet_eta>2.5)rho=
medianPtkt[8];
102 double jet_area = jet.
jetArea();
104 double CorrFactor =0.;
105 if(rho*jet_area<jet_et) CorrFactor = 1.0 - rho*jet_area/jet_et;
113 jets->push_back(jet);
130 int rsize = rs->size();
132 for(
int j = 0;
j < rsize;
j++){
133 double medianpt=rs->at(
j);
139 int jetsize = h_jets->size();
141 for(
int ijet = 0; ijet < jetsize; ++ijet){
145 double jet_eta = jet.
eta();
146 double jet_et = jet.
et();
150 if(fabs(jet_eta)<=3){
154 if (jet_eta<-2.5 && jet_eta>-3.5)rho=
medianPtkt[2];
155 if (jet_eta<-1.5 && jet_eta>-2.5)rho=
medianPtkt[3];
156 if (jet_eta<-0.5 && jet_eta>-1.5)rho=
medianPtkt[4];
157 if (jet_eta<0.5 && jet_eta>-0.5)rho=
medianPtkt[5];
158 if (jet_eta<1.5 && jet_eta>0.5)rho=
medianPtkt[6];
159 if (jet_eta<2.5 && jet_eta>1.5)rho=
medianPtkt[7];
160 if (jet_eta<3.5 && jet_eta>2.5)rho=
medianPtkt[8];
162 double jet_area = jet.
jetArea();
164 double CorrFactor =0.;
165 if(rho*jet_area<jet_et) CorrFactor = 1.0 - rho*jet_area/jet_et;
174 jets->push_back(jet);
192 int rsize = rs->size();
194 for(
int j = 0;
j < rsize;
j++){
195 double medianpt=rs->at(
j);
201 int jetsize = h_jets->size();
203 for(
int ijet = 0; ijet < jetsize; ++ijet){
207 double jet_eta = jet.
eta();
208 double jet_et = jet.
et();
212 if(fabs(jet_eta)<=3){
216 if (jet_eta<-2.5 && jet_eta>-3.5)rho=
medianPtkt[2];
217 if (jet_eta<-1.5 && jet_eta>-2.5)rho=
medianPtkt[3];
218 if (jet_eta<-0.5 && jet_eta>-1.5)rho=
medianPtkt[4];
219 if (jet_eta<0.5 && jet_eta>-0.5)rho=
medianPtkt[5];
220 if (jet_eta<1.5 && jet_eta>0.5)rho=
medianPtkt[6];
221 if (jet_eta<2.5 && jet_eta>1.5)rho=
medianPtkt[7];
222 if (jet_eta<3.5 && jet_eta>2.5)rho=
medianPtkt[8];
224 double jet_area = jet.
jetArea();
226 double CorrFactor =0.;
227 if(rho*jet_area<jet_et) CorrFactor = 1.0 - rho*jet_area/jet_et;
236 jets->push_back(jet);
Jets made from CaloTowers.
virtual double et() const
transverse energy
virtual void setPileup(float fEnergy)
Set pileup energy contribution as calculated by algorithm.
#define DEFINE_FWK_MODULE(type)
std::vector< GenJet > GenJetCollection
collection of GenJet objects
virtual void scaleEnergy(double fScale)
scale energy of the jet
HiL1Subtractor(const edm::ParameterSet &)
Jets made from PFObjects.
virtual double eta() const
momentum pseudorapidity
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Jets made from MC generator particles.
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< PFJet > PFJetCollection
collection of PFJet objects
virtual float jetArea() const
get jet area
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects