110 pfJetsMissing_(
false),
111 pfMetMissing_(
false),
112 pfJetCorrMissing_(
false)
130 tree_->Branch(
"Jet",
"L1Analysis::L1AnalysisRecoJetDataFormat", &jet_data, 32000, 3);
131 tree_->Branch(
"Sums",
"L1Analysis::L1AnalysisRecoMetDataFormat", &
met_data, 32000, 3);
214 for(
auto it=caloJets->begin();
254 for(
auto it=pfJets->begin();
263 jet_data->
chef.push_back(it->chargedHadronEnergyFraction());
264 jet_data->
nhef.push_back(it->neutralHadronEnergyFraction());
265 jet_data->
pef.push_back(it->photonEnergyFraction());
266 jet_data->
eef.push_back(it->electronEnergyFraction());
279 jet_data->
cmef.push_back(it->chargedMuEnergyFraction());
294 TVector2 *tv2 =
new TVector2(mHx,mHy);
305 std::vector< std::pair<float,float> > corrJetEtsAndCorrs;
308 for(
auto it=pfJets->begin(); it!=pfJets->end(); ++it)
311 std::pair<float,float> corrJetEtAndCorr(corr*it->et(),
corr);
312 corrJetEtsAndCorrs.push_back(corrJetEtAndCorr);
317 std::sort(corrJetEtsAndCorrs.rbegin(),corrJetEtsAndCorrs.rend());
320 std::vector<std::pair<float,float> >::iterator it;
323 for(it = corrJetEtsAndCorrs.begin(); it != corrJetEtsAndCorrs.end() && nJets <
maxJet_; ++it){
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)
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
L1Analysis::L1AnalysisRecoJetDataFormat * jet_data
edm::EDGetTokenT< reco::JetCorrector > jecToken_
tuple pfMet
____________________________________________________________________________||
edm::EDGetTokenT< reco::PFJetCollection > pfJetToken_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
T const * product() const
L1JetRecoTreeProducer(const edm::ParameterSet &)
void doCaloJets(edm::Handle< reco::CaloJetCollection > caloJets)
virtual void beginJob(void)
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
virtual double et() const final
transverse energy
volatile std::atomic< bool > shutdown_flag false