163 tree_->Branch(
"Jet",
"L1Analysis::L1AnalysisRecoJetDataFormat", &jet_data, 32000, 3);
164 tree_->Branch(
"Sums",
"L1Analysis::L1AnalysisRecoMetDataFormat", &
met_data, 32000, 3);
319 for(
auto it=caloJets->begin();
356 for(
auto it=pfJets->begin();
368 jet_data->
chef.push_back(it->chargedHadronEnergyFraction());
369 jet_data->
nhef.push_back(it->neutralHadronEnergyFraction());
370 jet_data->
pef.push_back(it->photonEnergyFraction());
371 jet_data->
eef.push_back(it->electronEnergyFraction());
384 jet_data->
cmef.push_back(it->chargedMuEnergyFraction());
400 float corrFactor = 1.;
401 unsigned int nJets = 0;
411 for(
auto it=pfJets->begin();
412 it!=pfJets->end() && nJets <
maxJet_;
425 mHx += -1.*it->px()*corrFactor;
426 mHy += -1.*it->py()*corrFactor;
432 TVector2 tv2 = TVector2(mHx,mHy);
446 float caloCorrFactor = 1.;
447 unsigned int nCaloJets = 0;
451 for(
auto it=caloJets->begin();
452 it!=caloJets->end() && nCaloJets <
maxJet_;
493 double pfMetNoMuPx = theMet.
px();
494 double pfMetNoMuPy = theMet.
py();
496 double muPx(0.), muPy(0.);
498 for(
auto it=muons->begin();
499 it!=muons->end(); ++it) {
512 thePFMetNoMu.
setP4(pfMetNoMuP4);
550 if (fabs(jet.
eta()) < 2.7) {
559 if (fabs(jet.
eta()) > 2.7 && fabs(jet.
eta()) < 3.0){
564 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)
bool pfJetID(const reco::PFJet &jet)
double eta() const final
momentum pseudorapidity
Jets made from CaloTowers.
L1Analysis::L1AnalysisRecoMetDataFormat * met_data
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Service< TFileService > fs_
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
____________________________________________________________________________||
edm::EDGetTokenT< reco::JetCorrector > pfJECToken_
void doCaloMetBE(edm::Handle< reco::CaloMETCollection > caloMetBE)
int chargedMultiplicity() const
chargedMultiplicity
Jets made from PFObjects.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
~L1JetRecoTreeProducer() override
L1Analysis::L1AnalysisRecoJetDataFormat * jet_data
float neutralEmEnergyFraction() const
neutralEmEnergyFraction
#define DEFINE_FWK_MODULE(type)
double et() const final
transverse energy
void beginJob(void) override
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
edm::EDGetTokenT< edm::ValueMap< reco::JetID > > caloJetIDToken_
edm::EDGetTokenT< reco::PFJetCollection > pfJetToken_
void doCaloJetCorr(edm::Handle< reco::CaloJetCollection > caloJets, edm::Handle< reco::JetCorrector > caloJetCorr)
caloMet
____________________________________________________________________________||
void doPFMetNoMu(edm::Handle< reco::PFMETCollection > pfMet, edm::Handle< reco::MuonCollection >)
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)
bool caloJetID(const reco::CaloJet &jet)
std::vector< std::vector< double > > tmp
edm::EDGetTokenT< reco::MuonCollection > muonToken_
edm::EDGetTokenT< reco::JetCorrector > caloJECToken_
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
edm::EDGetTokenT< reco::CaloJetCollection > caloJetToken_
float muonEnergyFraction() const
muonEnergyFraction
double phi() const final
momentum azimuthal angle
void setP4(const LorentzVector &p4) final
set 4-momentum
edm::EDGetTokenT< reco::CaloMETCollection > caloMetBEToken_