Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
dd40da7
Modifications for HLT76
gflouris Feb 4, 2016
5e490f4
rm all for first version in 76
gflouris Feb 4, 2016
8f085f9
Merge pull request #3 from gflouris/mydevel_76
gflouris Feb 4, 2016
06fe039
76X
pgunnell Feb 18, 2016
b48a6fc
Merge pull request #4 from pgunnell/Ntuples_76X
pgunnell Feb 18, 2016
9a230bc
Create AnalysisTemplate.h
pgunnell Feb 23, 2016
0f99d18
Create AnalysisTemplate.cc
pgunnell Feb 23, 2016
e516d48
Create parsePileUpJSON2.h
pgunnell Feb 23, 2016
e4c8fbc
Rename AnalysisTemplate.cc to AnalysisTemplate_MC.cc
pgunnell Feb 23, 2016
cd3a5b4
Rename AnalysisTemplate.h to AnalysisTemplate_MC.h
pgunnell Feb 23, 2016
3533b4f
Create JECs.h
pgunnell Feb 23, 2016
2f17348
Rename AnalysisTemplate_MC.cc to Analysis_Template_MC.cc
pgunnell May 9, 2016
a7fefe1
Rename AnalysisTemplate_MC.h to Analysis_Template_MC.h
pgunnell May 9, 2016
fdcfbba
ntuples_9_3X
pgunnell Nov 2, 2017
2e80894
Delete ProcessedTreeProducer_MCPAT25ns_BTag_cfg.pyc
pgunnell Nov 2, 2017
d1030d2
Delete ProcessedTreeProducer_MCPAT25ns_BTag_cfg.py
pgunnell Nov 2, 2017
6ec11c8
Delete ProcessedTreeProducer_dataPAT25ns_BTag_RunC_cfg.py
pgunnell Nov 2, 2017
f67498b
Delete ProcessedTreeProducer_dataPAT25ns_BTag_cfg.py
pgunnell Nov 2, 2017
15aa99c
Delete ProcessedTreeProducer_dataPAT25ns_BTag_cfg.pyc
pgunnell Nov 2, 2017
82e7e02
Delete Test_cfg.py
pgunnell Nov 2, 2017
af553bd
Delete crab.log
pgunnell Nov 2, 2017
b2c5782
Delete crabDataAODBTag-RunC2016.py
pgunnell Nov 2, 2017
f7c706c
Delete crabDataAODBTag-RunC2016.pyc
pgunnell Nov 2, 2017
7a6bf3d
Delete crabDataAODBTag.py
pgunnell Nov 2, 2017
a049492
Delete crabDataAODBTag.pyc
pgunnell Nov 2, 2017
1726ee3
Delete crabDataAODBTagRunC.py
pgunnell Nov 2, 2017
24b5580
Delete crabMC-madgraphSlices.py
pgunnell Nov 2, 2017
cdfde3d
Delete crabMC-pythia8Flat.py
pgunnell Nov 2, 2017
3817065
Delete crabMC-pythia8Flat.pyc
pgunnell Nov 2, 2017
fc3a114
Delete crabMC-pythia8Slices.py
pgunnell Nov 2, 2017
3215bb6
Delete jetToolbox_cff.py
pgunnell Nov 2, 2017
0f3816d
Delete jetToolbox_cff.pyc
pgunnell Nov 2, 2017
d6d48f5
Delete processedLumisRunB2016.json
pgunnell Nov 2, 2017
e5a5abf
Delete Spring16_25nsV9p2_DATA_L2L3Residual_AK8PFchs.txt
pgunnell Nov 2, 2017
3fc9896
Delete processedLumisRunC2016.json
pgunnell Nov 2, 2017
dfd67f1
Delete processedLumisRunD2016.json
pgunnell Nov 2, 2017
a5013af
Delete processedLumisRunE2016.json
pgunnell Nov 2, 2017
d7e6446
Delete processedLumisRun_2016BCD.json
pgunnell Nov 2, 2017
4c6f1ec
Delete .DS_Store
pgunnell Nov 2, 2017
4e6387e
Delete ._.DS_Store
pgunnell Nov 2, 2017
c189f8c
Delete processedLumis_2016BCD.json
pgunnell Nov 2, 2017
83718ed
Delete Analysis_Template_MC.cc
pgunnell Nov 2, 2017
adfb764
Delete Analysis_Template_MC.h
pgunnell Nov 2, 2017
49aed8d
Delete QCDCaloJet.cc
pgunnell Nov 2, 2017
c91ec78
Delete MyElectron.cc
pgunnell Nov 2, 2017
01adad2
Delete MyElectron.cc~
pgunnell Nov 2, 2017
549210e
Delete MyMuon.cc
pgunnell Nov 2, 2017
9da1297
Delete MyElectron.h
pgunnell Nov 2, 2017
58811c3
Delete MyMuon.h
pgunnell Nov 2, 2017
02526ac
Delete QCDCaloJet.h
pgunnell Nov 2, 2017
476ae15
Merge pull request #7 from pgunnell/ntuples93X
pgunnell Nov 2, 2017
4d22118
One
pgunnell Feb 12, 2018
4e634ee
Two
pgunnell Feb 12, 2018
a84308f
Adding local changes
Apr 18, 2018
f7045e2
Separation into 16 and 17, debugging additions and other fixes
Apr 19, 2018
ffd783b
Temp changes
Apr 19, 2018
30e257c
Updated the recommended MET filters
Apr 25, 2018
4089c4a
Slimming down the tuple production pipeline
Apr 26, 2018
5e1cd2d
Check
Apr 19, 2018
183d2e7
Modifications to PY
Apr 26, 2018
7402d5f
Upgrading the '17 py files
Apr 26, 2018
6979f65
Fixing gen jet matching
Apr 26, 2018
6995cb7
Flavour business sorted out
Apr 26, 2018
91e2719
A pile of MC updates, jet flavour stuff finally resolved
Apr 26, 2018
3869a20
A bunch of news
May 4, 2018
67d2ece
Differences
May 4, 2018
b0a2615
B tagging and all working shiny
May 4, 2018
02a714f
16 is also ok
May 4, 2018
447ead5
Updates
May 23, 2018
e3be345
Bringing the miniaod version up-to-date
May 30, 2018
7eab525
Changes into proctree
May 30, 2018
4743ee5
Updates
May 31, 2018
4a5a030
More updates
May 31, 2018
638c4bb
Miniaod patches
May 31, 2018
efdd2b6
Multiple miniaod updates
Jun 6, 2018
f277426
MINIAOD additions
Jun 7, 2018
a4458c2
Optimizing MC event space usage and algorithms
Jun 8, 2018
8ec2360
MINIAOD is starting to reach its final form
Jun 11, 2018
f56b5b8
MINIAOD code now fully prepared for '16 runs
Jun 12, 2018
151557f
Newest MiniAOD updates
Jun 14, 2018
4463f48
The most recent updates to MINIAOD.
Jul 2, 2018
c07591e
filter file was left out
Jul 2, 2018
a89973c
'18 functionalities
Jul 4, 2018
6b334fd
Filter additions
Jul 4, 2018
a24a341
MINIAOD 2017 upgrades
Jul 4, 2018
e5a5891
Streamlining the use of config files
Jul 16, 2018
4923fd6
Added multicrab functionalities to the batch system
Jul 18, 2018
d808d1f
Modifications on the configuration files
Jul 18, 2018
3b5ce75
Adding '17 functionality to the code
Jul 19, 2018
476b9f3
Intermediate updates on crab submitting
Jul 19, 2018
d38894c
Made the crab configuration superior with multicrab
Jul 20, 2018
cab3b74
'18 updates
Aug 29, 2018
2756b58
Some additions for 10X
Oct 29, 2018
d7151a5
FSQ etc.
Oct 29, 2018
1de42a1
Updated Type0 MET methods and MET filters
Oct 30, 2018
2d8042c
Updated trigger lists
Oct 30, 2018
dcc2663
Global tags etc. updated
Oct 30, 2018
ba2be38
Newest configurations
Nov 1, 2018
446e6cf
Slight updates on parameters
Nov 23, 2018
e5d3594
News
Nov 23, 2018
b9fa41f
Merge
Nov 28, 2018
71b16f4
NuGun add
Nov 28, 2018
e4eea77
Changes added for 18 runs.
Jun 6, 2019
4140e72
Adding the possibility to ignore trigger versions (makes things easie…
Jun 7, 2019
bbc9631
Intermediate config file updates
Jun 7, 2019
df190ec
File lists completely updated
Jun 10, 2019
f6ee307
Updating filter lists.
Jun 10, 2019
62be518
Updating frontier conditions.
Jun 10, 2019
0f84b44
Updated JetID
Jun 10, 2019
020bf86
Adding a histogram for monitoring MET filters and the possibility to …
Jun 10, 2019
8c64763
Adding files for madgraph
Jun 10, 2019
31de186
Correcting the year tag in crabConfig
Jun 10, 2019
3b438f5
Correcting for missing mg 17 file specs.
Jun 10, 2019
085f820
Bringing MET filter operationality to the MC sector.
Jun 13, 2019
b6bb0ce
Quick fix to a quick bug.
Jun 13, 2019
bc2f781
Temporary commit allowing a move between LXPLUS scl6 and slc7
Jun 14, 2019
5c78f5d
Correcting all the MET functionalities once and for all.
Jun 14, 2019
8fb7ba9
Minor enhancement to cfg prod
Jun 14, 2019
c232e12
Correcting for a problem in crabConfig
Jun 14, 2019
52b9b30
Adding some settings
Feb 10, 2020
0c15e8c
New refinements to the code.
Feb 12, 2020
3af6e38
Updating UL17/UL18 MC file locations
Feb 21, 2020
8592a31
Formatting
Feb 21, 2020
7844a62
Additional updates on tree producer
Jun 22, 2020
8d5411e
Adding a script for hadron studies
Jun 22, 2020
fdeb423
Small updates on confs
Jun 22, 2020
95bf66b
Adding updates on settings
Jun 30, 2020
134ed70
Fixing zerobias trigger in MC
Jul 1, 2020
8ee18f5
Small updates
Jul 2, 2020
10123fb
Updating PS Weight saving procedures.
Sep 11, 2020
f7ccb3c
Extending compiler support.
Oct 7, 2020
e7e60ff
Updating jet IDs and 16 run specs for UL.
Oct 21, 2020
19fbb2e
Adding nice scripts for convenience.
Oct 23, 2020
dffdae7
Merge branch 'master' into MINIAOD
Oct 23, 2020
6617bea
Mastering the MINIAOD branch.
Oct 23, 2020
e677f96
Upgrades to tools
Oct 26, 2020
4eb294d
Diverging from C++ logic to CMSSW logic: the plugins are never includ…
Nov 13, 2020
37505ab
Appending the newest settings
Mar 2, 2021
b5abdd9
Modernizing program logic: no separate era-wise cfg files needed for …
Mar 31, 2021
2a00935
Adding prescales for low-Pt hadrons and extending range as low as pos…
Mar 31, 2021
3d69610
More hadron scripts
Apr 1, 2021
93be7ff
Small fixes
Apr 1, 2021
7862b63
Small ZB statistics fix.
Apr 1, 2021
b13f41c
Adding prescale and track pt (which mostly coincides with hadron pt)
Apr 6, 2021
397d5f7
Genjet study
Apr 4, 2022
2570071
Adding new quick scripts.
Apr 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
*.py
116 changes: 41 additions & 75 deletions AnalysisFW/interface/QCDEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include "SMPJ/AnalysisFW/interface/QCDMET.h"
#include "SMPJ/AnalysisFW/interface/QCDCaloJet.h"
#include "SMPJ/AnalysisFW/interface/QCDPFJet.h"
//#include "SMPJ/AnalysisFW/interface/MyElectron.h"
//#include "SMPJ/AnalysisFW/interface/MyMuon.h"
#include "SMPJ/AnalysisFW/interface/QCDEventHdr.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include <vector>

using std::vector;

class QCDEvent
{
public:
Expand All @@ -22,116 +22,82 @@ class QCDEvent
//------------ Destructor -------------------------------
~QCDEvent();
//------------ Set methods ------------------------------
void setCaloMET(const QCDMET& fCaloMET) {CaloMet_ = fCaloMET;}
void setPFMET(const QCDMET& fPFMET) {PFMet_ = fPFMET;}
void setMvaMET(const QCDMET& fMvaMET) {MvaMet_ = fMvaMET;}
void setPFMET(const QCDMET& fPFMET,const QCDMET& fPFMETt0, const QCDMET& fPFMETt0t1) {
PFMet_ = fPFMET;
PFMetT0_ = fPFMETt0;
PFMetT0T1_ = fPFMETt0t1;
}
void setEvtHdr(const QCDEventHdr& fEvtHdr) {EvtHdr_ = fEvtHdr;}
//void setCaloJets(const std::vector<QCDCaloJet>& fCaloJets);
//void setPFJets(const std::vector<QCDPFJet>& fPFJets);
void setPFJetsCHS(const std::vector<QCDPFJet>& fPFJetsCHS);
//void setElectrons(const std::vector<MyElectron>& fElectron);
//void setMuons(const std::vector<MyMuon>& fMuon);
void setPFJetsCHS(const vector<QCDPFJet>& fPFJetsCHS);

//void setFatJets(const std::vector<QCDJet>& fFatJets);
void setGenJets(const std::vector<LorentzVector>& fGenJets);
void setL1Obj(const std::vector<std::vector<LorentzVector> >& fL1Obj);
void setHLTObj(const std::vector<std::vector<LorentzVector> >& fHLTObj);
void setFilterId(const std::vector<std::vector<int> >& filterIdList) {filterIdList_ = filterIdList;}
void setPrescales(const std::vector<int>& fPreL1, const std::vector<int>& fPreHLT) {L1Prescale_ = fPreL1; HLTPrescale_ = fPreHLT;}
void setTrigDecision(const std::vector<int>& fTrigDecision) {TriggerDecision_ = fTrigDecision;}
void setTrigPathList(const std::vector<std::string>& trigPathList) {triggerList_ = trigPathList;}
void setGenJets(const vector<LorentzVector>& fGenJets);
void setL1Obj(const vector<vector<LorentzVector> >& fL1Obj);
void setHLTObj(const vector<vector<LorentzVector> >& fHLTObj);
void setPrescales(const vector<int>& fPreL1, const vector<int>& fPreHLT) {L1Prescale_ = fPreL1; HLTPrescale_ = fPreHLT;}
void setTrigDecision(const vector<int>& fTrigDecision) {TriggerDecision_ = fTrigDecision;}
void setFltDecision(const vector<int>& fFltDecision) {FilterDecision_ = fFltDecision;}

void setGenFlavour(const std::vector<float> GenFlavour){ genFlavour_= GenFlavour; }
void setGenHadronFlavour(const std::vector<float> GenFlavourHadron){ genFlavourHadron_= GenFlavourHadron; }
void setGenFlavour( const vector<int>& GenFlavour) { genFlavour_= GenFlavour;}
void setGenFlavourHadron( const vector<int>& GenFlavourHadron) { genFlavourHadron_= GenFlavourHadron;}
void setGenFlavourPhysicsDef(const vector<int>& GenPartonFlavourPhysicsDef) {genFlavourPartonPhysicsDef_= GenPartonFlavourPhysicsDef;}
void setGenBPt( const vector<float>& fGenBPt) { genBPt_ = fGenBPt; }

//------------ Get methods -------------------------------
unsigned int nTriggers() const {return TriggerDecision_.size();}
unsigned int nL1Obj(int i) const {return L1Obj_[i].size();}
unsigned int nHLTObj(int i) const {return HLTObj_[i].size();}
//unsigned int nPFJets() const {return PFJets_.size();}
unsigned int nPFJetsCHS() const {return PFJetsCHS_.size();}
//unsigned int nFatJets() const {return FatJets_.size();}
//unsigned int nCaloJets() const {return CaloJets_.size();}
unsigned int nGenJets() const {return GenJets_.size();}
int nGoodJets(int unc, int id, float ymax, float ptmin, std::vector<QCDJet> jets);
int nGoodJets(int unc, int id, float ymax, float ptmin, vector<QCDJet> jets);
int fired(int i) const {return TriggerDecision_[i];}
int preL1(int i) const {return L1Prescale_[i];}
int preHLT(int i) const {return HLTPrescale_[i];}
float pfmjj();
//unsigned int nMuons() const {return mMuon_.size();}
//unsigned int nEelctrons() const {return mElectron_.size();}

float GenJetFlavour(int i) const {return genFlavour_[i];}
float GenHadronJetFlavour(int i) const {return genFlavourHadron_[i];}
int GenJetFlavour(int i) const {return genFlavour_[i];}
int GenHadronJetFlavour(int i) const {return genFlavourHadron_[i];}
int GenPartonPhysicsDefJetFlavour(int i) const {return genFlavourPartonPhysicsDef_[i];}

float calomjj();
float pfmjj();
float genmjj();
float pfchsmjjcor(int unc);
float pfchsmjjcor(int unc,int src);
//float pfmjjcor(int unc);
//float pfmjjcor(int unc,int src);
//float fatmjjcor(int unc);
//float calomjjcor(int unc);
float pfmjjgen();
//float calomjjgen();
const QCDMET& calomet() const {return CaloMet_;}
const QCDMET& pfmet() const {return PFMet_;}
const QCDMET& mvamet() const {return MvaMet_;}
const LorentzVector& hltobj(int itrig, int iobj) const {return (HLTObj_[itrig])[iobj];}
const LorentzVector& l1obj(int itrig, int iobj) const {return (L1Obj_[itrig])[iobj];}
const LorentzVector& genjet(int i) const {return GenJets_[i];}
//const QCDPFJet& pfjet(int i) const {return PFJets_[i];}
const QCDPFJet& pfjetchs(int i) const {return PFJetsCHS_[i];}
//const QCDJet& fatjet(int i) const {return FatJets_[i];}
//const QCDCaloJet& calojet(int i) const {return CaloJets_[i];}
const QCDEventHdr& evtHdr() const {return EvtHdr_;}

//const MyMuon& muon(int i) const {return mMuon_[i];}
//const MyElectron& electron(int i) const {return mElectron_[i];}

const std::vector<std::vector<LorentzVector>>& HLTObj() const {return HLTObj_;}
const std::vector<std::string>& trigPathList() const {return triggerList_;}
const std::vector<std::vector<int>>& filterIdList() const {return filterIdList_;}
const std::vector<LorentzVector>& hltObjsForPath(int i) const {return HLTObj_[i];}
const std::vector<int>& filterIdsForPath(int i) const {return filterIdList_[i];}
const vector<vector<LorentzVector>>& HLTObj() const {return HLTObj_;}
const vector<LorentzVector>& hltObjsForPath(int i) const {return HLTObj_[i];}

private:
std::vector<std::vector<int> > filterIdList_;

//---- event header (contains all the event info) --------------
QCDEventHdr EvtHdr_;
//---- CALO met object -----------------------------------------
QCDMET CaloMet_;
//---- PF met object -------------------------------------------
QCDMET PFMet_;
QCDMET MvaMet_;
QCDMET PFMet_; // T1, implicit
QCDMET PFMetT0_;
QCDMET PFMetT0T1_;
//---- trigger decision vector ---------------------------------
std::vector<int> TriggerDecision_;
std::vector<std::string> triggerList_;
vector<int> TriggerDecision_;
//---- filter decision vector ---------------------------------
vector<int> FilterDecision_;
//---- L1 prescale vector --------------------------------------
std::vector<int> L1Prescale_;
vector<int> L1Prescale_;
//---- HLT prescale vector -------------------------------------
std::vector<int> HLTPrescale_;
vector<int> HLTPrescale_;
//---- HLT objects ---------------------------------------------
std::vector<std::vector<LorentzVector> > HLTObj_;
vector<vector<LorentzVector> > HLTObj_;
//---- L1 objects ----------------------------------------------
std::vector<std::vector<LorentzVector> > L1Obj_;
vector<vector<LorentzVector> > L1Obj_;
//---- Genjets -------------------------------------------------
std::vector<LorentzVector> GenJets_;
//---- CaloJets ------------------------------------------------
//std::vector<QCDCaloJet> CaloJets_;
//---- PFJets --------------------------------------------------
//std::vector<QCDPFJet> PFJets_;
vector<LorentzVector> GenJets_;
//---- PFJetsCHS -----------------------------------------------
std::vector<QCDPFJet> PFJetsCHS_;
//---- FatJets -------------------------------------------------
//std::vector<QCDJet> FatJets_;
std::vector<float> genFlavour_;
std::vector<float> genFlavourHadron_;

//MyMuons
//std::vector<MyMuon> mMuon_;
//std::vector<MyElectron> mElectron_;

vector<QCDPFJet> PFJetsCHS_;
vector<int> genFlavour_;
vector<int> genFlavourHadron_;
vector<int> genFlavourPartonPhysicsDef_;
vector<float> genBPt_;
};
#endif
62 changes: 33 additions & 29 deletions AnalysisFW/interface/QCDEventHdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#ifndef QCDEventHdr_h
#define QCDEventHdr_h

#include <vector>

class QCDEventHdr
{
public:
Expand All @@ -21,43 +23,43 @@ class QCDEventHdr
void setVertices(int fNVtx, int fNVtxGood) {mNVtx = fNVtx; mNVtxGood = fNVtxGood;}
void setPV(bool fIsPVgood, float fndof, float fx, float fy, float fz) {mIsPVgood = fIsPVgood; mPVndof = fndof; mPVx = fx; mPVy = fy; mPVz = fz;}
void setBS(float fBSx, float fBSy, float fBSz) {mBSx = fBSx; mBSy = fBSy; mBSz = fBSz;}
void setHCALNoise(bool fNoise) {mHCALNoise = fNoise;}
void setHCALNoiseNoMinZ(bool fNoise) {mHCALNoiseNoMinZ = fNoise;}
void setPU(int fNBX, int fOOTPUEarly, int fOOTPULate, int fINTPU) {mNBX = fNBX; mOOTPUEarly = fOOTPUEarly; mOOTPULate = fOOTPULate; mINTPU = fINTPU;}
void setTrPu(float fTrPu) {mTrPu = fTrPu;} // setting the true PU
void setPSWeight(size_t idx, float wgt) {
if (idx < mPSWeights.size()) mPSWeights[idx] = wgt;
else mPSWeights.push_back(wgt);
}
//------------ Get methods ------------------------------
int runNo() const {return mRun;}
long long int event() const {return mEvent;}
int lumi() const {return mLumi;}
int bunch() const {return mBunch;}
int nVtx() const {return mNVtx;}
int nVtxGood() const {return mNVtxGood;}
int ootpuEarly() const {return mOOTPUEarly;}
int ootpuLate() const {return mOOTPULate;}
int intpu() const {return mINTPU;}
int nbx() const {return mNBX;}
int pu() const {return mOOTPUEarly+mOOTPULate+mINTPU;}
float trpu() const {return mTrPu;} // get method for True number of interaction
bool isPVgood() const {return mIsPVgood;}
bool hcalNoise() const {return mHCALNoise;}
bool hcalNoiseNoMinZ() const {return mHCALNoiseNoMinZ;}
float PVndof() const {return mPVndof;}
float PVx() const {return mPVx;}
float PVy() const {return mPVy;}
float PVz() const {return mPVz;}
float BSx() const {return mBSx;}
float BSy() const {return mBSy;}
float BSz() const {return mBSz;}
float pthat() const {return mPthat;}
float weight() const {return mWeight;}
float caloRho() const {return mCaloRho;}
float pfRho() const {return mPFRho;}
int runNo() const {return mRun;}
long long int event() const {return mEvent;}
int lumi() const {return mLumi;}
int bunch() const {return mBunch;}
int nVtx() const {return mNVtx;}
int nVtxGood() const {return mNVtxGood;}
int ootpuEarly() const {return mOOTPUEarly;}
int ootpuLate() const {return mOOTPULate;}
int intpu() const {return mINTPU;}
int nbx() const {return mNBX;}
int pu() const {return mOOTPUEarly+mOOTPULate+mINTPU;}
float trpu() const {return mTrPu;} // get method for True number of interaction
bool isPVgood() const {return mIsPVgood;}
bool hcalNoiseNoMinZ() const {return mHCALNoiseNoMinZ;}
float PVndof() const {return mPVndof;}
float PVx() const {return mPVx;}
float PVy() const {return mPVy;}
float PVz() const {return mPVz;}
float BSx() const {return mBSx;}
float BSy() const {return mBSy;}
float BSz() const {return mBSz;}
float pthat() const {return mPthat;}
float weight() const {return mWeight;}
float caloRho() const {return mCaloRho;}
float pfRho() const {return mPFRho;}
private:
//---- flag about the PV quality --------------
bool mIsPVgood;
//---- flags about the HCAL noise -------------
bool mHCALNoise;
//---- flags about the HCAL noise -------------
bool mHCALNoiseNoMinZ;
//---- run number -----------------------------
int mRun;
Expand Down Expand Up @@ -95,6 +97,8 @@ class QCDEventHdr
float mPthat;
//---- simulation weight ----------------------
float mWeight;
//---- shower weight ----------------------
std::vector<float> mPSWeights;
//---- median CALO pt density -----------------
float mCaloRho;
//---- median PF pt density -------------------
Expand Down
28 changes: 12 additions & 16 deletions AnalysisFW/interface/QCDJet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@ class QCDJet
~QCDJet() {}
//------------ Sett methods -----------------------------
// void clear() {pfParticles_.clear();}
void setP4(LorentzVector fP4) {P4_ = fP4;}
void setGen(LorentzVector fP4, float fgenR) {genP4_ = fP4;genR_ = fgenR;}
void setCor(float fCor) {cor_ = fCor;}
void setUnc(float fUnc) {unc_ = fUnc;}
void setUncSrc(std::vector<float> fUncSrc) {uncSrc_ = fUncSrc;}
void setJecLabels(std::vector<double> fJecLabels) {jecLabels_ = fJecLabels;}
void setArea(float fArea) {area_ = fArea;}
void setLooseID(bool fLooseID) {looseID_ = fLooseID;}
void setTightID(bool fTightID) {tightID_ = fTightID;}
void setP4(LorentzVector fP4) { P4_ = fP4; }
void setGen(int fIdx, float fgenR) { genIdx_ = fIdx; genR_ = fgenR; }
void setCor(float fCor) { cor_ = fCor; }
void setUnc(float fUnc) { unc_ = fUnc; }
void setUncSrc(std::vector<float> fUncSrc) { uncSrc_ = fUncSrc; }
void setJecLabels(std::vector<double> fJecLabels) { jecLabels_ = fJecLabels; }
void setArea(float fArea) { area_ = fArea; }
void setLooseID(bool fLooseID) { looseID_ = fLooseID; }
void setTightID(bool fTightID) { tightID_ = fTightID; }
// void setPFParticles(std::vector<LorentzVector> fpfFParticles) {pfParticles_ = fpfFParticles;}
//------------ Get methods ------------------------------
const LorentzVector& p4() const {return P4_;}
const LorentzVector& genp4() const {return genP4_;}
float pt() const {return P4_.pt()/cor_;}
float genpt() const {return genP4_.pt();}
float geneta() const {return genP4_.eta();}
int genidx() const {return genIdx_;}
float genR() const {return genR_;}
float ptCor() const {return P4_.pt();}
float e() const {return P4_.energy()/cor_;}
Expand All @@ -51,8 +49,8 @@ class QCDJet
private:
//------ jet 4-momentum vector------------------
LorentzVector P4_;
//------ matched genjet 4-momentum vector-------
LorentzVector genP4_;
//------ matched genjet index-------------------
int genIdx_;
//------ matching radius -----------------------
float genR_;
//------ jec factor ----------------------------
Expand All @@ -69,7 +67,5 @@ class QCDJet
bool looseID_;
//------ tight ID flag -------------------------
bool tightID_;
//------ LorentzVector For PF PARTICLES
// std::vector<LorentzVector> pfParticles_;
};
#endif
3 changes: 0 additions & 3 deletions AnalysisFW/interface/QCDMET.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ class QCDMET
~QCDMET() {}
//------- Set method ------------------------------------
void setVar(float fEt, float fSumEt, float fPhi) {et_ = fEt; sumEt_ = fSumEt; phi_ = fPhi;}
void setCaloMet(float fCaloMetPt) {CaloMetPt_ = fCaloMetPt;}
//------- Get methods -----------------------------------
float met() const {return et_;}
float calometpt() const {return CaloMetPt_;}
float phi() const {return phi_;}
float sumet() const {return sumEt_;}
float met_o_sumet() const {return et_/sumEt_;}

private:
//---- size of MET vector ----------
float et_;
float CaloMetPt_;
//---- sumET -----------------------
float sumEt_;
//---- phi of MET vector -----------
Expand Down
Loading