113 pfJetsMissing_(
false),
114 pfMetMissing_(
false),
115 pfJetCorrMissing_(
false)
134 tree_->Branch(
"Jet",
"L1Analysis::L1AnalysisRecoJetDataFormat", &jet_data, 32000, 3);
135 tree_->Branch(
"Sums",
"L1Analysis::L1AnalysisRecoMetDataFormat", &
met_data, 32000, 3);
218 for(
auto it=caloJets->begin();
252 for(
auto it=pfJets->begin();
261 jet_data->
chef.push_back(it->chargedHadronEnergyFraction());
262 jet_data->
nhef.push_back(it->neutralHadronEnergyFraction());
263 jet_data->
pef.push_back(it->photonEnergyFraction());
264 jet_data->
eef.push_back(it->electronEnergyFraction());
277 jet_data->
cmef.push_back(it->chargedMuEnergyFraction());
293 float corrFactor = 1.;
304 for(
auto it=pfJets->begin();
305 it!=pfJets->end() && nJets <
maxJet_;
308 corrFactor = pfJetCorr.
product()->correction(*it);
316 mHx += -1.*it->px()*corrFactor;
317 mHy += -1.*it->py()*corrFactor;
323 TVector2 *tv2 =
new TVector2(mHx,mHy);
375 if (fabs(jet.
eta()) < 2.4) {
380 if (fabs(jet.
eta()) > 3.0) {
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void doPFMet(edm::Handle< reco::PFMETCollection > pfMet)
L1Analysis::L1AnalysisRecoMetDataFormat * met_data
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Service< TFileService > fs_
#define DEFINE_FWK_MODULE(type)
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
void doPFJetCorr(edm::Handle< reco::PFJetCollection > pfJets, edm::Handle< reco::JetCorrector > pfJetCorr)
virtual double phi() const final
momentum azimuthal angle
void doPFJets(edm::Handle< reco::PFJetCollection > pfJets)
T * make(const Args &...args) const
make new ROOT object
int chargedMultiplicity() const
chargedMultiplicity
Jets made from PFObjects.
L1Analysis::L1AnalysisRecoJetDataFormat * jet_data
float neutralEmEnergyFraction() const
neutralEmEnergyFraction
edm::EDGetTokenT< reco::JetCorrector > jecToken_
tuple pfMet
____________________________________________________________________________||
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
edm::EDGetTokenT< reco::PFJetCollection > pfJetToken_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int neutralMultiplicity() const
neutralMultiplicity
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
float chargedEmEnergyFraction() const
chargedEmEnergyFraction
T const * product() const
L1JetRecoTreeProducer(const edm::ParameterSet &)
void doCaloJets(edm::Handle< reco::CaloJetCollection > caloJets)
int muonMultiplicity() const
muonMultiplicity
std::vector< std::vector< double > > tmp
virtual void beginJob(void)
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
bool jetId(const reco::PFJet &jet)
virtual double et() const final
transverse energy
virtual double eta() const final
momentum pseudorapidity
volatile std::atomic< bool > shutdown_flag false
float muonEnergyFraction() const
muonEnergyFraction
int electronMultiplicity() const
electronMultiplicity