15 const bool debug =
false;
25 LogDebug(
"SubEventMothers")<<
"Pdg ID : "<<pdg<<endl;
26 if(st == 3 || pdg < 9 || pdg == 21){
27 LogDebug(
"SubEventMothers")<<
"Sub-Collision Found! Pdg ID : "<<pdg<<endl;
32 if(!m1)
LogDebug(
"SubEventMothers")<<
"No Mother, particle is : "<<pdg<<
" with status "<<st<<endl;
44 produces<reco::BasicJetCollection>();
51 std::vector<edm::Ptr<reco::Candidate> >::const_iterator inBegin =
inputs_.begin(),
53 for (;
i != inEnd; ++
i ) {
63 LogDebug(
"SubEventContainers")<<
"SubEvent is : "<<subevent<<endl;
76 subInputs_[subevent].push_back(fastjet::PseudoJet(input->px(),input->py(),input->pz(),
79 subInputs_[subevent].back().set_user_index(
i - inBegin);
86 LogDebug(
"VirtualJetProducer") <<
"Entered produce\n";
97 for (
size_t i = 0;
i < inputsHandle->size(); ++
i) {
98 inputs_.push_back(inputsHandle->ptrAt(
i));
100 LogDebug(
"VirtualJetProducer") <<
"Got inputs\n";
109 std::auto_ptr<std::vector<GenJet> >
jets(
new std::vector<GenJet>() );
112 LogDebug(
"VirtualJetProducer") <<
"Inputted towers\n";
116 for(
size_t isub = 0; isub < nsub; ++isub){
125 LogDebug(
"SubEventJetProducer") <<
"Wrote jets\n";
139 using namespace reco;
141 for (
unsigned int ijet=0;ijet<
fjJets_.size();++ijet) {
144 const fastjet::PseudoJet& fjJet =
fjJets_[ijet];
146 std::vector<fastjet::PseudoJet> fjConstituents =
149 std::vector<CandidatePtr> constituents =
152 double px=fjJet.px();
153 double py=fjJet.py();
154 double pz=fjJet.pz();
162 constituents, iSetup);
virtual void inputTowers()
T getUntrackedParameter(std::string const &, T const &) const
reco::Particle::Point vertex_
std::vector< int > hydroTag_
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
virtual std::vector< reco::CandidatePtr > getConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents)
std::vector< fastjet::PseudoJet > fjJets_
virtual void setPileup(float fEnergy)
Set pileup energy contribution as calculated by algorithm.
virtual int status() const =0
status word
static std::string const input
std::vector< reco::GenJet > * subJets_
virtual bool isAnomalousTower(reco::CandidatePtr input)
virtual void setJetArea(float fArea)
set jet area
std::vector< fastjet::PseudoJet > fjInputs_
std::vector< edm::Ptr< reco::Candidate > > inputs_
T const * get() const
Returns C++ pointer to the item.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ClusterSequencePtr fjClusterSeq_
Abs< T >::type abs(const T &t)
Jets made from MC generator particles.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< int > nSubParticles_
virtual int pdgId() const =0
PDG identifier.
DEFINE_FWK_MODULE(CaloMETProducer)
void produce(edm::Event &, const edm::EventSetup &)
std::vector< std::vector< fastjet::PseudoJet > > subInputs_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual const Candidate * mother(size_type=0) const
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) ...
boost::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
void runAlgorithm(edm::Event &, const edm::EventSetup &)
void writeSpecific(reco::CaloJet &jet, reco::Particle::LorentzVector const &p4, reco::Particle::Point const &point, std::vector< reco::CandidatePtr > const &constituents, edm::EventSetup const &c)
JetDefPtr fjJetDefinition_