145 tree_->Branch(
"Jet",
"L1Analysis::L1AnalysisRecoJetDataFormat", &jet_data, 32000, 3);
146 tree_->Branch(
"Sums",
"L1Analysis::L1AnalysisRecoMetDataFormat", &
met_data, 32000, 3);
253 for(
auto it=caloJets->begin();
287 for(
auto it=pfJets->begin();
296 jet_data->
chef.push_back(it->chargedHadronEnergyFraction());
297 jet_data->
nhef.push_back(it->neutralHadronEnergyFraction());
298 jet_data->
pef.push_back(it->photonEnergyFraction());
299 jet_data->
eef.push_back(it->electronEnergyFraction());
312 jet_data->
cmef.push_back(it->chargedMuEnergyFraction());
328 float corrFactor = 1.;
329 unsigned int nJets = 0;
339 for(
auto it=pfJets->begin();
340 it!=pfJets->end() && nJets <
maxJet_;
351 mHx += -1.*it->px()*corrFactor;
352 mHy += -1.*it->py()*corrFactor;
358 TVector2 *tv2 =
new TVector2(mHx,mHy);
435 if (fabs(jet.
eta()) < 2.4) {
440 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)
double eta() const final
momentum pseudorapidity
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
double px() const final
x coordinate of momentum vector
void doPFJetCorr(edm::Handle< reco::PFJetCollection > pfJets, edm::Handle< reco::JetCorrector > pfJetCorr)
edm::EDGetTokenT< reco::CaloMETCollection > caloMetToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
void doPFJets(edm::Handle< reco::PFJetCollection > pfJets)
T * make(const Args &...args) const
make new ROOT object
double correction(const LorentzVector &fJet) const
get correction using Jet information only
caloMetBE
____________________________________________________________________________||
void doCaloMetBE(edm::Handle< reco::CaloMETCollection > caloMetBE)
int chargedMultiplicity() const
chargedMultiplicity
Jets made from PFObjects.
~L1JetRecoTreeProducer() override
L1Analysis::L1AnalysisRecoJetDataFormat * jet_data
float neutralEmEnergyFraction() const
neutralEmEnergyFraction
double et() const final
transverse energy
edm::EDGetTokenT< reco::JetCorrector > jecToken_
void beginJob(void) override
pfMet
____________________________________________________________________________||
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
edm::EDGetTokenT< reco::PFJetCollection > pfJetToken_
caloMet
____________________________________________________________________________||
void doCaloMet(edm::Handle< reco::CaloMETCollection > caloMet)
int neutralMultiplicity() const
neutralMultiplicity
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
float chargedEmEnergyFraction() const
chargedEmEnergyFraction
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
T const * product() const
L1JetRecoTreeProducer(const edm::ParameterSet &)
double py() const final
y coordinate of momentum vector
void doCaloJets(edm::Handle< reco::CaloJetCollection > caloJets)
int muonMultiplicity() const
muonMultiplicity
std::vector< std::vector< double > > tmp
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
bool jetId(const reco::PFJet &jet)
float muonEnergyFraction() const
muonEnergyFraction
double phi() const final
momentum azimuthal angle
int electronMultiplicity() const
electronMultiplicity
edm::EDGetTokenT< reco::CaloMETCollection > caloMetBEToken_