85 jetSrc_(iConfig.getParameter<
InputTag>(
"src")),
86 deltaR_(iConfig.getParameter<double>(
"deltaR")),
87 ptCut_(iConfig.getParameter<double>(
"ptCut")),
88 makeNew_(iConfig.getUntrackedParameter<bool>(
"createNewCollection",
true)),
89 fillDummy_(iConfig.getUntrackedParameter<bool>(
"fillDummyEntries",
true))
92 produces<T2Collection>().setBranchAlias (alias);
113 using namespace reco;
115 auto_ptr<T2Collection>
jets;
121 int jetsize = genjets->size();
124 for(
int ijet = 0; ijet < jetsize; ++ijet){
128 vector<int> selectedIndices;
129 vector<int> removedIndices;
131 for(
int ijet = 0; ijet < jetsize; ++ijet){
133 const T2* jet1 = &((*genjets)[ijet]);
137 for(
int ijet2 = 0; ijet2 < jetsize; ++ijet2){
139 if(ijet2 == ijet)
continue;
141 const T2* jet2 = &((*genjets)[ijet2]);
144 if(jet1->et() < jet2->et()){
146 removedIndices.push_back(ijet);
150 removedIndices.push_back(ijet2);
156 double etjet = ((*genjets)[ijet]).et();
158 if(
selection[ijet] == 1 && etjet > ptCut_){
159 selectedIndices.push_back(ijet);
160 jets->push_back(*jet1);
std::vector< T2 > T2Collection
DEFINE_FWK_MODULE(HiMixingModule)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
HiGenCleaner< reco::GenParticle > HiPartonCleaner
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
HiGenCleaner< reco::GenJet > HiGenJetCleaner
double deltaR(const Vector1 &v1, const Vector2 &v2)
HiGenCleaner(const edm::ParameterSet &)