57 _patJets ( iConfig.getParameter<edm::InputTag>(
"patJets" ) ),
58 _patMuons ( iConfig.getParameter<edm::InputTag>(
"patMuons" ) ),
59 _patElectrons ( iConfig.getParameter<edm::InputTag>(
"patElectrons" ) ),
60 _patPhotons ( iConfig.getParameter<edm::InputTag>(
"patPhotons" ) ),
61 _patTaus ( iConfig.getParameter<edm::InputTag>(
"patTaus" ) ),
63 _minJetEt ( iConfig.getParameter<double>(
"minJetEt") ),
64 _minMuonEt ( iConfig.getParameter<double>(
"minMuonEt") ),
65 _minElectronEt ( iConfig.getParameter<double>(
"minElectronEt") ),
66 _minTauEt ( iConfig.getParameter<double>(
"minTauEt") ),
67 _minPhotonEt ( iConfig.getParameter<double>(
"minPhotonEt") ),
69 _maxJetEta ( iConfig.getParameter<double>(
"maxJetEta") ),
70 _maxMuonEta ( iConfig.getParameter<double>(
"maxMuonEta") ),
71 _maxElectronEta ( iConfig.getParameter<double>(
"maxElectronEta") ),
72 _maxTauEta ( iConfig.getParameter<double>(
"maxTauEta") ),
73 _maxPhotonEta ( iConfig.getParameter<double>(
"maxPhotonEta") ),
75 _seedMethod ( iConfig.getParameter<int>(
"seedMethod") ),
76 _combinationMethod ( iConfig.getParameter<int>(
"combinationMethod") )
81 produces< std::vector<pat::Hemisphere> >();
127 for(
int i = 0;
i < (int) (*pJets).size() ;
i++){
133 for(
int i = 0;
i < (int) (*pMuons).size() ;
i++){
139 for(
int i = 0;
i < (int) (*pElectrons).size() ;
i++){
145 for(
int i = 0;
i < (int) (*pPhotons).size() ;
i++){
152 for(
int i = 0;
i < (int) (*pTaus).size() ;
i++){
159 std::auto_ptr< std::vector<Hemisphere> > hemispheres(
new std::vector<Hemisphere>);;
160 hemispheres->reserve(2);
178 for (
unsigned int i=0;
i<
vgroups.size(); ++
i ) {
188 iEvent.
put(hemispheres);
edm::InputTag _patElectrons
#define DEFINE_FWK_MODULE(type)
std::vector< reco::CandidatePtr > componentPtrs_
edm::InputTag _patPhotons
std::vector< float > getAxis1()
std::vector< int > vgroups
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< int > getGrouping()
PATHemisphereProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::InputTag _patJets
Input: All PAT objects that are to cross-clean or needed for that.
std::vector< float > getAxis2()