20 LogDebug(
"SubEventMothers") <<
"Pdg ID : " << pdg << endl;
21 if (st == 3 || pdg < 9 || pdg == 21) {
22 LogDebug(
"SubEventMothers") <<
"Sub-Collision Found! Pdg ID : " << pdg << endl;
28 LogDebug(
"SubEventMothers") <<
"No Mother, particle is : " << pdg <<
" with status " << st << endl;
38 produces<reco::BasicJetCollection>();
45 std::vector<edm::Ptr<reco::Candidate>>::const_iterator inBegin =
inputs_.begin(), inEnd =
inputs_.end(),
i = inBegin;
46 for (;
i != inEnd; ++
i) {
60 LogDebug(
"SubEventContainers") <<
"SubEvent is : " << subevent << endl;
67 LogDebug(
"SubEventContainers") <<
"HydroTagSize is : " <<
hydroTag_.size() << endl;
70 LogDebug(
"SubEventContainers") <<
"HydroTag is : " <<
hydroTag_[subevent] << endl;
74 subInputs_[subevent].push_back(fastjet::PseudoJet(input->
px(), input->
py(), input->
pz(), input->
energy()));
76 subInputs_[subevent].back().set_user_index(
i - inBegin);
81 LogDebug(
"VirtualJetProducer") <<
"Entered produce\n";
92 for (
size_t i = 0;
i < inputsHandle->
size(); ++
i) {
95 LogDebug(
"VirtualJetProducer") <<
"Got inputs\n";
104 auto jets = std::make_unique<std::vector<GenJet>>();
107 LogDebug(
"VirtualJetProducer") <<
"Inputted towers\n";
111 for (
size_t isub = 0; isub < nsub; ++isub) {
121 LogDebug(
"SubEventJetProducer") <<
"Wrote jets\n";
134 using namespace reco;
136 for (
unsigned int ijet = 0; ijet <
fjJets_.size(); ++ijet) {
138 const fastjet::PseudoJet& fjJet =
fjJets_[ijet];
140 std::vector<fastjet::PseudoJet> fjConstituents = sorted_by_pt(
fjClusterSeq_->constituents(fjJet));
142 std::vector<CandidatePtr> constituents =
getConstituents(fjConstituents);
144 double px = fjJet.px();
145 double py = fjJet.py();
146 double pz = fjJet.pz();
147 double E = fjJet.E();
148 double jetArea = 0.0;
T getUntrackedParameter(std::string const &, T const &) const
virtual double pz() const =0
z coordinate of momentum vector
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
reco::Particle::Point vertex_
std::vector< int > hydroTag_
void runAlgorithm(edm::Event &, const edm::EventSetup &) override
virtual std::vector< reco::CandidatePtr > getConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents)
std::vector< fastjet::PseudoJet > fjJets_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::CandidateView > input_cand_token_
Ptr< value_type > ptrAt(size_type i) const
constexpr bool isNotFinite(T x)
virtual void setPileup(float fEnergy)
Set pileup energy contribution as calculated by algorithm.
T const * get() const
Returns C++ pointer to the item.
std::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
void produce(edm::Event &, const edm::EventSetup &) override
static std::string const input
std::vector< reco::GenJet > * subJets_
virtual int status() const =0
status word
virtual bool isAnomalousTower(reco::CandidatePtr input)
virtual void setJetArea(float fArea)
set jet area
std::vector< fastjet::PseudoJet > fjInputs_
virtual double et() const =0
transverse energy
virtual double energy() const =0
energy
void inputTowers() override
virtual double py() const =0
y coordinate of momentum vector
#define DEFINE_FWK_MODULE(type)
std::vector< edm::Ptr< reco::Candidate > > inputs_
ClusterSequencePtr fjClusterSeq_
virtual int pdgId() const =0
PDG identifier.
Abs< T >::type abs(const T &t)
Jets made from MC generator particles.
Namespace of DDCMS conversion namespace.
std::vector< int > nSubParticles_
virtual double pt() const =0
transverse momentum
std::vector< std::vector< fastjet::PseudoJet > > subInputs_
virtual double px() const =0
x coordinate of momentum vector
const Candidate * mother(size_type=0) const override
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) ...
math::PtEtaPhiELorentzVectorF LorentzVector
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_