|
|
Go to the documentation of this file.
23 LogDebug(
"SubEventMothers") <<
"Pdg ID : " <<
pdg << endl;
24 if (st == 3 ||
pdg < 9 ||
pdg == 21) {
25 LogDebug(
"SubEventMothers") <<
"Sub-Collision Found! Pdg ID : " <<
pdg << endl;
31 LogDebug(
"SubEventMothers") <<
"No Mother, particle is : " <<
pdg <<
" with status " << st << endl;
41 produces<reco::BasicJetCollection>();
48 std::vector<edm::Ptr<reco::Candidate>>::const_iterator inBegin =
inputs_.begin(), inEnd =
inputs_.end(),
i = inBegin;
49 for (;
i != inEnd; ++
i) {
61 const GenParticle* pref = dynamic_cast<const GenParticle*>(
p.get());
63 LogDebug(
"SubEventContainers") <<
"SubEvent is : " << subevent << endl;
70 LogDebug(
"SubEventContainers") <<
"HydroTagSize is : " <<
hydroTag_.size() << endl;
73 LogDebug(
"SubEventContainers") <<
"HydroTag is : " <<
hydroTag_[subevent] << endl;
79 subInputs_[subevent].back().set_user_index(
i - inBegin);
84 LogDebug(
"VirtualJetProducer") <<
"Entered produce\n";
95 for (
size_t i = 0;
i < inputsHandle->
size(); ++
i) {
98 LogDebug(
"VirtualJetProducer") <<
"Got inputs\n";
107 auto jets = std::make_unique<std::vector<GenJet>>();
110 LogDebug(
"VirtualJetProducer") <<
"Inputted towers\n";
114 for (
size_t isub = 0; isub <
nsub; ++isub) {
124 LogDebug(
"SubEventJetProducer") <<
"Wrote jets\n";
137 using namespace reco;
139 for (
unsigned int ijet = 0; ijet <
fjJets_.size(); ++ijet) {
141 const fastjet::PseudoJet& fjJet =
fjJets_[ijet];
143 std::vector<fastjet::PseudoJet> fjConstituents = sorted_by_pt(
fjClusterSeq_->constituents(fjJet));
145 std::vector<CandidatePtr> constituents =
getConstituents(fjConstituents);
147 double px = fjJet.px();
148 double py = fjJet.py();
149 double pz = fjJet.pz();
150 double E = fjJet.E();
151 double jetArea = 0.0;
156 jet.setJetArea(jetArea);
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)
static const std::string input
Jets made from MC generator particles.
void runAlgorithm(edm::Event &, const edm::EventSetup &) override
constexpr bool isNotFinite(T x)
edm::EDGetTokenT< reco::CandidateView > input_cand_token_
std::vector< int > hydroTag_
virtual int status() const =0
status word
T getUntrackedParameter(std::string const &, T const &) const
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
reco::Particle::Point vertex_
ClusterSequencePtr fjClusterSeq_
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
void inputTowers() override
std::vector< reco::GenJet > * subJets_
std::vector< edm::Ptr< reco::Candidate > > inputs_
virtual bool isAnomalousTower(reco::CandidatePtr input)
std::vector< int > nSubParticles_
virtual int pdgId() const =0
PDG identifier.
math::PtEtaPhiELorentzVectorF LorentzVector
std::vector< std::vector< fastjet::PseudoJet > > subInputs_
virtual std::vector< reco::CandidatePtr > getConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents)
std::vector< fastjet::PseudoJet > fjJets_
JetDefPtr fjJetDefinition_
Abs< T >::type abs(const T &t)
std::vector< fastjet::PseudoJet > fjInputs_
Ptr< value_type > ptrAt(size_type i) const
Namespace of DDCMS conversion namespace.