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);
virtual double et() const GCC11_FINAL
transverse energy
Jets made from CaloTowers.
virtual void setPileup(float fEnergy)
Set pileup energy contribution as calculated by algorithm.
std::vector< GenJet > GenJetCollection
collection of GenJet objects
virtual void scaleEnergy(double fScale)
scale energy of the jet
Jets made from PFObjects.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Jets made from MC generator particles.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
std::vector< PFJet > PFJetCollection
collection of PFJet objects
virtual float jetArea() const
get jet area
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects