CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
JetAnalyzer Class Reference

#include <JetAnalyzer.h>

Inheritance diagram for JetAnalyzer:
DQMEDAnalyzer edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

class  JetAnalyzer
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 Get the analysis. More...
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 Inizialize parameters for histo binning. More...
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 Initialize run-based parameters. More...
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 Finish up a run. More...
 
 JetAnalyzer (const edm::ParameterSet &)
 Constructor. More...
 
 ~JetAnalyzer () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void bookMESetSelection (std::string, DQMStore::IBooker &)
 

Static Private Member Functions

static bool jetSortingRule (reco::Jet x, reco::Jet y)
 

Private Attributes

double asymmetryThirdJetCut_
 
double balanceThirdJetCut_
 
bool bypassAllPVChecks_
 
edm::EDGetTokenT< reco::CaloJetCollectioncaloJetsToken_
 
edm::EDGetTokenT< reco::CaloMETCollectioncaloMetToken_
 
edm::ParameterSet cleaningParameters_
 
MonitorElementcleanupME
 
edm::EDGetTokenT< edm::ValueMap< float > > cutBasedPUDiscriminantToken_
 
edm::EDGetTokenT< edm::ValueMap< int > > cutBasedPUIDToken_
 
JetMETDQMDCSFilterDCSFilterForDCSMonitoring_
 
JetMETDQMDCSFilterDCSFilterForJetMonitoring_
 
std::string DirName
 
int eBin_
 
double eMax_
 
double eMin_
 
int etaBin_
 
double etaMax_
 
double etaMin_
 
bool fill_CHS_histos
 
bool fill_jet_high_level_histo
 
bool filljetsubstruc_
 
int fillJIDPassFrac_
 
std::vector< std::string > folderNames_
 
edm::InputTag gtLabel_
 
edm::EDGetTokenT< L1GlobalTriggerReadoutRecordgtToken_
 
GenericTriggerEventFlaghighPtJetEventFlag_
 
std::vector< std::string > highPtJetExpr_
 
HLTConfigProvider hltConfig_
 
bool hltInitialized_
 
edm::InputTag inputJetIDValueMap
 
bool isCaloJet_
 
bool isMiniAODJet_
 
bool isPFJet_
 
bool jetCleaningFlag_
 
edm::InputTag jetCorrectorTag_
 
edm::EDGetTokenT< reco::JetCorrectorjetCorrectorToken_
 
int jetHiPass_
 
edm::EDGetTokenT< edm::ValueMap< reco::JetID > > jetID_ValueMapToken_
 
JetIDSelectionFunctor jetIDFunctor
 
JetIDSelectionFunctor::Quality_t jetidquality
 
std::string JetIDQuality_
 
JetIDSelectionFunctor::Version_t jetidversion
 
std::string JetIDVersion_
 
int jetLoPass_
 
MonitorElementjetME
 
std::string jetType_
 
int leadJetFlag_
 
GenericTriggerEventFlaglowPtJetEventFlag_
 
std::vector< std::string > lowPtJetExpr_
 
int m_bitAlgTechTrig_
 
std::string m_l1algoname_
 
std::map< std::string, MonitorElement * > map_of_MEs
 
MonitorElementmAxis2_highPt_Barrel
 
MonitorElementmAxis2_highPt_EndCap
 
MonitorElementmAxis2_highPt_Forward
 
MonitorElementmAxis2_lowPt_Barrel
 
MonitorElementmAxis2_lowPt_EndCap
 
MonitorElementmAxis2_lowPt_Forward
 
MonitorElementmAxis2_mediumPt_Barrel
 
MonitorElementmAxis2_mediumPt_EndCap
 
MonitorElementmAxis2_mediumPt_Forward
 
MonitorElementmCATopTag_minMass
 
MonitorElementmCATopTag_minMass_boosted
 
MonitorElementmCATopTag_nSubJets
 
MonitorElementmCATopTag_nSubJets_boosted
 
MonitorElementmCATopTag_topMass
 
MonitorElementmCATopTag_topMass_boosted
 
MonitorElementmChargedEmEnergy
 
MonitorElementmChargedEmEnergy_profile
 
MonitorElementmChargedHadronEnergy
 
MonitorElementmChargedHadronEnergy_profile
 
MonitorElementmChargedMuEnergy
 
MonitorElementmChargedMuEnergy_profile
 
MonitorElementmChargedMultiplicity
 
MonitorElementmChargedMultiplicity_profile
 
MonitorElementmCHEn_highPt_Barrel
 
MonitorElementmCHEn_highPt_EndCap
 
MonitorElementmCHEn_lowPt_Barrel
 
MonitorElementmCHEn_lowPt_EndCap
 
MonitorElementmCHEn_mediumPt_Barrel
 
MonitorElementmCHEn_mediumPt_EndCap
 
MonitorElementmCHFrac
 
MonitorElementmCHFrac_highPt_Barrel
 
MonitorElementmCHFrac_highPt_EndCap
 
MonitorElementmCHFrac_lowPt_Barrel
 
MonitorElementmCHFrac_lowPt_EndCap
 
MonitorElementmCHFrac_mediumPt_Barrel
 
MonitorElementmCHFrac_mediumPt_EndCap
 
MonitorElementmCHFrac_profile
 
MonitorElementmCHFracVSeta_highPt
 
MonitorElementmCHFracVSeta_lowPt
 
MonitorElementmCHFracVSeta_mediumPt
 
MonitorElementmCHFracVSpT_Barrel
 
MonitorElementmCHFracVSpT_EndCap
 
MonitorElementmChMultiplicity_highPt_Barrel
 
MonitorElementmChMultiplicity_highPt_EndCap
 
MonitorElementmChMultiplicity_lowPt_Barrel
 
MonitorElementmChMultiplicity_lowPt_EndCap
 
MonitorElementmChMultiplicity_mediumPt_Barrel
 
MonitorElementmChMultiplicity_mediumPt_EndCap
 
MonitorElementmConstituents
 
MonitorElementmConstituents_Barrel
 
MonitorElementmConstituents_Barrel_Hi
 
MonitorElementmConstituents_EndCap
 
MonitorElementmConstituents_EndCap_Hi
 
MonitorElementmConstituents_Forward
 
MonitorElementmConstituents_Forward_Hi
 
MonitorElementmConstituents_profile
 
MonitorElementmConstituents_uncor
 
MonitorElementmCutPUJIDDiscriminant_highPt_Barrel
 
MonitorElementmCutPUJIDDiscriminant_highPt_EndCap
 
MonitorElementmCutPUJIDDiscriminant_highPt_Forward
 
MonitorElementmCutPUJIDDiscriminant_lowPt_Barrel
 
MonitorElementmCutPUJIDDiscriminant_lowPt_EndCap
 
MonitorElementmCutPUJIDDiscriminant_lowPt_Forward
 
MonitorElementmCutPUJIDDiscriminant_mediumPt_Barrel
 
MonitorElementmCutPUJIDDiscriminant_mediumPt_EndCap
 
MonitorElementmCutPUJIDDiscriminant_mediumPt_Forward
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_100_J_Forward
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_290_J_Barrel
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_290_J_EndCap
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_30_55_J_Forward
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_55_100_J_Forward
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel
 
MonitorElementmDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap
 
MonitorElementmDijetAsymmetry
 
MonitorElementmDijetBalance
 
MonitorElementmDPhi
 
MonitorElementmDPhiZJet
 
MonitorElementmeCHFracBarrel_BXm1Empty
 
MonitorElementmeCHFracBarrel_BXm1Filled
 
MonitorElementmeCHFracEndCapMinus_BXm1Empty
 
MonitorElementmeCHFracEndCapMinus_BXm1Filled
 
MonitorElementmeCHFracEndCapPlus_BXm1Empty
 
MonitorElementmeCHFracEndCapPlus_BXm1Filled
 
MonitorElementmEEffChargedFraction
 
MonitorElementmEEffNeutralFraction
 
MonitorElementmeEta_BXm1Empty
 
MonitorElementmeEta_BXm1Filled
 
MonitorElementmEFrac
 
MonitorElementmEFrac_Barrel
 
MonitorElementmEFrac_EndCap
 
MonitorElementmEFrac_Forward
 
MonitorElementmEFrac_profile
 
MonitorElementmeHFEMFracMinus_BXm1Empty
 
MonitorElementmeHFEMFracMinus_BXm1Filled
 
MonitorElementmeHFEMFracPlus_BXm1Empty
 
MonitorElementmeHFEMFracPlus_BXm1Filled
 
MonitorElementmeHFHFracMinus_BXm1Empty
 
MonitorElementmeHFHFracMinus_BXm1Filled
 
MonitorElementmeHFHFracPlus_BXm1Empty
 
MonitorElementmeHFHFracPlus_BXm1Filled
 
MonitorElementmElEn_highPt_Barrel
 
MonitorElementmElEn_highPt_EndCap
 
MonitorElementmElEn_lowPt_Barrel
 
MonitorElementmElEn_lowPt_EndCap
 
MonitorElementmElEn_mediumPt_Barrel
 
MonitorElementmElEn_mediumPt_EndCap
 
MonitorElementmEmEnergyInEB
 
MonitorElementmEmEnergyInEE
 
MonitorElementmEmEnergyInHF
 
MonitorElementmEMF
 
MonitorElementmEMF_CaloJet
 
MonitorElementmeNHFracBarrel_BXm1Empty
 
MonitorElementmeNHFracBarrel_BXm1Filled
 
MonitorElementmeNHFracEndCapMinus_BXm1Empty
 
MonitorElementmeNHFracEndCapMinus_BXm1Filled
 
MonitorElementmeNHFracEndCapPlus_BXm1Empty
 
MonitorElementmeNHFracEndCapPlus_BXm1Filled
 
MonitorElementmePhFracBarrel_BXm1Empty
 
MonitorElementmePhFracBarrel_BXm1Filled
 
MonitorElementmePhFracEndCapMinus_BXm1Empty
 
MonitorElementmePhFracEndCapMinus_BXm1Filled
 
MonitorElementmePhFracEndCapPlus_BXm1Empty
 
MonitorElementmePhFracEndCapPlus_BXm1Filled
 
MonitorElementmePtBarrel_BXm1Empty
 
MonitorElementmePtBarrel_BXm1Filled
 
MonitorElementmePtEndCapMinus_BXm1Empty
 
MonitorElementmePtEndCapMinus_BXm1Filled
 
MonitorElementmePtEndCapPlus_BXm1Empty
 
MonitorElementmePtEndCapPlus_BXm1Filled
 
MonitorElementmePtForwardMinus_BXm1Empty
 
MonitorElementmePtForwardMinus_BXm1Filled
 
MonitorElementmePtForwardPlus_BXm1Empty
 
MonitorElementmePtForwardPlus_BXm1Filled
 
MonitorElementmEResChargedFraction
 
MonitorElementmEResNeutralFraction
 
MonitorElementmEta
 
MonitorElementmEta_Hi
 
MonitorElementmEta_profile
 
MonitorElementmEta_uncor
 
MonitorElementmEtaFirst
 
MonitorElementmfHPD
 
MonitorElementmFilteredMass
 
MonitorElementmFilteredMass_boosted
 
MonitorElementmfRBX
 
MonitorElementmHadEnergyInHB
 
MonitorElementmHadEnergyInHE
 
MonitorElementmHadEnergyInHF
 
MonitorElementmHadEnergyInHO
 
MonitorElementmHFEEn_highPt_Forward
 
MonitorElementmHFEEn_lowPt_Forward
 
MonitorElementmHFEEn_mediumPt_Forward
 
MonitorElementmHFEFrac_highPt_Forward
 
MonitorElementmHFEFrac_lowPt_Forward
 
MonitorElementmHFEFrac_mediumPt_Forward
 
MonitorElementmHFEFracVSpT_Forward
 
MonitorElementmHFEMFrac
 
MonitorElementmHFEMFrac_profile
 
MonitorElementmHFHEn_highPt_Forward
 
MonitorElementmHFHEn_lowPt_Forward
 
MonitorElementmHFHEn_mediumPt_Forward
 
MonitorElementmHFHFrac
 
MonitorElementmHFHFrac_highPt_Forward
 
MonitorElementmHFHFrac_lowPt_Forward
 
MonitorElementmHFHFrac_mediumPt_Forward
 
MonitorElementmHFHFrac_profile
 
MonitorElementmHFHFracVSpT_Forward
 
MonitorElementmHFrac
 
MonitorElementmHFrac_Barrel
 
MonitorElementmHFrac_Barrel_Hi
 
MonitorElementmHFrac_EndCap
 
MonitorElementmHFrac_EndCap_Hi
 
MonitorElementmHFrac_Forward
 
MonitorElementmHFrac_Forward_Hi
 
MonitorElementmHFrac_profile
 
edm::InputTag mInputCollection_
 
MonitorElementmJ1Pt_over_ZPt_highZPt_J_Barrel
 
MonitorElementmJ1Pt_over_ZPt_highZPt_J_EndCap
 
MonitorElementmJ1Pt_over_ZPt_highZPt_J_Forward
 
MonitorElementmJ1Pt_over_ZPt_J_Barrel
 
MonitorElementmJ1Pt_over_ZPt_J_EndCap
 
MonitorElementmJ1Pt_over_ZPt_J_Forward
 
MonitorElementmJ1Pt_over_ZPt_lowZPt_J_Barrel
 
MonitorElementmJ1Pt_over_ZPt_lowZPt_J_EndCap
 
MonitorElementmJ1Pt_over_ZPt_lowZPt_J_Forward
 
MonitorElementmJ1Pt_over_ZPt_mediumZPt_J_Barrel
 
MonitorElementmJ1Pt_over_ZPt_mediumZPt_J_EndCap
 
MonitorElementmJ1Pt_over_ZPt_mediumZPt_J_Forward
 
MonitorElementmJetEnergyCorr
 
MonitorElementmJetEnergyCorrVSEta
 
MonitorElementmJetEnergyCorrVSPt
 
MonitorElementmJetZBalance_highZPt_J_Barrel
 
MonitorElementmJetZBalance_highZPt_J_EndCap
 
MonitorElementmJetZBalance_highZPt_J_Forward
 
MonitorElementmJetZBalance_lowZPt_J_Barrel
 
MonitorElementmJetZBalance_lowZPt_J_EndCap
 
MonitorElementmJetZBalance_lowZPt_J_Forward
 
MonitorElementmJetZBalance_mediumZPt_J_Barrel
 
MonitorElementmJetZBalance_mediumZPt_J_EndCap
 
MonitorElementmJetZBalance_mediumZPt_J_Forward
 
MonitorElementmLooseCutPUJIDPassFractionVSeta
 
MonitorElementmLooseCutPUJIDPassFractionVSpt
 
MonitorElementmLooseJIDPassFractionVSeta
 
MonitorElementmLooseJIDPassFractionVSpt
 
MonitorElementmLooseJIDPassFractionVSptNoHF
 
MonitorElementmLooseMVAPUJIDPassFractionVSeta
 
MonitorElementmLooseMVAPUJIDPassFractionVSpt
 
MonitorElementmMass_Barrel
 
MonitorElementmMass_EndCap
 
MonitorElementmMass_Forward
 
MonitorElementmMass_highPt_Barrel
 
MonitorElementmMass_highPt_EndCap
 
MonitorElementmMass_highPt_Forward
 
MonitorElementmMass_lowPt_Barrel
 
MonitorElementmMass_lowPt_EndCap
 
MonitorElementmMass_lowPt_Forward
 
MonitorElementmMass_mediumPt_Barrel
 
MonitorElementmMass_mediumPt_EndCap
 
MonitorElementmMass_mediumPt_Forward
 
MonitorElementmMaxEInEmTowers
 
MonitorElementmMaxEInHadTowers
 
MonitorElementmMediumCutPUJIDPassFractionVSeta
 
MonitorElementmMediumCutPUJIDPassFractionVSpt
 
MonitorElementmMediumMVAPUJIDPassFractionVSeta
 
MonitorElementmMediumMVAPUJIDPassFractionVSpt
 
MonitorElementmMPF_highZPt_J_Barrel
 
MonitorElementmMPF_highZPt_J_EndCap
 
MonitorElementmMPF_highZPt_J_Forward
 
MonitorElementmMPF_J_Barrel
 
MonitorElementmMPF_J_EndCap
 
MonitorElementmMPF_J_Forward
 
MonitorElementmMPF_lowZPt_J_Barrel
 
MonitorElementmMPF_lowZPt_J_EndCap
 
MonitorElementmMPF_lowZPt_J_Forward
 
MonitorElementmMPF_mediumZPt_J_Barrel
 
MonitorElementmMPF_mediumZPt_J_EndCap
 
MonitorElementmMPF_mediumZPt_J_Forward
 
MonitorElementmMuEn_highPt_Barrel
 
MonitorElementmMuEn_highPt_EndCap
 
MonitorElementmMuEn_lowPt_Barrel
 
MonitorElementmMuEn_lowPt_EndCap
 
MonitorElementmMuEn_mediumPt_Barrel
 
MonitorElementmMuEn_mediumPt_EndCap
 
MonitorElementmMultiplicityQG_highPt_Barrel
 
MonitorElementmMultiplicityQG_highPt_EndCap
 
MonitorElementmMultiplicityQG_highPt_Forward
 
MonitorElementmMultiplicityQG_lowPt_Barrel
 
MonitorElementmMultiplicityQG_lowPt_EndCap
 
MonitorElementmMultiplicityQG_lowPt_Forward
 
MonitorElementmMultiplicityQG_mediumPt_Barrel
 
MonitorElementmMultiplicityQG_mediumPt_EndCap
 
MonitorElementmMultiplicityQG_mediumPt_Forward
 
MonitorElementmMuMultiplicity_highPt_Barrel
 
MonitorElementmMuMultiplicity_highPt_EndCap
 
MonitorElementmMuMultiplicity_lowPt_Barrel
 
MonitorElementmMuMultiplicity_lowPt_EndCap
 
MonitorElementmMuMultiplicity_mediumPt_Barrel
 
MonitorElementmMuMultiplicity_mediumPt_EndCap
 
MonitorElementmMuonMultiplicity
 
MonitorElementmMuonMultiplicity_profile
 
MonitorElementmMVAPUJIDDiscriminant_highPt_Barrel
 
MonitorElementmMVAPUJIDDiscriminant_highPt_EndCap
 
MonitorElementmMVAPUJIDDiscriminant_highPt_Forward
 
MonitorElementmMVAPUJIDDiscriminant_lowPt_Barrel
 
MonitorElementmMVAPUJIDDiscriminant_lowPt_EndCap
 
MonitorElementmMVAPUJIDDiscriminant_lowPt_Forward
 
MonitorElementmMVAPUJIDDiscriminant_mediumPt_Barrel
 
MonitorElementmMVAPUJIDDiscriminant_mediumPt_EndCap
 
MonitorElementmMVAPUJIDDiscriminant_mediumPt_Forward
 
MonitorElementmN90Hits
 
MonitorElementmNeutMultiplicity_highPt_Barrel
 
MonitorElementmNeutMultiplicity_highPt_EndCap
 
MonitorElementmNeutMultiplicity_highPt_Forward
 
MonitorElementmNeutMultiplicity_lowPt_Barrel
 
MonitorElementmNeutMultiplicity_lowPt_EndCap
 
MonitorElementmNeutMultiplicity_lowPt_Forward
 
MonitorElementmNeutMultiplicity_mediumPt_Barrel
 
MonitorElementmNeutMultiplicity_mediumPt_EndCap
 
MonitorElementmNeutMultiplicity_mediumPt_Forward
 
MonitorElementmNeutralEmEnergy
 
MonitorElementmNeutralEmEnergy_profile
 
MonitorElementmNeutralFraction
 
MonitorElementmNeutralFraction2
 
MonitorElementmNeutralHadronEnergy
 
MonitorElementmNeutralHadronEnergy_profile
 
MonitorElementmNeutralMultiplicity
 
MonitorElementmNeutralMultiplicity_profile
 
MonitorElementmNHEn_highPt_Barrel
 
MonitorElementmNHEn_highPt_EndCap
 
MonitorElementmNHEn_lowPt_Barrel
 
MonitorElementmNHEn_lowPt_EndCap
 
MonitorElementmNHEn_mediumPt_Barrel
 
MonitorElementmNHEn_mediumPt_EndCap
 
MonitorElementmNHFrac
 
MonitorElementmNHFrac_highPt_Barrel
 
MonitorElementmNHFrac_highPt_EndCap
 
MonitorElementmNHFrac_lowPt_Barrel
 
MonitorElementmNHFrac_lowPt_EndCap
 
MonitorElementmNHFrac_mediumPt_Barrel
 
MonitorElementmNHFrac_mediumPt_EndCap
 
MonitorElementmNHFrac_profile
 
MonitorElementmNHFracVSeta_highPt
 
MonitorElementmNHFracVSeta_lowPt
 
MonitorElementmNHFracVSeta_mediumPt
 
MonitorElementmNHFracVSpT_Barrel
 
MonitorElementmNHFracVSpT_EndCap
 
MonitorElementmNJets
 
MonitorElementmNJets_profile
 
MonitorElementmnSubJetsCMSTopTag
 
MonitorElementmnSubJetsCMSTopTag_boosted
 
MonitorElementmnSubJetsSoftDrop
 
MonitorElementmnSubJetsSoftDrop_boosted
 
MonitorElementmPhEn_highPt_Barrel
 
MonitorElementmPhEn_highPt_EndCap
 
MonitorElementmPhEn_lowPt_Barrel
 
MonitorElementmPhEn_lowPt_EndCap
 
MonitorElementmPhEn_mediumPt_Barrel
 
MonitorElementmPhEn_mediumPt_EndCap
 
MonitorElementmPhFrac
 
MonitorElementmPhFrac_highPt_Barrel
 
MonitorElementmPhFrac_highPt_EndCap
 
MonitorElementmPhFrac_lowPt_Barrel
 
MonitorElementmPhFrac_lowPt_EndCap
 
MonitorElementmPhFrac_mediumPt_Barrel
 
MonitorElementmPhFrac_mediumPt_EndCap
 
MonitorElementmPhFrac_profile
 
MonitorElementmPhFracVSeta_highPt
 
MonitorElementmPhFracVSeta_lowPt
 
MonitorElementmPhFracVSeta_mediumPt
 
MonitorElementmPhFracVSpT_Barrel
 
MonitorElementmPhFracVSpT_EndCap
 
MonitorElementmPhi
 
MonitorElementmPhi_Barrel
 
MonitorElementmPhi_Barrel_Hi
 
MonitorElementmPhi_EndCap
 
MonitorElementmPhi_EndCap_Hi
 
MonitorElementmPhi_Forward
 
MonitorElementmPhi_Forward_Hi
 
MonitorElementmPhi_Hi
 
MonitorElementmPhi_Lo
 
MonitorElementmPhi_profile
 
MonitorElementmPhi_uncor
 
MonitorElementmPhiFirst
 
MonitorElementmPhiVSEta
 
MonitorElementmPrunedMass
 
MonitorElementmPrunedMass_boosted
 
MonitorElementmPt
 
MonitorElementmPt_1
 
MonitorElementmPt_2
 
MonitorElementmPt_3
 
MonitorElementmPt_Barrel
 
MonitorElementmPt_Barrel_Hi
 
MonitorElementmPt_CaloJet
 
MonitorElementmPt_EndCap
 
MonitorElementmPt_EndCap_Hi
 
MonitorElementmPt_Forward
 
MonitorElementmPt_Forward_Hi
 
MonitorElementmPt_Hi
 
MonitorElementmPt_Lo
 
MonitorElementmPt_profile
 
MonitorElementmPt_uncor
 
MonitorElementmpTD_highPt_Barrel
 
MonitorElementmpTD_highPt_EndCap
 
MonitorElementmpTD_highPt_Forward
 
MonitorElementmpTD_lowPt_Barrel
 
MonitorElementmpTD_lowPt_EndCap
 
MonitorElementmpTD_lowPt_Forward
 
MonitorElementmpTD_mediumPt_Barrel
 
MonitorElementmpTD_mediumPt_EndCap
 
MonitorElementmpTD_mediumPt_Forward
 
MonitorElementmPtFirst
 
MonitorElementmqgLikelihood_highPt_Barrel
 
MonitorElementmqgLikelihood_highPt_EndCap
 
MonitorElementmqgLikelihood_highPt_Forward
 
MonitorElementmqgLikelihood_lowPt_Barrel
 
MonitorElementmqgLikelihood_lowPt_EndCap
 
MonitorElementmqgLikelihood_lowPt_Forward
 
MonitorElementmqgLikelihood_mediumPt_Barrel
 
MonitorElementmqgLikelihood_mediumPt_EndCap
 
MonitorElementmqgLikelihood_mediumPt_Forward
 
MonitorElementmresEMF
 
MonitorElementmSoftDropMass
 
MonitorElementmSoftDropMass_boosted
 
MonitorElementmSubJet1_CMSTopTag_eta
 
MonitorElementmSubJet1_CMSTopTag_eta_boosted
 
MonitorElementmSubJet1_CMSTopTag_mass
 
MonitorElementmSubJet1_CMSTopTag_mass_boosted
 
MonitorElementmSubJet1_CMSTopTag_phi
 
MonitorElementmSubJet1_CMSTopTag_phi_boosted
 
MonitorElementmSubJet1_CMSTopTag_pt
 
MonitorElementmSubJet1_CMSTopTag_pt_boosted
 
MonitorElementmSubJet1_SoftDrop_eta
 
MonitorElementmSubJet1_SoftDrop_eta_boosted
 
MonitorElementmSubJet1_SoftDrop_mass
 
MonitorElementmSubJet1_SoftDrop_mass_boosted
 
MonitorElementmSubJet1_SoftDrop_phi
 
MonitorElementmSubJet1_SoftDrop_phi_boosted
 
MonitorElementmSubJet1_SoftDrop_pt
 
MonitorElementmSubJet1_SoftDrop_pt_boosted
 
MonitorElementmSubJet2_CMSTopTag_eta
 
MonitorElementmSubJet2_CMSTopTag_eta_boosted
 
MonitorElementmSubJet2_CMSTopTag_mass
 
MonitorElementmSubJet2_CMSTopTag_mass_boosted
 
MonitorElementmSubJet2_CMSTopTag_phi
 
MonitorElementmSubJet2_CMSTopTag_phi_boosted
 
MonitorElementmSubJet2_CMSTopTag_pt
 
MonitorElementmSubJet2_CMSTopTag_pt_boosted
 
MonitorElementmSubJet2_SoftDrop_eta
 
MonitorElementmSubJet2_SoftDrop_eta_boosted
 
MonitorElementmSubJet2_SoftDrop_mass
 
MonitorElementmSubJet2_SoftDrop_mass_boosted
 
MonitorElementmSubJet2_SoftDrop_phi
 
MonitorElementmSubJet2_SoftDrop_phi_boosted
 
MonitorElementmSubJet2_SoftDrop_pt
 
MonitorElementmSubJet2_SoftDrop_pt_boosted
 
MonitorElementmSubJet3_CMSTopTag_eta
 
MonitorElementmSubJet3_CMSTopTag_eta_boosted
 
MonitorElementmSubJet3_CMSTopTag_mass
 
MonitorElementmSubJet3_CMSTopTag_mass_boosted
 
MonitorElementmSubJet3_CMSTopTag_phi
 
MonitorElementmSubJet3_CMSTopTag_phi_boosted
 
MonitorElementmSubJet3_CMSTopTag_pt
 
MonitorElementmSubJet3_CMSTopTag_pt_boosted
 
MonitorElementmSubJet4_CMSTopTag_eta
 
MonitorElementmSubJet4_CMSTopTag_eta_boosted
 
MonitorElementmSubJet4_CMSTopTag_mass
 
MonitorElementmSubJet4_CMSTopTag_mass_boosted
 
MonitorElementmSubJet4_CMSTopTag_phi
 
MonitorElementmSubJet4_CMSTopTag_phi_boosted
 
MonitorElementmSubJet4_CMSTopTag_pt
 
MonitorElementmSubJet4_CMSTopTag_pt_boosted
 
MonitorElementmtau2_over_tau1
 
MonitorElementmtau2_over_tau1_boosted
 
MonitorElementmtau3_over_tau2
 
MonitorElementmtau3_over_tau2_boosted
 
MonitorElementmTightCutPUJIDPassFractionVSeta
 
MonitorElementmTightCutPUJIDPassFractionVSpt
 
MonitorElementmTightMVAPUJIDPassFractionVSeta
 
MonitorElementmTightMVAPUJIDPassFractionVSpt
 
MonitorElementmTrimmedMass
 
MonitorElementmTrimmedMass_boosted
 
edm::EDGetTokenT< reco::MuonCollectionMuonsToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > mvaFullPUDiscriminantToken_
 
edm::EDGetTokenT< edm::ValueMap< int > > mvaPUIDToken_
 
MonitorElementmZJetAsymmetry
 
MonitorElementmZMass
 
int nbinsPV_
 
MonitorElementnEEff
 
double nPVhigh_
 
double nPVlow_
 
edm::ParameterSet parameters_
 
edm::EDGetTokenT< pat::JetCollectionpatJetsToken_
 
edm::EDGetTokenT< pat::METCollectionpatMetToken_
 
int pBin_
 
PFJetIDSelectionFunctor pfjetIDFunctor
 
PFJetIDSelectionFunctor::Quality_t pfjetidquality
 
PFJetIDSelectionFunctor::Version_t pfjetidversion
 
edm::EDGetTokenT< reco::PFJetCollectionpfJetsToken_
 
edm::EDGetTokenT< reco::PFMETCollectionpfMetToken_
 
int phiBin_
 
double phiMax_
 
double phiMin_
 
double pMax_
 
double pMin_
 
std::string processname_
 
double pt_min_boosted_
 
int ptBin_
 
double ptMax_
 
double ptMin_
 
double ptThreshold_
 
double ptThresholdUnc_
 
edm::EDGetTokenT< edm::ValueMap< float > > qgaxis2Token_
 
edm::EDGetTokenT< edm::ValueMap< float > > qgLikelihoodToken_
 
edm::EDGetTokenT< edm::ValueMap< int > > qgMultiplicityToken_
 
edm::EDGetTokenT< edm::ValueMap< float > > qgptDToken_
 
bool runcosmics_
 
edm::InputTag theTriggerResultsLabel_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken_
 
int verbose_
 
edm::InputTag vertexLabel_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
 
MonitorElementverticesME
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

DQM jetMET analysis monitoring

Author
F. Chlebana - Fermilab K. Hatakeyama - Rockefeller University

Jan. '14: modified by

M. Artur Weber R. Schoefbeck V. Sordini

Definition at line 84 of file JetAnalyzer.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 64 of file JetAnalyzer.cc.

References gather_cfg::cout, JetIDSelectionFunctor::CRAFT08, JetIDSelectionFunctor::DQM09, PFJetIDSelectionFunctor::FIRSTDATA, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), PFJetIDSelectionFunctor::LOOSE, JetIDSelectionFunctor::LOOSE, JetIDSelectionFunctor::LOOSE_AOD, JetIDSelectionFunctor::MINIMAL, JetIDSelectionFunctor::PURE09, PFJetIDSelectionFunctor::RUNIISTARTUP, AlCaHLTBitMon_QueryRunRegistry::string, PFJetIDSelectionFunctor::TIGHT, JetIDSelectionFunctor::TIGHT, PFJetIDSelectionFunctor::WINTER16, PFJetIDSelectionFunctor::WINTER17, and PFJetIDSelectionFunctor::WINTER17PUPPI.

67 {
68 
69  parameters_ = pSet.getParameter<edm::ParameterSet>("jetAnalysis");
70  mInputCollection_ = pSet.getParameter<edm::InputTag> ("jetsrc");
71  m_l1algoname_ = pSet.getParameter<std::string>("l1algoname");
73 
74  jetType_ = pSet.getParameter<std::string>("JetType");
75  m_l1algoname_ = pSet.getParameter<std::string>("l1algoname");
76 
77  fill_jet_high_level_histo=pSet.getParameter<bool>("filljetHighLevel"),
78  filljetsubstruc_=pSet.getParameter<bool>("fillsubstructure");
79  pt_min_boosted_=pSet.getParameter<double>("ptMinBoosted");
80 
81  isCaloJet_ = (std::string("calo")==jetType_);
82  //isJPTJet_ = (std::string("jpt") ==jetType_);
83  isPFJet_ = (std::string("pf") ==jetType_);
84  isMiniAODJet_ = (std::string("miniaod") ==jetType_);
85  jetCorrectorTag_=pSet.getParameter<edm::InputTag>("JetCorrections");
86  if(!isMiniAODJet_){//in MiniAOD jet is already corrected
87  jetCorrectorToken_ = consumes<reco::JetCorrector>(jetCorrectorTag_);
88  }
89 
90  if (isCaloJet_){
91  caloJetsToken_ = consumes<reco::CaloJetCollection>(mInputCollection_);
92  // MET information
93  caloMetToken_= consumes<reco::CaloMETCollection>(edm::InputTag(pSet.getParameter<edm::InputTag>("METCollectionLabel")));
94  }
95  //if (isJPTJet_) jptJetsToken_ = consumes<reco::JPTJetCollection>(mInputCollection_);
96  if (isPFJet_){ pfJetsToken_ = consumes<reco::PFJetCollection>(mInputCollection_);
97  MuonsToken_ = consumes<reco::MuonCollection>(pSet.getParameter<edm::InputTag> ("muonsrc"));
98  pfMetToken_= consumes<reco::PFMETCollection>(edm::InputTag(pSet.getParameter<edm::InputTag>("METCollectionLabel")));
99  }
100  if (isMiniAODJet_){
101  patJetsToken_ = consumes<pat::JetCollection>(mInputCollection_);
102  patMetToken_= consumes<pat::METCollection>(edm::InputTag(pSet.getParameter<edm::InputTag>("METCollectionLabel")));
103  }
104  cutBasedPUDiscriminantToken_ = consumes< edm::ValueMap<float> >(pSet.getParameter<edm::InputTag>("InputCutPUIDDiscriminant"));
105  cutBasedPUIDToken_ = consumes< edm::ValueMap<int> >(pSet.getParameter<edm::InputTag>("InputCutPUIDValue"));
106  mvaPUIDToken_ = consumes< edm::ValueMap<int> >(pSet.getParameter<edm::InputTag>("InputMVAPUIDValue"));
107  mvaFullPUDiscriminantToken_ = consumes< edm::ValueMap<float> >(pSet.getParameter<edm::InputTag>("InputMVAPUIDDiscriminant"));
108 
109  qgMultiplicityToken_= consumes< edm::ValueMap<int> >(pSet.getParameter<edm::InputTag>("InputQGMultiplicity"));
110  qgLikelihoodToken_= consumes< edm::ValueMap<float> >(pSet.getParameter<edm::InputTag>("InputQGLikelihood"));
111  qgptDToken_= consumes< edm::ValueMap<float> >(pSet.getParameter<edm::InputTag>("InputQGPtDToken"));
112  qgaxis2Token_= consumes< edm::ValueMap<float> >(pSet.getParameter<edm::InputTag>("InputQGAxis2"));
113 
114  fill_CHS_histos= pSet.getParameter<bool>("fillCHShistos");
115 
116  JetIDQuality_ = pSet.getParameter<string>("JetIDQuality");
117  JetIDVersion_ = pSet.getParameter<string>("JetIDVersion");
118 
119  // JetID definitions for Calo and JPT Jets
120  if(isCaloJet_){
121  inputJetIDValueMap = pSet.getParameter<edm::InputTag>("InputJetIDValueMap");
122  jetID_ValueMapToken_= consumes< edm::ValueMap<reco::JetID> >(inputJetIDValueMap);
123  if(JetIDVersion_== "PURE09"){
125  }else if (JetIDVersion_== "DQM09"){
127  }else if (JetIDVersion_=="CRAFT08"){
129  }else{
130  if (verbose_) std::cout<<"no Valid JetID version given"<<std::endl;
131  }
132  if(JetIDQuality_== "MINIMAL"){
134  }else if (JetIDQuality_== "LOOSE_AOD"){
136  }else if (JetIDQuality_=="LOOSE"){
138  }else if (JetIDQuality_=="TIGHT"){
140  }else{
141  if (verbose_) std::cout<<"no Valid JetID quality given"<<std::endl;
142  }
144 
145  }
146 
147  //Jet ID definitions for PFJets
148  if(isPFJet_ || isMiniAODJet_){
149  if(JetIDVersion_== "FIRSTDATA"){
151  }else if(JetIDVersion_== "RUNIISTARTUP"){
153  }else if(JetIDVersion_== "WINTER16"){
155  }else if(JetIDVersion_== "WINTER17"){
157  }else if(JetIDVersion_== "WINTER17PUPPI"){
159  }else{
160  if (verbose_) std::cout<<"no valid PF JetID version given"<<std::endl;
161  }
162  if (JetIDQuality_=="LOOSE"){
164  }else if (JetIDQuality_=="TIGHT"){
166  }else{
167  if (verbose_) std::cout<<"no Valid PFJetID quality given"<<std::endl;
168  }
170  }
171  //check later if some of those are also needed for PFJets
172  leadJetFlag_ = 0;
173  jetLoPass_ = 0;
174  jetHiPass_ = 0;
175  ptThreshold_ = 20.;
176  ptThresholdUnc_ = 20.;
178  balanceThirdJetCut_ = 0.2;
179 
180  theTriggerResultsLabel_ = pSet.getParameter<edm::InputTag>("TriggerResultsLabel");
181  triggerResultsToken_ = consumes<edm::TriggerResults>(edm::InputTag(theTriggerResultsLabel_));
182  //
183  runcosmics_ = pSet.getUntrackedParameter<bool>("runcosmics", false);
184  jetCleaningFlag_ = pSet.getUntrackedParameter<bool>("JetCleaningFlag", true);
185 
186  if(runcosmics_){
187  jetCleaningFlag_ =false;
188  }
189 
190 
191  // ==========================================================
192  //DCS information
193  // ==========================================================
195  DCSFilterForJetMonitoring_ = new JetMETDQMDCSFilter(pSet.getParameter<ParameterSet>("DCSFilterForJetMonitoring"), iC);
196  DCSFilterForDCSMonitoring_ = new JetMETDQMDCSFilter("ecal:hbhe:hf:ho:pixel:sistrip:es:muon", iC);
197 
198  //Trigger selectoin
199  edm::ParameterSet highptjetparms = pSet.getParameter<edm::ParameterSet>("highPtJetTrigger");
200  edm::ParameterSet lowptjetparms = pSet.getParameter<edm::ParameterSet>("lowPtJetTrigger" );
201 
202  highPtJetEventFlag_ = new GenericTriggerEventFlag( highptjetparms, consumesCollector(), *this );
203  lowPtJetEventFlag_ = new GenericTriggerEventFlag( lowptjetparms , consumesCollector(), *this );
204 
205  highPtJetExpr_ = highptjetparms.getParameter<std::vector<std::string> >("hltPaths");
206  lowPtJetExpr_ = lowptjetparms .getParameter<std::vector<std::string> >("hltPaths");
207 
208  processname_ = pSet.getParameter<std::string>("processname");
209 
210  //jet cleanup parameters
211  cleaningParameters_ = pSet.getParameter<ParameterSet>("CleaningParameters");
212 
213  bypassAllPVChecks_= cleaningParameters_.getParameter<bool>("bypassAllPVChecks");
214  vertexLabel_ = cleaningParameters_.getParameter<edm::InputTag>("vertexCollection");
215  vertexToken_ = consumes<std::vector<reco::Vertex> >(edm::InputTag(vertexLabel_));
216 
217  gtLabel_ = cleaningParameters_.getParameter<edm::InputTag>("gtLabel");
218  gtToken_ = consumes<L1GlobalTriggerReadoutRecord>(edm::InputTag(gtLabel_));
219 
220  std::string inputCollectionLabel(mInputCollection_.label());
221  verbose_= parameters_.getParameter<int>("verbose");
222  // monitoring of eta parameter
223  etaBin_ = parameters_.getParameter<int>("etaBin");
224  etaMin_ = parameters_.getParameter<double>("etaMin");
225  etaMax_ = parameters_.getParameter<double>("etaMax");
226  // monitoring of phi paramater
227  phiBin_ = parameters_.getParameter<int>("phiBin");
228  phiMin_ = parameters_.getParameter<double>("phiMin");
229  phiMax_ = parameters_.getParameter<double>("phiMax");
230  // monitoring of the transverse momentum
231  ptBin_ = parameters_.getParameter<int>("ptBin");
232  ptMin_ = parameters_.getParameter<double>("ptMin");
233  ptMax_ = parameters_.getParameter<double>("ptMax");
234  //
235  eBin_ = parameters_.getParameter<int>("eBin");
236  eMin_ = parameters_.getParameter<double>("eMin");
237  eMax_ = parameters_.getParameter<double>("eMax");
238  //
239  pBin_ = parameters_.getParameter<int>("pBin");
240  pMin_ = parameters_.getParameter<double>("pMin");
241  pMax_ = parameters_.getParameter<double>("pMax");
242  //
243  nbinsPV_ = parameters_.getParameter<int>("pVBin");
244  nPVlow_ = parameters_.getParameter<double>("pVMin");
245  nPVhigh_ = parameters_.getParameter<double>("pVMax");
246  //
247  ptThreshold_ = parameters_.getParameter<double>("ptThreshold");
248  ptThresholdUnc_=parameters_.getParameter<double>("ptThresholdUnc");
249  asymmetryThirdJetCut_ = parameters_.getParameter<double>("asymmetryThirdJetCut");
250  balanceThirdJetCut_ = parameters_.getParameter<double>("balanceThirdJetCut");
251 }
edm::EDGetTokenT< edm::ValueMap< float > > qgaxis2Token_
Definition: JetAnalyzer.h:139
JetIDSelectionFunctor::Version_t jetidversion
Definition: JetAnalyzer.h:161
T getParameter(std::string const &) const
PFJetIDSelectionFunctor::Quality_t pfjetidquality
Definition: JetAnalyzer.h:164
T getUntrackedParameter(std::string const &, T const &) const
bool bypassAllPVChecks_
Definition: JetAnalyzer.h:344
double ptMin_
Definition: JetAnalyzer.h:188
bool jetCleaningFlag_
Definition: JetAnalyzer.h:359
bool fill_jet_high_level_histo
Definition: JetAnalyzer.h:807
edm::EDGetTokenT< reco::JetCorrector > jetCorrectorToken_
Definition: JetAnalyzer.h:156
std::vector< std::string > lowPtJetExpr_
Definition: JetAnalyzer.h:357
edm::EDGetTokenT< edm::ValueMap< int > > cutBasedPUIDToken_
Definition: JetAnalyzer.h:133
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
Definition: JetAnalyzer.h:122
int m_bitAlgTechTrig_
Definition: JetAnalyzer.h:215
double balanceThirdJetCut_
Definition: JetAnalyzer.h:210
edm::EDGetTokenT< edm::ValueMap< float > > qgLikelihoodToken_
Definition: JetAnalyzer.h:137
JetIDSelectionFunctor jetIDFunctor
Definition: JetAnalyzer.h:162
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
Definition: JetAnalyzer.h:125
PFJetIDSelectionFunctor pfjetIDFunctor
Definition: JetAnalyzer.h:167
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
Definition: JetAnalyzer.h:123
int leadJetFlag_
Definition: JetAnalyzer.h:206
edm::InputTag inputJetIDValueMap
Definition: JetAnalyzer.h:144
std::string jetType_
Definition: JetAnalyzer.h:117
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::EDGetTokenT< edm::ValueMap< int > > mvaPUIDToken_
Definition: JetAnalyzer.h:134
bool isCaloJet_
Definition: JetAnalyzer.h:803
double pMin_
Definition: JetAnalyzer.h:196
edm::EDGetTokenT< edm::ValueMap< float > > mvaFullPUDiscriminantToken_
Definition: JetAnalyzer.h:131
std::string m_l1algoname_
Definition: JetAnalyzer.h:214
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
Definition: JetAnalyzer.h:120
JetMETDQMDCSFilter * DCSFilterForDCSMonitoring_
Definition: JetAnalyzer.h:583
JetMETDQMDCSFilter * DCSFilterForJetMonitoring_
Definition: JetAnalyzer.h:582
double nPVhigh_
Definition: JetAnalyzer.h:201
bool filljetsubstruc_
Definition: JetAnalyzer.h:360
bool runcosmics_
Definition: JetAnalyzer.h:363
edm::InputTag gtLabel_
Definition: JetAnalyzer.h:150
edm::EDGetTokenT< reco::CaloMETCollection > caloMetToken_
Definition: JetAnalyzer.h:126
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtToken_
Definition: JetAnalyzer.h:121
double pMax_
Definition: JetAnalyzer.h:197
edm::EDGetTokenT< edm::ValueMap< float > > cutBasedPUDiscriminantToken_
Definition: JetAnalyzer.h:132
edm::EDGetTokenT< pat::JetCollection > patJetsToken_
Definition: JetAnalyzer.h:130
double ptMax_
Definition: JetAnalyzer.h:189
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
double ptThreshold_
Definition: JetAnalyzer.h:207
std::string JetIDVersion_
Definition: JetAnalyzer.h:159
double pt_min_boosted_
Definition: JetAnalyzer.h:361
std::string processname_
Definition: JetAnalyzer.h:347
bool fill_CHS_histos
Definition: JetAnalyzer.h:809
edm::EDGetTokenT< edm::ValueMap< float > > qgptDToken_
Definition: JetAnalyzer.h:138
edm::InputTag jetCorrectorTag_
Definition: JetAnalyzer.h:155
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Definition: JetAnalyzer.h:119
double eMin_
Definition: JetAnalyzer.h:192
PF Jet selector for pat::Jets.
std::string JetIDQuality_
Definition: JetAnalyzer.h:158
double phiMin_
Definition: JetAnalyzer.h:184
double nPVlow_
Definition: JetAnalyzer.h:200
Jet selector for pat::Jets and for CaloJets.
edm::EDGetTokenT< reco::MuonCollection > MuonsToken_
Definition: JetAnalyzer.h:129
JetIDSelectionFunctor::Quality_t jetidquality
Definition: JetAnalyzer.h:160
edm::EDGetTokenT< edm::ValueMap< reco::JetID > > jetID_ValueMapToken_
Definition: JetAnalyzer.h:145
edm::EDGetTokenT< edm::ValueMap< int > > qgMultiplicityToken_
Definition: JetAnalyzer.h:136
double asymmetryThirdJetCut_
Definition: JetAnalyzer.h:209
double etaMin_
Definition: JetAnalyzer.h:180
double ptThresholdUnc_
Definition: JetAnalyzer.h:208
double etaMax_
Definition: JetAnalyzer.h:181
GenericTriggerEventFlag * highPtJetEventFlag_
Definition: JetAnalyzer.h:353
bool isMiniAODJet_
Definition: JetAnalyzer.h:805
edm::ParameterSet cleaningParameters_
Definition: JetAnalyzer.h:148
std::string const & label() const
Definition: InputTag.h:36
GenericTriggerEventFlag * lowPtJetEventFlag_
Definition: JetAnalyzer.h:354
edm::EDGetTokenT< pat::METCollection > patMetToken_
Definition: JetAnalyzer.h:127
edm::ParameterSet parameters_
Definition: JetAnalyzer.h:153
edm::InputTag theTriggerResultsLabel_
Definition: JetAnalyzer.h:113
std::vector< std::string > highPtJetExpr_
Definition: JetAnalyzer.h:356
PFJetIDSelectionFunctor::Version_t pfjetidversion
Definition: JetAnalyzer.h:165
double eMax_
Definition: JetAnalyzer.h:193
double phiMax_
Definition: JetAnalyzer.h:185
edm::InputTag vertexLabel_
Definition: JetAnalyzer.h:149
edm::InputTag mInputCollection_
Definition: JetAnalyzer.h:112
JetAnalyzer::~JetAnalyzer ( )
override

Destructor.

Definition at line 255 of file JetAnalyzer.cc.

References LogTrace.

255  {
256 
257  delete highPtJetEventFlag_;
258  delete lowPtJetEventFlag_;
259 
262  LogTrace("JetAnalyzer")<<"[JetAnalyzer] Saving the histos";
263 }
JetMETDQMDCSFilter * DCSFilterForDCSMonitoring_
Definition: JetAnalyzer.h:583
JetMETDQMDCSFilter * DCSFilterForJetMonitoring_
Definition: JetAnalyzer.h:582
#define LogTrace(id)
GenericTriggerEventFlag * highPtJetEventFlag_
Definition: JetAnalyzer.h:353
GenericTriggerEventFlag * lowPtJetEventFlag_
Definition: JetAnalyzer.h:354

Member Function Documentation

void JetAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Get the analysis.

Definition at line 1721 of file JetAnalyzer.cc.

References edm::HLTGlobalStatus::accept(), isolatedTracks_cfi::caloJets, ALCARECOTkAlJpsiMuMu_cff::charge, reco::JetCorrector::correction(), gather_cfg::cout, deltaR(), cmsPerfPublish::DirName, PVValHelper::dxy, PVValHelper::dz, PVValHelper::eta, reco::LeafCandidate::eta(), edm::EventID::event(), reco::JetID::fHPD, HcalObjRepresent::Fill(), reco::JetID::fRBX, edm::Event::getByToken(), cutBasedMuonId_MuonPOG_V0_cff::globalTrack, mps_fire::i, edm::EventBase::id(), susybsm::HSCParticleType::innerTrack, edm::HandleBase::isValid(), PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, LogDebug, SiStripPI::max, RazorAnalyzer::met, reco::btau::muonMultiplicity, Reconstruction_hiPF_cff::Muons, reco::JetID::n90Hits, reco::Jet::nConstituents(), jets_cff::nConstituents, PileupJetIdentifier::passJetId(), hemisphereProducer_cfi::patJets, muons_cfi::pfIsolationR04, pfJetBenchmark_cfi::pfJets, reco::LeafCandidate::phi(), position, edm::Handle< T >::product(), EnergyCorrector::pt, reco::LeafCandidate::pt(), hiDetachedQuadStep_cff::pt1, hiDetachedQuadStep_cff::pt2, reco::LeafCandidate::px(), reco::LeafCandidate::py(), RecoJets_cff::recoJets, reco::JetID::restrictedEMF, Scenarios_cff::scale, reco::Jet::scaleEnergy(), edm::TriggerNames::size(), L1GlobalTriggerReadoutRecord::technicalTriggerWord(), edm::TriggerNames::triggerName(), edm::Event::triggerNames(), edm::triggerResults(), and particleFlowSuperClusterECAL_cfi::vertexCollection.

1721  {
1722 
1723 
1724  //set general folders first --> change later on for different folders
1725  if(jetCleaningFlag_){
1726  //dbe_->setCurrentFolder("JetMET/Jet/Cleaned"+mInputCollection_.label());
1727  DirName = "JetMET/Jet/Cleaned"+mInputCollection_.label();
1728  }else{
1729  //dbe_->setCurrentFolder("JetMET/Jet/Uncleaned"+mInputCollection_.label());
1730  DirName = "JetMET/Jet/Uncleaned"+mInputCollection_.label();
1731  }
1732 
1733 
1734  Handle<ValueMap<float> > puJetIdMva;
1735  Handle<ValueMap<int> > puJetIdFlagMva;
1736  Handle<ValueMap<float> > puJetId;
1737  Handle<ValueMap<int> > puJetIdFlag;
1738 
1739  Handle<ValueMap<int> > qgMultiplicity;
1740  Handle<ValueMap<float> > qgLikelihood;
1741  Handle<ValueMap<float> > qgptD;
1742  Handle<ValueMap<float> > qgaxis2;
1743 
1744  //should insure we have a PFJet in with CHS
1745  if(fill_CHS_histos){
1746  iEvent.getByToken(qgMultiplicityToken_,qgMultiplicity);
1747  iEvent.getByToken(qgLikelihoodToken_,qgLikelihood);
1748  iEvent.getByToken(qgptDToken_,qgptD);
1749  iEvent.getByToken(qgaxis2Token_,qgaxis2);
1750  }
1751 
1752  if(!isMiniAODJet_){
1753  iEvent.getByToken(mvaPUIDToken_,puJetIdFlagMva);
1754  iEvent.getByToken(cutBasedPUDiscriminantToken_,puJetId);
1755  iEvent.getByToken(cutBasedPUIDToken_,puJetIdFlag);
1756  iEvent.getByToken(mvaFullPUDiscriminantToken_ ,puJetIdMva);
1757  }
1758 
1759  // **** Get the TriggerResults container
1761  iEvent.getByToken(triggerResultsToken_, triggerResults);
1762 
1763  Int_t JetLoPass = 0;
1764  Int_t JetHiPass = 0;
1765 
1766  if (triggerResults.isValid()){
1767  const edm::TriggerNames & triggerNames = iEvent.triggerNames(*triggerResults);
1768 
1769  const unsigned int nTrig(triggerNames.size());
1770  for (unsigned int i=0;i<nTrig;++i)
1771  {
1772  if (triggerNames.triggerName(i).find(highPtJetExpr_[0].substr(0,highPtJetExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
1773  JetHiPass=1;
1774  else if (triggerNames.triggerName(i).find(lowPtJetExpr_[0].substr(0,lowPtJetExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
1775  JetLoPass=1;
1776  }
1777 
1778  }
1779 
1780  if (verbose_) std::cout << "trigger label " << theTriggerResultsLabel_ << std::endl;
1781 
1782 
1783  if (verbose_) {
1784  std::cout << ">>> Trigger Lo = " << JetLoPass
1785  << " Hi = " << JetHiPass
1786  << std::endl;
1787  }
1788 
1789  // ==========================================================
1790  //Vertex information
1791  Handle<VertexCollection> vertexHandle;
1792  iEvent.getByToken(vertexToken_, vertexHandle);
1793 
1794  if (!vertexHandle.isValid()) {
1795  LogDebug("") << "CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1796  if (verbose_) std::cout << "CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1797  }
1798  int numPV = 0;
1799  if ( vertexHandle.isValid() ){
1800  VertexCollection vertexCollection = *(vertexHandle.product());
1801  numPV = vertexCollection.size();
1802  }
1803  bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV>0));
1804  if(fill_jet_high_level_histo){//should be filled for all events, no selection up to this point
1805  verticesME = map_of_MEs["JetMET/vertices"]; if(verticesME && verticesME->getRootObject())verticesME->Fill(numPV);
1806  }
1807  // ==========================================================
1809  iEvent.getByToken(gtToken_, gtReadoutRecord);
1810 
1811  if (!gtReadoutRecord.isValid()) {
1812  LogInfo("JetAnalyzer") << "JetAnalyzer: Could not find GT readout record" << std::endl;
1813  if (verbose_) std::cout << "JetAnalyzer: Could not find GT readout record product" << std::endl;
1814  }
1815 
1816  //bool techTriggerResultBxE = false;
1817  bool techTriggerResultBxF = false;
1818  bool techTriggerResultBx0 = false;
1819 
1820  if (!gtReadoutRecord.isValid()) {
1821  LogDebug("") << "CaloMETAnalyzer: Could not find GT readout record" << std::endl;
1822  if (verbose_) std::cout << "CaloMETAnalyzer: Could not find GT readout record product" << std::endl;
1823  }else{
1824  // trigger results before mask for BxInEvent -2 (E), -1 (F), 0 (L1A), 1, 2
1825  //const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxE = gtReadoutRecord->technicalTriggerWord(-2);
1826  const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxF = gtReadoutRecord->technicalTriggerWord(-1);
1827  const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBx0 = gtReadoutRecord->technicalTriggerWord();
1828  //const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxG = gtReadoutRecord->technicalTriggerWord(1);
1829  //const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxH = gtReadoutRecord->technicalTriggerWord(2);
1830  if (m_bitAlgTechTrig_ > -1 && !technicalTriggerWordBeforeMaskBx0.empty()) {
1831  techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
1832  if(techTriggerResultBx0!=0){
1833  //techTriggerResultBxE = technicalTriggerWordBeforeMaskBxE.at(m_bitAlgTechTrig_);
1834  techTriggerResultBxF = technicalTriggerWordBeforeMaskBxF.at(m_bitAlgTechTrig_);
1835  }
1836  }
1837  }
1838 
1839 
1840  DCSFilterForDCSMonitoring_->filter(iEvent, iSetup);
1841  if(fill_jet_high_level_histo){//should be filled only once
1842  cleanupME = map_of_MEs["JetMET/cleanup"]; if(cleanupME && cleanupME->getRootObject()){
1843  if (bPrimaryVertex) cleanupME->Fill(0.5);
1852  }
1853  }
1858 
1860 
1861  bool pass_Z_selection=false;
1863 
1864  int mu_index0=-1;
1865  int mu_index1=-1;
1866 
1867  if (isCaloJet_) iEvent.getByToken(caloJetsToken_, caloJets);
1868  //if (isJPTJet_) iEvent.getByToken(jptJetsToken_, jptJets);
1869  if (isPFJet_){ iEvent.getByToken(pfJetsToken_, pfJets);
1870  iEvent.getByToken(MuonsToken_, Muons);
1871  double pt0=-1;
1872  double pt1=-1;
1873  //fill it only for cleaned jets
1874  if(jetCleaningFlag_ && Muons.isValid() && Muons->size()>1){
1875  for (unsigned int i=0;i<Muons->size();i++){
1876  bool pass_muon_id=false;
1877  bool pass_muon_iso=false;
1878  double dxy=fabs((*Muons)[i].muonBestTrack()->dxy());
1879  double dz=fabs((*Muons)[i].muonBestTrack()->dz());
1880  if (numPV>0){
1881  dxy=fabs((*Muons)[i].muonBestTrack()->dxy((*vertexHandle)[0].position()));
1882  dz=fabs((*Muons)[i].muonBestTrack()->dz((*vertexHandle)[0].position()));
1883  }
1884  if((*Muons)[i].pt()>20 && fabs((*Muons)[i].eta())<2.3){
1885  if((*Muons)[i].isGlobalMuon() && (*Muons)[i].isPFMuon() && (*Muons)[i].globalTrack()->hitPattern().numberOfValidMuonHits() > 0 && (*Muons)[i].numberOfMatchedStations() > 1 && dxy < 0.2 && (*Muons)[i].numberOfMatchedStations() > 1 && dz<0.5 && (*Muons)[i].innerTrack()->hitPattern().numberOfValidPixelHits() > 0 && (*Muons)[i].innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5){
1886  pass_muon_id=true;
1887  }
1888  // Muon pf isolation DB corrected
1889  float muonIsoPFdb = ((*Muons)[i].pfIsolationR04().sumChargedHadronPt
1890  + std::max(0., (*Muons)[i].pfIsolationR04().sumNeutralHadronEt + (*Muons)[i].pfIsolationR04().sumPhotonEt - 0.5*(*Muons)[i].pfIsolationR04().sumPUPt))/(*Muons)[i].pt();
1891  if(muonIsoPFdb<0.12){
1892  pass_muon_iso=true;
1893  }
1894 
1895  if(pass_muon_id && pass_muon_iso){
1896  if((*Muons)[i].pt()>pt0){
1897  mu_index1=mu_index0;
1898  pt1=pt0;
1899  mu_index0=i;
1900  pt0=(*Muons)[i].pt();
1901  }else if ((*Muons)[i].pt()>pt1){
1902  mu_index1=i;
1903  pt1=(*Muons)[i].pt();
1904  }
1905  }
1906  }
1907  }
1908  if(mu_index0>=0 && mu_index1>=0){
1909  if((*Muons)[mu_index0].charge()*(*Muons)[mu_index1].charge()<0){
1910  zCand=(*Muons)[mu_index0].polarP4()+(*Muons)[mu_index1].polarP4();
1911  if(fabs(zCand.M()-91.)<20 && zCand.Pt()>30){
1912  pass_Z_selection=true;
1913  }
1914  }
1915  }
1916  }
1917  }
1918  if(isMiniAODJet_) iEvent.getByToken(patJetsToken_,patJets);
1919 
1920  edm::Handle< edm::ValueMap<reco::JetID> >jetID_ValueMap_Handle;
1921  if(/*isJPTJet_ || */isCaloJet_){
1922  if(!runcosmics_){
1923  iEvent.getByToken(jetID_ValueMapToken_,jetID_ValueMap_Handle);
1924  }
1925  }
1926 
1927  //check for collections AND DCS filters
1928  bool dcsDecision = DCSFilterForJetMonitoring_->filter(iEvent, iSetup);
1929  bool jetCollectionIsValid = false;
1930  if (isCaloJet_) jetCollectionIsValid = caloJets.isValid();
1931  //if (isJPTJet_) jetCollectionIsValid = jptJets.isValid();
1932  if (isPFJet_) jetCollectionIsValid = pfJets.isValid();
1933  if (isMiniAODJet_) jetCollectionIsValid = patJets.isValid();
1934 
1935 
1936  if (jetCleaningFlag_ && (!jetCollectionIsValid || !bPrimaryVertex || !dcsDecision)) return;
1937 
1938  unsigned int collSize=-1;
1939  if (isCaloJet_) collSize = caloJets->size();
1940  //if (isJPTJet_) {
1941  //collSize=jptJets->size();
1942  //if(collSize>0){
1943  // //update the track propagator and strip noise calculator
1944  // trackPropagator_->update(iSetup);
1945  // //sOverNCalculator_->update(iSetup);
1946  //}
1947  //}
1948  if (isPFJet_) collSize=pfJets->size();
1949  if (isMiniAODJet_) collSize=patJets->size();
1950 
1951  double scale=-1;
1952  //now start changes for jets
1953  std::vector<Jet> corJets;
1954  corJets.clear();
1955 
1956  //maybe not most elegant solution, but works for sure
1957  int ind1=-1;
1958  double pt1=-1;
1959  int ind2=-1;
1960  double pt2=-1;
1961  int ind3=-1;
1962  double pt3=-1;
1963 
1964  bool cleaned_first_jet=false;
1965  bool cleaned_second_jet=false;
1966  //bool cleaned_third_jet=false;
1967  //for ZJets selection check for muon jet overlap
1968  int ind1_mu_vetoed=-1;
1969  double pt1_mu_vetoed=-1;
1970  int ind2_mu_vetoed=-1;
1971  double pt2_mu_vetoed=-1;
1972  bool cleaned_first_jet_mu_vetoed=false;
1973  bool cleaned_second_jet_mu_vetoed=false;
1974 
1975  //now start changes for jets
1976  std::vector<Jet> recoJets;
1977  recoJets.clear();
1978 
1979  int numofjets=0;
1980 
1982  bool pass_correction_flag=false;
1983  if(!isMiniAODJet_ && !jetCorrectorTag_.label().empty()){
1984  iEvent.getByToken(jetCorrectorToken_, jetCorr);
1985  if (jetCorr.isValid()){
1986  pass_correction_flag=true;
1987  }
1988  }
1989  if(isMiniAODJet_){
1990  pass_correction_flag=true;
1991  }
1992 
1993  for (unsigned int ijet=0; ijet<collSize; ijet++) {
1994  //bool thiscleaned=false;
1995  Jet correctedJet;
1996  bool pass_uncorrected=false;
1997  bool pass_corrected=false;
1998  if (isCaloJet_){
1999  correctedJet=(*caloJets)[ijet];
2000  }
2001  //if (isJPTJet_){
2002  //correctedJet=(*jptJets)[ijet];
2003  //}
2004  if (isPFJet_){
2005  correctedJet=(*pfJets)[ijet];
2006  }
2007  if (isMiniAODJet_){
2008  correctedJet=(*patJets)[ijet];
2009  }
2010  if(!isMiniAODJet_ && correctedJet.pt()>ptThresholdUnc_){
2011  pass_uncorrected=true;
2012  }
2013  if(isMiniAODJet_ && (correctedJet.pt()*(*patJets)[ijet].jecFactor("Uncorrected"))>ptThresholdUnc_){
2014  pass_uncorrected=true;
2015  }
2016  if (pass_correction_flag && !isMiniAODJet_) {
2017  if (isCaloJet_){
2018  scale = jetCorr->correction((*caloJets)[ijet]);
2019  }
2020  if (isPFJet_){
2021  scale = jetCorr->correction((*pfJets)[ijet]);
2022  }
2023  correctedJet.scaleEnergy(scale);
2024  }
2025  if(correctedJet.pt()> ptThreshold_){
2026  pass_corrected=true;
2027  }
2028  //if (!pass_corrected && !pass_uncorrected) continue;
2029  //remove the continue line, for physics selections we might losen the pt-thresholds as we care only about leading jets
2030  //fill only corrected jets -> check ID for uncorrected jets
2031  if(pass_corrected){
2032  recoJets.push_back(correctedJet);
2033  }
2034  bool jetpassid=true;
2035  bool Thiscleaned=true;
2036  bool JetIDWPU=true;
2037  //jet ID for calojets
2038  if (isCaloJet_) {
2039  reco::CaloJetRef calojetref(caloJets, ijet);
2040  if(!runcosmics_){
2041  reco::JetID jetID = (*jetID_ValueMap_Handle)[calojetref];
2042  jetpassid = jetIDFunctor((*caloJets)[ijet], jetID);
2043  JetIDWPU=jetpassid;
2044  if(jetCleaningFlag_){
2045  Thiscleaned=jetpassid;
2046  }
2047  if(Thiscleaned && pass_corrected){//if cleaning requested->jet passes a loose ID
2048  mN90Hits = map_of_MEs[DirName+"/"+"N90Hits"]; if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID.n90Hits);
2049  mfHPD = map_of_MEs[DirName+"/"+"fHPD"]; if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID.fHPD);
2050  mresEMF = map_of_MEs[DirName+"/"+"resEMF"]; if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID.restrictedEMF);
2051  mfRBX = map_of_MEs[DirName+"/"+"fRBX"]; if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID.fRBX);
2052  }
2053  }
2054  if(jetCleaningFlag_){
2055  Thiscleaned=jetpassid;
2056  }
2057  if(Thiscleaned && pass_uncorrected){
2058  mPt_uncor = map_of_MEs[DirName+"/"+"Pt_uncor"]; if (mPt_uncor && mPt_uncor->getRootObject()) mPt_uncor->Fill ((*caloJets)[ijet].pt());
2059  mEta_uncor = map_of_MEs[DirName+"/"+"Eta_uncor"]; if (mEta_uncor && mEta_uncor->getRootObject()) mEta_uncor->Fill ((*caloJets)[ijet].eta());
2060  mPhi_uncor = map_of_MEs[DirName+"/"+"Phi_uncor"]; if (mPhi_uncor && mPhi_uncor->getRootObject()) mPhi_uncor->Fill ((*caloJets)[ijet].phi());
2061  mConstituents_uncor = map_of_MEs[DirName+"/"+"Constituents_uncor"]; if (mConstituents_uncor && mConstituents_uncor->getRootObject()) mConstituents_uncor->Fill ((*caloJets)[ijet].nConstituents());
2062  }
2063  //now do calojet specific fractions and histograms ->H and E fracs
2064  if(Thiscleaned && pass_corrected){//if cleaning requested->jet passes a loose ID
2065  mHFrac = map_of_MEs[DirName+"/"+"HFrac"]; if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ijet].energyFractionHadronic());
2066  mEFrac = map_of_MEs[DirName+"/"+"EFrac"]; if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ijet].emEnergyFraction());
2067  mHFrac_profile = map_of_MEs[DirName+"/"+"HFrac_profile"]; if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->Fill(numPV, (*caloJets)[ijet].energyFractionHadronic());
2068  mEFrac_profile = map_of_MEs[DirName+"/"+"EFrac_profile"]; if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->Fill(numPV, (*caloJets)[ijet].emEnergyFraction());
2069  if (fabs((*caloJets)[ijet].eta()) <= 1.3) {
2070  mHFrac_Barrel = map_of_MEs[DirName+"/"+"HFrac_Barrel"]; if (mHFrac_Barrel && mHFrac_Barrel->getRootObject()) mHFrac_Barrel->Fill((*caloJets)[ijet].energyFractionHadronic());
2071  mEFrac_Barrel = map_of_MEs[DirName+"/"+"EFrac_Barrel"]; if (mEFrac_Barrel && mEFrac_Barrel->getRootObject()) mEFrac_Barrel->Fill((*caloJets)[ijet].emEnergyFraction());
2072  }else if(fabs((*caloJets)[ijet].eta()) <3.0){
2073  mHFrac_EndCap = map_of_MEs[DirName+"/"+"HFrac_EndCap"]; if (mHFrac_EndCap && mHFrac_EndCap->getRootObject()) mHFrac_EndCap->Fill((*caloJets)[ijet].energyFractionHadronic());
2074  mEFrac_EndCap = map_of_MEs[DirName+"/"+"EFrac_EndCap"]; if (mEFrac_EndCap && mEFrac_EndCap->getRootObject()) mEFrac_EndCap->Fill((*caloJets)[ijet].emEnergyFraction());
2075  }else{
2076  mHFrac_Forward = map_of_MEs[DirName+"/"+"HFrac_Forward"]; if (mHFrac_Forward && mHFrac_Forward->getRootObject()) mHFrac_Forward->Fill((*caloJets)[ijet].energyFractionHadronic());
2077  mEFrac_Forward = map_of_MEs[DirName+"/"+"EFrac_Forward"]; if (mEFrac_Forward && mEFrac_Forward->getRootObject()) mEFrac_Forward->Fill((*caloJets)[ijet].emEnergyFraction());
2078  }
2079  mHadEnergyInHO = map_of_MEs[DirName+"/"+"HadEnergyInHO"]; if (mHadEnergyInHO && mHadEnergyInHO->getRootObject()) mHadEnergyInHO->Fill ((*caloJets)[ijet].hadEnergyInHO());
2080  mHadEnergyInHB = map_of_MEs[DirName+"/"+"HadEnergyInHB"]; if (mHadEnergyInHB && mHadEnergyInHB->getRootObject()) mHadEnergyInHB->Fill ((*caloJets)[ijet].hadEnergyInHB());
2081  mHadEnergyInHF = map_of_MEs[DirName+"/"+"HadEnergyInHF"]; if (mHadEnergyInHF && mHadEnergyInHF->getRootObject()) mHadEnergyInHF->Fill ((*caloJets)[ijet].hadEnergyInHF());
2082  mHadEnergyInHE = map_of_MEs[DirName+"/"+"HadEnergyInHE"]; if (mHadEnergyInHE && mHadEnergyInHE->getRootObject()) mHadEnergyInHE->Fill ((*caloJets)[ijet].hadEnergyInHE());
2083  mEmEnergyInEB = map_of_MEs[DirName+"/"+"EmEnergyInEB"]; if (mEmEnergyInEB && mEmEnergyInEB->getRootObject()) mEmEnergyInEB->Fill ((*caloJets)[ijet].emEnergyInEB());
2084  mEmEnergyInEE = map_of_MEs[DirName+"/"+"EmEnergyInEE"]; if (mEmEnergyInEE && mEmEnergyInEE->getRootObject()) mEmEnergyInEE->Fill ((*caloJets)[ijet].emEnergyInEE());
2085  mEmEnergyInHF = map_of_MEs[DirName+"/"+"EmEnergyInHF"]; if (mEmEnergyInHF && mEmEnergyInHF->getRootObject()) mEmEnergyInHF->Fill ((*caloJets)[ijet].emEnergyInHF());
2086 
2087  }
2088  }
2089  if(isMiniAODJet_ && (*patJets)[ijet].isPFJet()){
2090 
2091  // You can't check the jet ID without the specifics. If they were dropped for space savings,
2092  // don't monitor this jet.
2093  if ( !(*patJets)[ijet].hasPFSpecific() )
2094  continue;
2095 
2097  jetpassid = pfjetIDFunctor((*patJets)[ijet],stringbitset);
2098  if(jetCleaningFlag_){
2099  Thiscleaned = jetpassid;
2100  JetIDWPU = jetpassid;
2101  }
2102  if(Thiscleaned && pass_uncorrected){
2103  mPt_uncor = map_of_MEs[DirName+"/"+"Pt_uncor"]; if (mPt_uncor && mPt_uncor->getRootObject()) if (mPt_uncor) mPt_uncor->Fill ((*patJets)[ijet].pt()*(*patJets)[ijet].jecFactor("Uncorrected"));
2104  mEta_uncor = map_of_MEs[DirName+"/"+"Eta_uncor"]; if (mEta_uncor && mEta_uncor->getRootObject()) if (mEta_uncor) mEta_uncor->Fill ((*patJets)[ijet].eta());
2105  mPhi_uncor = map_of_MEs[DirName+"/"+"Phi_uncor"]; if (mPhi_uncor && mPhi_uncor->getRootObject()) if (mPhi_uncor) mPhi_uncor->Fill ((*patJets)[ijet].phi());
2107  }
2108  if(Thiscleaned && pass_corrected){
2109  mPt_CaloJet = map_of_MEs[DirName+"/"+"Pt_CaloJet"]; if(mPt_CaloJet && mPt_CaloJet->getRootObject()&& (*patJets)[ijet].hasUserFloat("caloJetMap:pt")) mPt_CaloJet->Fill((*patJets)[ijet].userFloat("caloJetMap:pt"));
2110  mEMF_CaloJet = map_of_MEs[DirName+"/"+"EMF_CaloJet"]; if(mEMF_CaloJet && mEMF_CaloJet->getRootObject() && (*patJets)[ijet].hasUserFloat("caloJetMap:emEnergyFraction")) mEMF_CaloJet->Fill((*patJets)[ijet].userFloat("caloJetMap:emEnergyFraction"));
2111  if(fabs(correctedJet.eta()) <= 1.3) {
2112  if(correctedJet.pt()<=50.){
2113  mMVAPUJIDDiscriminant_lowPt_Barrel=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_lowPt_Barrel"]; if(mMVAPUJIDDiscriminant_lowPt_Barrel && mMVAPUJIDDiscriminant_lowPt_Barrel->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_Barrel->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2114  }
2115  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2116  mMVAPUJIDDiscriminant_mediumPt_Barrel=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_Barrel"]; if(mMVAPUJIDDiscriminant_mediumPt_Barrel && mMVAPUJIDDiscriminant_mediumPt_Barrel->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_Barrel->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2117  }
2118  if(correctedJet.pt()>140.){
2119  mMVAPUJIDDiscriminant_highPt_Barrel=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_highPt_Barrel"]; if(mMVAPUJIDDiscriminant_highPt_Barrel && mMVAPUJIDDiscriminant_highPt_Barrel->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_Barrel->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2120  }
2121  mMass_Barrel=map_of_MEs[DirName+"/"+"JetMass_Barrel"]; if(mMass_Barrel && mMass_Barrel->getRootObject())mMass_Barrel->Fill((*patJets)[ijet].mass());
2122  mCHFracVSpT_Barrel = map_of_MEs[DirName+"/"+"CHFracVSpT_Barrel"]; if(mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject()) mCHFracVSpT_Barrel->Fill(correctedJet.pt(),(*patJets)[ijet].chargedHadronEnergyFraction());
2123  mNHFracVSpT_Barrel = map_of_MEs[DirName+"/"+"NHFracVSpT_Barrel"];if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject()) mNHFracVSpT_Barrel->Fill(correctedJet.pt(),(*patJets)[ijet].neutralHadronEnergyFraction());
2124  mPhFracVSpT_Barrel = map_of_MEs[DirName+"/"+"PhFracVSpT_Barrel"];if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject()) mPhFracVSpT_Barrel->Fill(correctedJet.pt(),(*patJets)[ijet].neutralEmEnergyFraction());
2125  }else if(fabs(correctedJet.eta()) <= 3) {
2126  if(correctedJet.pt()<=50.){
2127  mMVAPUJIDDiscriminant_lowPt_EndCap=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_lowPt_EndCap"]; if(mMVAPUJIDDiscriminant_lowPt_EndCap && mMVAPUJIDDiscriminant_lowPt_EndCap->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_EndCap->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2128  }
2129  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2130  mMVAPUJIDDiscriminant_mediumPt_EndCap=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_EndCap"]; if(mMVAPUJIDDiscriminant_mediumPt_EndCap && mMVAPUJIDDiscriminant_mediumPt_EndCap->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_EndCap->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2131  }
2132  if(correctedJet.pt()>140.){
2133  mMVAPUJIDDiscriminant_highPt_EndCap=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_highPt_EndCap"]; if(mMVAPUJIDDiscriminant_highPt_EndCap && mMVAPUJIDDiscriminant_highPt_EndCap->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_EndCap->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2134  }
2135  mMass_EndCap=map_of_MEs[DirName+"/"+"JetMass_EndCap"]; if(mMass_EndCap && mMass_EndCap->getRootObject())mMass_EndCap->Fill((*patJets)[ijet].mass());
2136  mCHFracVSpT_EndCap = map_of_MEs[DirName+"/"+"CHFracVSpT_EndCap"]; if(mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject()) mCHFracVSpT_EndCap->Fill(correctedJet.pt(),(*patJets)[ijet].chargedHadronEnergyFraction());
2137  mNHFracVSpT_EndCap = map_of_MEs[DirName+"/"+"NHFracVSpT_EndCap"];if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject()) mNHFracVSpT_EndCap->Fill(correctedJet.pt(),(*patJets)[ijet].neutralHadronEnergyFraction());
2138  mPhFracVSpT_EndCap = map_of_MEs[DirName+"/"+"PhFracVSpT_EndCap"];if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject()) mPhFracVSpT_EndCap->Fill(correctedJet.pt(),(*patJets)[ijet].neutralEmEnergyFraction());
2139  }else if(fabs(correctedJet.eta()) <= 5) {
2140  if(correctedJet.pt()<=50.){
2141  mMVAPUJIDDiscriminant_lowPt_Forward=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_lowPt_Forward"]; if(mMVAPUJIDDiscriminant_lowPt_Forward && mMVAPUJIDDiscriminant_lowPt_Forward->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_Forward->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant")); }
2142  }
2143  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2144  mMVAPUJIDDiscriminant_mediumPt_Forward=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_Forward"]; if(mMVAPUJIDDiscriminant_mediumPt_Forward && mMVAPUJIDDiscriminant_mediumPt_Forward->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_Forward->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant"));}
2145  }
2146  if(correctedJet.pt()>140.){
2147  mMVAPUJIDDiscriminant_highPt_Forward=map_of_MEs[DirName+"/"+"MVAPUJIDDiscriminant_highPt_Forward"]; if(mMVAPUJIDDiscriminant_highPt_Forward && mMVAPUJIDDiscriminant_highPt_Forward->getRootObject()){if((*patJets)[ijet].hasUserFloat("pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_Forward->Fill( (*patJets)[ijet].userFloat("pileupJetId:fullDiscriminant"));}
2148  }
2149  mMass_Forward=map_of_MEs[DirName+"/"+"JetMass_Forward"]; if(mMass_Forward && mMass_Forward->getRootObject())mMass_Forward->Fill((*patJets)[ijet].mass());
2150  mHFHFracVSpT_Forward = map_of_MEs[DirName+"/"+"HFHFracVSpT_Forward"]; if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject()) mHFHFracVSpT_Forward->Fill(correctedJet.pt(),(*patJets)[ijet].HFHadronEnergyFraction ());
2151  mHFEFracVSpT_Forward = map_of_MEs[DirName+"/"+"HFEFracVSpT_Forward"]; if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject()) mHFEFracVSpT_Forward->Fill (correctedJet.pt(),(*patJets)[ijet].HFEMEnergyFraction ());
2152  }
2153  }
2154  }
2155  if(isPFJet_){
2156  reco::PFJetRef pfjetref(pfJets, ijet);
2157  float puidmva=-1;
2158  float puidcut=-1;
2159  int puidmvaflag=-10;
2160  int puidcutflag=-10;
2161  puidmva=(*puJetIdMva)[pfjetref];
2162  puidcut=(*puJetId)[pfjetref];
2163  puidmvaflag=(*puJetIdFlagMva)[pfjetref];
2164  puidcutflag=(*puJetIdFlag)[pfjetref];
2165  jetpassid = pfjetIDFunctor((*pfJets)[ijet]);
2166  if(jetCleaningFlag_){
2167  Thiscleaned = jetpassid;
2168  //JetIDWPU= (jetpassid && PileupJetIdentifier::passJetId( puidmvaflag, PileupJetIdentifier::kLoose ));
2169  }
2170  if(Thiscleaned && pass_uncorrected){
2171  mPt_uncor = map_of_MEs[DirName+"/"+"Pt_uncor"]; if (mPt_uncor && mPt_uncor->getRootObject()) mPt_uncor->Fill ((*pfJets)[ijet].pt());
2172  mEta_uncor = map_of_MEs[DirName+"/"+"Eta_uncor"]; if (mEta_uncor && mEta_uncor->getRootObject()) mEta_uncor->Fill ((*pfJets)[ijet].eta());
2173  mPhi_uncor = map_of_MEs[DirName+"/"+"Phi_uncor"]; if (mPhi_uncor && mPhi_uncor->getRootObject()) mPhi_uncor->Fill ((*pfJets)[ijet].phi());
2174  mConstituents_uncor = map_of_MEs[DirName+"/"+"Constituents_uncor"]; if (mConstituents_uncor && mConstituents_uncor->getRootObject()) mConstituents_uncor->Fill ((*pfJets)[ijet].nConstituents());
2175  }
2176  if(Thiscleaned && pass_corrected){
2180  }else{
2183  }
2187  }else{
2190  }
2194  }else{
2197  }
2201  }else{
2204  }
2208  }else{
2211  }
2215  }else{
2218  }
2219  if (correctedJet.pt()<= 50) {
2220  mCHFracVSeta_lowPt = map_of_MEs[DirName+"/"+"CHFracVSeta_lowPt"]; if (mCHFracVSeta_lowPt && mCHFracVSeta_lowPt->getRootObject()) mCHFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2221  mNHFracVSeta_lowPt = map_of_MEs[DirName+"/"+"NHFracVSeta_lowPt"]; if (mNHFracVSeta_lowPt && mNHFracVSeta_lowPt->getRootObject()) mNHFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2222  mPhFracVSeta_lowPt = map_of_MEs[DirName+"/"+"PhFracVSeta_lowPt"]; if (mPhFracVSeta_lowPt && mPhFracVSeta_lowPt->getRootObject()) mPhFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2223  }
2224  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2225  mCHFracVSeta_mediumPt = map_of_MEs[DirName+"/"+"CHFracVSeta_mediumPt"]; if (mCHFracVSeta_mediumPt && mCHFracVSeta_mediumPt->getRootObject()) mCHFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2226  mNHFracVSeta_mediumPt = map_of_MEs[DirName+"/"+"NHFracVSeta_mediumPt"]; if (mNHFracVSeta_mediumPt && mNHFracVSeta_mediumPt->getRootObject()) mNHFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2227  mPhFracVSeta_mediumPt = map_of_MEs[DirName+"/"+"PhFracVSeta_mediumPt"]; if (mPhFracVSeta_mediumPt && mPhFracVSeta_mediumPt->getRootObject()) mPhFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2228  }
2229  if (correctedJet.pt()>140.) {
2230  mCHFracVSeta_highPt = map_of_MEs[DirName+"/"+"CHFracVSeta_highPt"]; if (mCHFracVSeta_highPt && mCHFracVSeta_highPt->getRootObject()) mCHFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2231  mNHFracVSeta_highPt = map_of_MEs[DirName+"/"+"NHFracVSeta_highPt"]; if (mNHFracVSeta_highPt && mNHFracVSeta_highPt->getRootObject()) mNHFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2232  mPhFracVSeta_highPt = map_of_MEs[DirName+"/"+"PhFracVSeta_highPt"]; if (mPhFracVSeta_highPt && mPhFracVSeta_highPt->getRootObject()) mPhFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2233  }
2234  if (fabs(correctedJet.eta()) <= 1.3) {
2235  //fractions for barrel
2236  if (correctedJet.pt()<=50.) {
2237  //mAxis2_lowPt_Barrel = map_of_MEs[DirName+"/"+"qg_Axis2_lowPt_Barrel"];if(mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject()) mAxis2_lowPt_Barrel->Fill(QGaxis2);
2238  //mpTD_lowPt_Barrel = map_of_MEs[DirName+"/"+"qg_pTD_lowPt_Barrel"]; if(mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject()) mpTD_lowPt_Barrel->Fill(QGptD);
2239  //mMultiplicityQG_lowPt_Barrel = map_of_MEs[DirName+"/"+"qg_multiplicity_lowPt_Barrel"]; if(mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject()) mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
2240  //mqgLikelihood_lowPt_Barrel = map_of_MEs[DirName+"/"+"qg_Likelihood_lowPt_Barrel"]; if(mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject()) mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
2241  mMass_lowPt_Barrel=map_of_MEs[DirName+"/"+"JetMass_lowPt_Barrel"]; if(mMass_lowPt_Barrel && mMass_lowPt_Barrel->getRootObject())mMass_lowPt_Barrel->Fill((*pfJets)[ijet].mass());
2244  mCHFrac_lowPt_Barrel = map_of_MEs[DirName+"/"+"CHFrac_lowPt_Barrel"]; if (mCHFrac_lowPt_Barrel && mCHFrac_lowPt_Barrel->getRootObject()) mCHFrac_lowPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2245  mNHFrac_lowPt_Barrel = map_of_MEs[DirName+"/"+"NHFrac_lowPt_Barrel"]; if (mNHFrac_lowPt_Barrel && mNHFrac_lowPt_Barrel->getRootObject()) mNHFrac_lowPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2246  mPhFrac_lowPt_Barrel = map_of_MEs[DirName+"/"+"PhFrac_lowPt_Barrel"]; if (mPhFrac_lowPt_Barrel && mPhFrac_lowPt_Barrel->getRootObject()) mPhFrac_lowPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2247  mCHEn_lowPt_Barrel = map_of_MEs[DirName+"/"+"CHEn_lowPt_Barrel"]; if (mCHEn_lowPt_Barrel && mCHEn_lowPt_Barrel->getRootObject()) mCHEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2248  mNHEn_lowPt_Barrel = map_of_MEs[DirName+"/"+"NHEn_lowPt_Barrel"]; if (mNHEn_lowPt_Barrel && mNHEn_lowPt_Barrel->getRootObject()) mNHEn_lowPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2249  mPhEn_lowPt_Barrel = map_of_MEs[DirName+"/"+"PhEn_lowPt_Barrel"]; if (mPhEn_lowPt_Barrel && mPhEn_lowPt_Barrel->getRootObject()) mPhEn_lowPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2250  mElEn_lowPt_Barrel = map_of_MEs[DirName+"/"+"ElEn_lowPt_Barrel"]; if (mElEn_lowPt_Barrel && mElEn_lowPt_Barrel->getRootObject()) mElEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2251  mMuEn_lowPt_Barrel = map_of_MEs[DirName+"/"+"MuEn_lowPt_Barrel"]; if (mMuEn_lowPt_Barrel && mMuEn_lowPt_Barrel->getRootObject()) mMuEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2252  mChMultiplicity_lowPt_Barrel = map_of_MEs[DirName+"/"+"ChMultiplicity_lowPt_Barrel"]; if(mChMultiplicity_lowPt_Barrel && mChMultiplicity_lowPt_Barrel->getRootObject()) mChMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2253  mNeutMultiplicity_lowPt_Barrel = map_of_MEs[DirName+"/"+"NeutMultiplicity_lowPt_Barrel"]; if(mNeutMultiplicity_lowPt_Barrel && mNeutMultiplicity_lowPt_Barrel->getRootObject()) mNeutMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].neutralMultiplicity());
2254  mMuMultiplicity_lowPt_Barrel = map_of_MEs[DirName+"/"+"MuMultiplicity_lowPt_Barrel"]; if(mMuMultiplicity_lowPt_Barrel && mMuMultiplicity_lowPt_Barrel->getRootObject()) mMuMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].muonMultiplicity());
2255  }
2256  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2257  //mAxis2_mediumPt_Barrel = map_of_MEs[DirName+"/"+"qg_Axis2_mediumPt_Barrel"];if(mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject()) mAxis2_mediumPt_Barrel->Fill(QGaxis2);
2258  //mpTD_mediumPt_Barrel = map_of_MEs[DirName+"/"+"qg_pTD_mediumPt_Barrel"]; if(mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject()) mpTD_mediumPt_Barrel->Fill(QGptD);
2259  //mMultiplicityQG_mediumPt_Barrel = map_of_MEs[DirName+"/"+"qg_multiplicity_mediumPt_Barrel"]; if(mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject()) mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
2260  //mqgLikelihood_mediumPt_Barrel = map_of_MEs[DirName+"/"+"qg_Likelihood_mediumPt_Barrel"]; if(mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject()) mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
2261  mMass_mediumPt_Barrel=map_of_MEs[DirName+"/"+"JetMass_mediumPt_Barrel"]; if(mMass_mediumPt_Barrel && mMass_mediumPt_Barrel->getRootObject())mMass_mediumPt_Barrel->Fill((*pfJets)[ijet].mass());
2264  mCHFrac_mediumPt_Barrel = map_of_MEs[DirName+"/"+"CHFrac_mediumPt_Barrel"]; if (mCHFrac_mediumPt_Barrel && mCHFrac_mediumPt_Barrel->getRootObject()) mCHFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2265  mNHFrac_mediumPt_Barrel = map_of_MEs[DirName+"/"+"NHFrac_mediumPt_Barrel"]; if (mNHFrac_mediumPt_Barrel && mNHFrac_mediumPt_Barrel->getRootObject()) mNHFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2266  mPhFrac_mediumPt_Barrel = map_of_MEs[DirName+"/"+"PhFrac_mediumPt_Barrel"]; if (mPhFrac_mediumPt_Barrel && mPhFrac_mediumPt_Barrel->getRootObject()) mPhFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2267  mCHEn_mediumPt_Barrel = map_of_MEs[DirName+"/"+"CHEn_mediumPt_Barrel"]; if (mCHEn_mediumPt_Barrel && mCHEn_mediumPt_Barrel->getRootObject()) mCHEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2268  mNHEn_mediumPt_Barrel = map_of_MEs[DirName+"/"+"NHEn_mediumPt_Barrel"]; if (mNHEn_mediumPt_Barrel && mNHEn_mediumPt_Barrel->getRootObject()) mNHEn_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2269  mPhEn_mediumPt_Barrel = map_of_MEs[DirName+"/"+"PhEn_mediumPt_Barrel"]; if (mPhEn_mediumPt_Barrel && mPhEn_mediumPt_Barrel->getRootObject()) mPhEn_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2270  mElEn_mediumPt_Barrel = map_of_MEs[DirName+"/"+"ElEn_mediumPt_Barrel"]; if (mElEn_mediumPt_Barrel && mElEn_mediumPt_Barrel->getRootObject()) mElEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2271  mMuEn_mediumPt_Barrel = map_of_MEs[DirName+"/"+"MuEn_mediumPt_Barrel"]; if (mMuEn_mediumPt_Barrel && mMuEn_mediumPt_Barrel->getRootObject()) mMuEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2272  mChMultiplicity_mediumPt_Barrel = map_of_MEs[DirName+"/"+"ChMultiplicity_mediumPt_Barrel"]; if(mChMultiplicity_mediumPt_Barrel && mChMultiplicity_mediumPt_Barrel->getRootObject()) mChMultiplicity_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2275  }
2276  if (correctedJet.pt()>140.) {
2277  //mAxis2_highPt_Barrel = map_of_MEs[DirName+"/"+"qg_Axis2_highPt_Barrel"];if(mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject()) mAxis2_highPt_Barrel->Fill(QGaxis2);
2278  //mpTD_highPt_Barrel = map_of_MEs[DirName+"/"+"qg_pTD_highPt_Barrel"]; if(mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject()) mpTD_highPt_Barrel->Fill(QGptD);
2279  //mMultiplicityQG_highPt_Barrel = map_of_MEs[DirName+"/"+"qg_multiplicity_highPt_Barrel"]; if(mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject()) mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
2280  //mqgLikelihood_highPt_Barrel = map_of_MEs[DirName+"/"+"qg_Likelihood_highPt_Barrel"]; if(mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject()) mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
2281  mMass_highPt_Barrel=map_of_MEs[DirName+"/"+"JetMass_highPt_Barrel"]; if(mMass_highPt_Barrel && mMass_highPt_Barrel->getRootObject())mMass_highPt_Barrel->Fill((*pfJets)[ijet].mass());
2284  mCHFrac_highPt_Barrel = map_of_MEs[DirName+"/"+"CHFrac_highPt_Barrel"]; if (mCHFrac_highPt_Barrel && mCHFrac_highPt_Barrel->getRootObject()) mCHFrac_highPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2285  mNHFrac_highPt_Barrel = map_of_MEs[DirName+"/"+"NHFrac_highPt_Barrel"]; if (mNHFrac_highPt_Barrel && mNHFrac_highPt_Barrel->getRootObject()) mNHFrac_highPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2286  mPhFrac_highPt_Barrel = map_of_MEs[DirName+"/"+"PhFrac_highPt_Barrel"]; if (mPhFrac_highPt_Barrel && mPhFrac_highPt_Barrel->getRootObject()) mPhFrac_highPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2287  mCHEn_highPt_Barrel = map_of_MEs[DirName+"/"+"CHEn_highPt_Barrel"]; if (mCHEn_highPt_Barrel && mCHEn_highPt_Barrel->getRootObject()) mCHEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2288  mNHEn_highPt_Barrel = map_of_MEs[DirName+"/"+"NHEn_highPt_Barrel"]; if (mNHEn_highPt_Barrel && mNHEn_highPt_Barrel->getRootObject()) mNHEn_highPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2289  mPhEn_highPt_Barrel = map_of_MEs[DirName+"/"+"PhEn_highPt_Barrel"]; if (mPhEn_highPt_Barrel && mPhEn_highPt_Barrel->getRootObject()) mPhEn_highPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2290  mElEn_highPt_Barrel = map_of_MEs[DirName+"/"+"ElEn_highPt_Barrel"]; if (mElEn_highPt_Barrel && mElEn_highPt_Barrel->getRootObject()) mElEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2291  mMuEn_highPt_Barrel = map_of_MEs[DirName+"/"+"MuEn_highPt_Barrel"]; if (mMuEn_highPt_Barrel && mMuEn_highPt_Barrel->getRootObject()) mMuEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2292  mChMultiplicity_highPt_Barrel = map_of_MEs[DirName+"/"+"ChMultiplicity_highPt_Barrel"]; if(mChMultiplicity_highPt_Barrel && mChMultiplicity_highPt_Barrel->getRootObject()) mChMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2293  mNeutMultiplicity_highPt_Barrel = map_of_MEs[DirName+"/"+"NeutMultiplicity_highPt_Barrel"]; if(mNeutMultiplicity_highPt_Barrel && mNeutMultiplicity_highPt_Barrel->getRootObject()) mNeutMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].neutralMultiplicity());
2294  mMuMultiplicity_highPt_Barrel = map_of_MEs[DirName+"/"+"MuMultiplicity_highPt_Barrel"]; if(mMuMultiplicity_highPt_Barrel && mMuMultiplicity_highPt_Barrel->getRootObject()) mMuMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].muonMultiplicity());
2295  }
2296  mCHFracVSpT_Barrel = map_of_MEs[DirName+"/"+"CHFracVSpT_Barrel"]; if(mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject()) mCHFracVSpT_Barrel->Fill(correctedJet.pt(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2297  mNHFracVSpT_Barrel = map_of_MEs[DirName+"/"+"NHFracVSpT_Barrel"];if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject()) mNHFracVSpT_Barrel->Fill(correctedJet.pt(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2298  mPhFracVSpT_Barrel = map_of_MEs[DirName+"/"+"PhFracVSpT_Barrel"];if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject()) mPhFracVSpT_Barrel->Fill(correctedJet.pt(),(*pfJets)[ijet].neutralEmEnergyFraction());
2299  }else if(fabs(correctedJet.eta()) <= 3) {
2300  //fractions for endcap
2301  if (correctedJet.pt()<=50.) {
2302  //mAxis2_lowPt_EndCap = map_of_MEs[DirName+"/"+"qg_Axis2_lowPt_EndCap"];if(mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject()) mAxis2_lowPt_EndCap->Fill(QGaxis2);
2303  //mpTD_lowPt_EndCap = map_of_MEs[DirName+"/"+"qg_pTD_lowPt_EndCap"]; if(mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject()) mpTD_lowPt_EndCap->Fill(QGptD);
2304  //mMultiplicityQG_lowPt_EndCap = map_of_MEs[DirName+"/"+"qg_multiplicity_lowPt_EndCap"]; if(mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject()) mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
2305  //mqgLikelihood_lowPt_EndCap = map_of_MEs[DirName+"/"+"qg_Likelihood_lowPt_EndCap"]; if(mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject()) mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
2306  mMass_lowPt_EndCap=map_of_MEs[DirName+"/"+"JetMass_lowPt_EndCap"]; if(mMass_lowPt_EndCap && mMass_lowPt_EndCap->getRootObject())mMass_lowPt_EndCap->Fill((*pfJets)[ijet].mass());
2309  mCHFrac_lowPt_EndCap = map_of_MEs[DirName+"/"+"CHFrac_lowPt_EndCap"]; if (mCHFrac_lowPt_EndCap && mCHFrac_lowPt_EndCap->getRootObject()) mCHFrac_lowPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2310  mNHFrac_lowPt_EndCap = map_of_MEs[DirName+"/"+"NHFrac_lowPt_EndCap"]; if (mNHFrac_lowPt_EndCap && mNHFrac_lowPt_EndCap->getRootObject()) mNHFrac_lowPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2311  mPhFrac_lowPt_EndCap = map_of_MEs[DirName+"/"+"PhFrac_lowPt_EndCap"]; if (mPhFrac_lowPt_EndCap && mPhFrac_lowPt_EndCap->getRootObject()) mPhFrac_lowPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2312  mCHEn_lowPt_EndCap = map_of_MEs[DirName+"/"+"CHEn_lowPt_EndCap"]; if (mCHEn_lowPt_EndCap && mCHEn_lowPt_EndCap->getRootObject()) mCHEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2313  mNHEn_lowPt_EndCap = map_of_MEs[DirName+"/"+"NHEn_lowPt_EndCap"]; if (mNHEn_lowPt_EndCap && mNHEn_lowPt_EndCap->getRootObject()) mNHEn_lowPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2314  mPhEn_lowPt_EndCap = map_of_MEs[DirName+"/"+"PhEn_lowPt_EndCap"]; if (mPhEn_lowPt_EndCap && mPhEn_lowPt_EndCap->getRootObject()) mPhEn_lowPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2315  mElEn_lowPt_EndCap = map_of_MEs[DirName+"/"+"ElEn_lowPt_EndCap"]; if (mElEn_lowPt_EndCap && mElEn_lowPt_EndCap->getRootObject()) mElEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2316  mMuEn_lowPt_EndCap = map_of_MEs[DirName+"/"+"MuEn_lowPt_EndCap"]; if (mMuEn_lowPt_EndCap && mMuEn_lowPt_EndCap->getRootObject()) mMuEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2317  mChMultiplicity_lowPt_EndCap = map_of_MEs[DirName+"/"+"ChMultiplicity_lowPt_EndCap"]; if(mChMultiplicity_lowPt_EndCap && mChMultiplicity_lowPt_EndCap->getRootObject()) mChMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2318  mNeutMultiplicity_lowPt_EndCap = map_of_MEs[DirName+"/"+"NeutMultiplicity_lowPt_EndCap"]; if(mNeutMultiplicity_lowPt_EndCap && mNeutMultiplicity_lowPt_EndCap->getRootObject()) mNeutMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].neutralMultiplicity());
2319  mMuMultiplicity_lowPt_EndCap = map_of_MEs[DirName+"/"+"MuMultiplicity_lowPt_EndCap"]; if(mMuMultiplicity_lowPt_EndCap && mMuMultiplicity_lowPt_EndCap->getRootObject()) mMuMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].muonMultiplicity());
2320  }
2321  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2322  //mAxis2_mediumPt_EndCap = map_of_MEs[DirName+"/"+"qg_Axis2_mediumPt_EndCap"];if(mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject()) mAxis2_mediumPt_EndCap->Fill(QGaxis2);
2323  //mpTD_mediumPt_EndCap = map_of_MEs[DirName+"/"+"qg_pTD_mediumPt_EndCap"]; if(mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject()) mpTD_mediumPt_EndCap->Fill(QGptD);
2324  //mMultiplicityQG_mediumPt_EndCap = map_of_MEs[DirName+"/"+"qg_multiplicity_mediumPt_EndCap"]; if(mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject()) mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
2325  //mqgLikelihood_mediumPt_EndCap = map_of_MEs[DirName+"/"+"qg_Likelihood_mediumPt_EndCap"]; if(mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject()) mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
2326  mMass_mediumPt_EndCap=map_of_MEs[DirName+"/"+"JetMass_mediumPt_EndCap"]; if(mMass_mediumPt_EndCap && mMass_mediumPt_EndCap->getRootObject())mMass_mediumPt_EndCap->Fill((*pfJets)[ijet].mass());
2329  mCHFrac_mediumPt_EndCap = map_of_MEs[DirName+"/"+"CHFrac_mediumPt_EndCap"]; if (mCHFrac_mediumPt_EndCap && mCHFrac_mediumPt_EndCap->getRootObject()) mCHFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2330  mNHFrac_mediumPt_EndCap = map_of_MEs[DirName+"/"+"NHFrac_mediumPt_EndCap"]; if (mNHFrac_mediumPt_EndCap && mNHFrac_mediumPt_EndCap->getRootObject()) mNHFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2331  mPhFrac_mediumPt_EndCap = map_of_MEs[DirName+"/"+"PhFrac_mediumPt_EndCap"]; if (mPhFrac_mediumPt_EndCap && mPhFrac_mediumPt_EndCap->getRootObject()) mPhFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2332  mCHEn_mediumPt_EndCap = map_of_MEs[DirName+"/"+"CHEn_mediumPt_EndCap"]; if (mCHEn_mediumPt_EndCap && mCHEn_mediumPt_EndCap->getRootObject()) mCHEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2333  mNHEn_mediumPt_EndCap = map_of_MEs[DirName+"/"+"NHEn_mediumPt_EndCap"]; if (mNHEn_mediumPt_EndCap && mNHEn_mediumPt_EndCap->getRootObject()) mNHEn_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2334  mPhEn_mediumPt_EndCap = map_of_MEs[DirName+"/"+"PhEn_mediumPt_EndCap"]; if (mPhEn_mediumPt_EndCap && mPhEn_mediumPt_EndCap->getRootObject()) mPhEn_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2335  mElEn_mediumPt_EndCap = map_of_MEs[DirName+"/"+"ElEn_mediumPt_EndCap"]; if (mElEn_mediumPt_EndCap && mElEn_mediumPt_EndCap->getRootObject()) mElEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2336  mMuEn_mediumPt_EndCap = map_of_MEs[DirName+"/"+"MuEn_mediumPt_EndCap"]; if (mMuEn_mediumPt_EndCap && mMuEn_mediumPt_EndCap->getRootObject()) mMuEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2337  mChMultiplicity_mediumPt_EndCap = map_of_MEs[DirName+"/"+"ChMultiplicity_mediumPt_EndCap"]; if(mChMultiplicity_mediumPt_EndCap && mChMultiplicity_mediumPt_EndCap->getRootObject()) mChMultiplicity_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2340  }
2341  if (correctedJet.pt()>140.) {
2342  //mAxis2_highPt_EndCap = map_of_MEs[DirName+"/"+"qg_Axis2_highPt_EndCap"];if(mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject()) mAxis2_highPt_EndCap->Fill(QGaxis2);
2343  //mpTD_highPt_EndCap = map_of_MEs[DirName+"/"+"qg_pTD_highPt_EndCap"]; if(mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject()) mpTD_highPt_EndCap->Fill(QGptD);
2344  //mMultiplicityQG_highPt_EndCap = map_of_MEs[DirName+"/"+"qg_multiplicity_highPt_EndCap"]; if(mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject()) mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
2345  //mqgLikelihood_highPt_EndCap = map_of_MEs[DirName+"/"+"qg_Likelihood_highPt_EndCap"]; if(mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject()) mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
2346  mMass_highPt_EndCap=map_of_MEs[DirName+"/"+"JetMass_highPt_EndCap"]; if(mMass_highPt_EndCap && mMass_highPt_EndCap->getRootObject())mMass_highPt_EndCap->Fill((*pfJets)[ijet].mass());
2349  mCHFrac_highPt_EndCap = map_of_MEs[DirName+"/"+"CHFrac_highPt_EndCap"]; if (mCHFrac_highPt_EndCap && mCHFrac_highPt_EndCap->getRootObject()) mCHFrac_highPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2350  mNHFrac_highPt_EndCap = map_of_MEs[DirName+"/"+"NHFrac_highPt_EndCap"]; if (mNHFrac_highPt_EndCap && mNHFrac_highPt_EndCap->getRootObject()) mNHFrac_highPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2351  mPhFrac_highPt_EndCap = map_of_MEs[DirName+"/"+"PhFrac_highPt_EndCap"]; if (mPhFrac_highPt_EndCap && mPhFrac_highPt_EndCap->getRootObject()) mPhFrac_highPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2352  mCHEn_highPt_EndCap = map_of_MEs[DirName+"/"+"CHEn_highPt_EndCap"]; if (mCHEn_highPt_EndCap && mCHEn_highPt_EndCap->getRootObject()) mCHEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2353  mNHEn_highPt_EndCap = map_of_MEs[DirName+"/"+"NHEn_highPt_EndCap"]; if (mNHEn_highPt_EndCap && mNHEn_highPt_EndCap->getRootObject()) mNHEn_highPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2354  mPhEn_highPt_EndCap = map_of_MEs[DirName+"/"+"PhEn_highPt_EndCap"]; if (mPhEn_highPt_EndCap && mPhEn_highPt_EndCap->getRootObject()) mPhEn_highPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2355  mElEn_highPt_EndCap = map_of_MEs[DirName+"/"+"ElEn_highPt_EndCap"]; if (mElEn_highPt_EndCap && mElEn_highPt_EndCap->getRootObject()) mElEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2356  mMuEn_highPt_EndCap = map_of_MEs[DirName+"/"+"MuEn_highPt_EndCap"]; if (mMuEn_highPt_EndCap && mMuEn_highPt_EndCap->getRootObject()) mMuEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2357  mChMultiplicity_highPt_EndCap = map_of_MEs[DirName+"/"+"ChMultiplicity_highPt_EndCap"]; if(mChMultiplicity_highPt_EndCap && mChMultiplicity_highPt_EndCap->getRootObject()) mChMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2358  mNeutMultiplicity_highPt_EndCap = map_of_MEs[DirName+"/"+"NeutMultiplicity_highPt_EndCap"]; if(mNeutMultiplicity_highPt_EndCap && mNeutMultiplicity_highPt_EndCap->getRootObject()) mNeutMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].neutralMultiplicity());
2359  mMuMultiplicity_highPt_EndCap = map_of_MEs[DirName+"/"+"MuMultiplicity_highPt_EndCap"]; if(mMuMultiplicity_highPt_EndCap && mMuMultiplicity_highPt_EndCap->getRootObject()) mMuMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].muonMultiplicity());
2360  }
2361  mCHFracVSpT_EndCap = map_of_MEs[DirName+"/"+"CHFracVSpT_EndCap"]; if(mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject()) mCHFracVSpT_EndCap->Fill(correctedJet.pt(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2362  mNHFracVSpT_EndCap = map_of_MEs[DirName+"/"+"NHFracVSpT_EndCap"];if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject()) mNHFracVSpT_EndCap->Fill(correctedJet.pt(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2363  mPhFracVSpT_EndCap = map_of_MEs[DirName+"/"+"PhFracVSpT_EndCap"];if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject()) mPhFracVSpT_EndCap->Fill(correctedJet.pt(),(*pfJets)[ijet].neutralEmEnergyFraction());
2364  }else{
2365  mHFHFracVSpT_Forward = map_of_MEs[DirName+"/"+"HFHFracVSpT_Forward"]; if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject()) mHFHFracVSpT_Forward->Fill(correctedJet.pt(),(*pfJets)[ijet].HFHadronEnergyFraction ());
2366  mHFEFracVSpT_Forward = map_of_MEs[DirName+"/"+"HFEFracVSpT_Forward"]; if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject()) mHFEFracVSpT_Forward->Fill (correctedJet.pt(),(*pfJets)[ijet].HFEMEnergyFraction ());
2367  //fractions
2368  if (correctedJet.pt()<=50.) {
2369  //mAxis2_lowPt_Forward = map_of_MEs[DirName+"/"+"qg_Axis2_lowPt_Forward"];if(mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject()) mAxis2_lowPt_Forward->Fill(QGaxis2);
2370  //mpTD_lowPt_Forward = map_of_MEs[DirName+"/"+"qg_pTD_lowPt_Forward"]; if(mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject()) mpTD_lowPt_Forward->Fill(QGptD);
2371  //mMultiplicityQG_lowPt_Forward = map_of_MEs[DirName+"/"+"qg_multiplicity_lowPt_Forward"]; if(mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject()) mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
2372  //mqgLikelihood_lowPt_Forward = map_of_MEs[DirName+"/"+"qg_Likelihood_lowPt_Forward"]; if(mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject()) mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
2373  mMass_lowPt_Forward=map_of_MEs[DirName+"/"+"JetMass_lowPt_Forward"]; if(mMass_lowPt_Forward && mMass_lowPt_Forward->getRootObject())mMass_lowPt_Forward->Fill((*pfJets)[ijet].mass());
2376  mHFEFrac_lowPt_Forward = map_of_MEs[DirName+"/"+"HFEFrac_lowPt_Forward"]; if(mHFEFrac_lowPt_Forward && mHFEFrac_lowPt_Forward->getRootObject()) mHFEFrac_lowPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2377  mHFHFrac_lowPt_Forward = map_of_MEs[DirName+"/"+"HFHFrac_lowPt_Forward"]; if(mHFHFrac_lowPt_Forward && mHFHFrac_lowPt_Forward->getRootObject()) mHFHFrac_lowPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2378  mHFEEn_lowPt_Forward = map_of_MEs[DirName+"/"+"HFEEn_lowPt_Forward"]; if(mHFEEn_lowPt_Forward && mHFEEn_lowPt_Forward->getRootObject()) mHFEEn_lowPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2379  mHFHEn_lowPt_Forward = map_of_MEs[DirName+"/"+"HFHEn_lowPt_Forward"]; if(mHFHEn_lowPt_Forward && mHFHEn_lowPt_Forward->getRootObject()) mHFHEn_lowPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2380  mNeutMultiplicity_lowPt_Forward = map_of_MEs[DirName+"/"+"NeutMultiplicity_lowPt_Forward"]; if(mNeutMultiplicity_lowPt_Forward && mNeutMultiplicity_lowPt_Forward->getRootObject()) mNeutMultiplicity_lowPt_Forward->Fill((*pfJets)[ijet].neutralMultiplicity());
2381  }
2382  if (correctedJet.pt()>50. && correctedJet.pt()<=140.) {
2383  //mAxis2_mediumPt_Forward = map_of_MEs[DirName+"/"+"qg_Axis2_mediumPt_Forward"];if(mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject()) mAxis2_mediumPt_Forward->Fill(QGaxis2);
2384  //mpTD_mediumPt_Forward = map_of_MEs[DirName+"/"+"qg_pTD_mediumPt_Forward"]; if(mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject()) mpTD_mediumPt_Forward->Fill(QGptD);
2385  //mMultiplicityQG_mediumPt_Forward = map_of_MEs[DirName+"/"+"qg_multiplicity_mediumPt_Forward"]; if(mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject()) mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
2386  //mqgLikelihood_mediumPt_Forward = map_of_MEs[DirName+"/"+"qg_Likelihood_mediumPt_Forward"]; if(mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject()) mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
2387  mMass_mediumPt_Forward=map_of_MEs[DirName+"/"+"JetMass_mediumPt_Forward"]; if(mMass_mediumPt_Forward && mMass_mediumPt_Forward->getRootObject())mMass_mediumPt_Forward->Fill((*pfJets)[ijet].mass());
2390  mHFEFrac_mediumPt_Forward = map_of_MEs[DirName+"/"+"HFEFrac_mediumPt_Forward"]; if(mHFEFrac_mediumPt_Forward && mHFEFrac_mediumPt_Forward->getRootObject()) mHFEFrac_mediumPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2391  mHFHFrac_mediumPt_Forward = map_of_MEs[DirName+"/"+"HFHFrac_mediumPt_Forward"]; if(mHFHFrac_mediumPt_Forward && mHFHFrac_mediumPt_Forward->getRootObject()) mHFHFrac_mediumPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2392  mHFEEn_mediumPt_Forward = map_of_MEs[DirName+"/"+"HFEEn_mediumPt_Forward"]; if(mHFEEn_mediumPt_Forward && mHFEEn_mediumPt_Forward->getRootObject()) mHFEEn_mediumPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2393  mHFHEn_mediumPt_Forward = map_of_MEs[DirName+"/"+"HFHEn_mediumPt_Forward"]; if(mHFHEn_mediumPt_Forward && mHFHEn_mediumPt_Forward->getRootObject()) mHFHEn_mediumPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2395  }
2396  if (correctedJet.pt()>140.) {
2397  //mAxis2_highPt_Forward = map_of_MEs[DirName+"/"+"qg_Axis2_highPt_Forward"];if(mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject()) mAxis2_highPt_Forward->Fill(QGaxis2);
2398  //mpTD_highPt_Forward = map_of_MEs[DirName+"/"+"qg_pTD_highPt_Forward"]; if(mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject()) mpTD_highPt_Forward->Fill(QGptD);
2399  //mMultiplicityQG_highPt_Forward = map_of_MEs[DirName+"/"+"qg_multiplicity_highPt_Forward"]; if(mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject()) mMultiplicityQG_highPt_Forward->Fill(QGmulti);
2400  //mqgLikelihood_highPt_Forward = map_of_MEs[DirName+"/"+"qg_Likelihood_highPt_Forward"]; if(mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject()) mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
2401  mMass_highPt_Forward=map_of_MEs[DirName+"/"+"JetMass_highPt_Forward"]; if(mMass_highPt_Forward && mMass_highPt_Forward->getRootObject())mMass_highPt_Forward->Fill((*pfJets)[ijet].mass());
2404  mHFEFrac_highPt_Forward = map_of_MEs[DirName+"/"+"HFEFrac_highPt_Forward"]; if(mHFEFrac_highPt_Forward && mHFEFrac_highPt_Forward->getRootObject()) mHFEFrac_highPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2405  mHFHFrac_highPt_Forward = map_of_MEs[DirName+"/"+"HFHFrac_highPt_Forward"]; if(mHFHFrac_highPt_Forward && mHFHFrac_highPt_Forward->getRootObject()) mHFHFrac_highPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2406  mHFEEn_highPt_Forward = map_of_MEs[DirName+"/"+"HFEEn_highPt_Forward"]; if(mHFEEn_highPt_Forward && mHFEEn_highPt_Forward->getRootObject()) mHFEEn_highPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2407  mHFHEn_highPt_Forward = map_of_MEs[DirName+"/"+"HFHEn_highPt_Forward"]; if(mHFHEn_highPt_Forward && mHFHEn_highPt_Forward->getRootObject()) mHFHEn_highPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2408  mNeutMultiplicity_highPt_Forward = map_of_MEs[DirName+"/"+"NeutMultiplicity_highPt_Forward"]; if(mNeutMultiplicity_highPt_Forward && mNeutMultiplicity_highPt_Forward->getRootObject()) mNeutMultiplicity_highPt_Forward->Fill((*pfJets)[ijet].neutralMultiplicity());
2409  }
2410  }
2411  //OOT plots
2412  /*
2413  if(techTriggerResultBx0 && techTriggerResultBxE && techTriggerResultBxF){
2414  meEta_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"Eta_BXm2BXm1Filled"]; if ( meEta_BXm2BXm1Filled && meEta_BXm2BXm1Filled ->getRootObject()) meEta_BXm2BXm1Filled ->Fill((*pfJets)[ijet].eta());
2415  if(fabs(correctedJet.eta()) <= 1.3) {
2416  mePhFracBarrel_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PhFracBarrel_BXm2BXm1Filled"]; if ( mePhFracBarrel_BXm2BXm1Filled && mePhFracBarrel_BXm2BXm1Filled ->getRootObject()) mePhFracBarrel_BXm2BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2417  meNHFracBarrel_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"NHFracBarrel_BXm2BXm1Filled"]; if ( meNHFracBarrel_BXm2BXm1Filled && meNHFracBarrel_BXm2BXm1Filled ->getRootObject()) meNHFracBarrel_BXm2BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2418  meCHFracBarrel_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"CHFracBarrel_BXm2BXm1Filled"]; if ( meCHFracBarrel_BXm2BXm1Filled && meCHFracBarrel_BXm2BXm1Filled ->getRootObject()) meCHFracBarrel_BXm2BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2419  mePtBarrel_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PtBarrel_BXm2BXm1Filled"]; if ( mePtBarrel_BXm2BXm1Filled && mePtBarrel_BXm2BXm1Filled ->getRootObject()) mePtBarrel_BXm2BXm1Filled ->Fill((*pfJets)[ijet].pt());
2420  }else if (correctedJet.eta() > -3.0 && correctedJet.eta() <= -1.3) {
2421  mePhFracEndCapMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PhFracEndCapMinus_BXm2BXm1Filled"]; if ( mePhFracEndCapMinus_BXm2BXm1Filled && mePhFracEndCapMinus_BXm2BXm1Filled ->getRootObject()) mePhFracEndCapMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2422  meNHFracEndCapMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"NHFracEndCapMinus_BXm2BXm1Filled"]; if ( meNHFracEndCapMinus_BXm2BXm1Filled && meNHFracEndCapMinus_BXm2BXm1Filled ->getRootObject()) meNHFracEndCapMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2423  meCHFracEndCapMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"CHFracEndCapMinus_BXm2BXm1Filled"]; if ( meCHFracEndCapMinus_BXm2BXm1Filled && meCHFracEndCapMinus_BXm2BXm1Filled ->getRootObject()) meCHFracEndCapMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2424  mePtEndCapMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PtEndCapMinus_BXm2BXm1Filled"]; if ( mePtEndCapMinus_BXm2BXm1Filled && mePtEndCapMinus_BXm2BXm1Filled ->getRootObject()) mePtEndCapMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].pt());
2425  }else if (correctedJet.eta() >= 1.3 && correctedJet.eta() < 3.0) {
2426  mePhFracEndCapPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PhFracEndCapPlus_BXm2BXm1Filled"]; if ( mePhFracEndCapPlus_BXm2BXm1Filled && mePhFracEndCapPlus_BXm2BXm1Filled ->getRootObject()) mePhFracEndCapPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2427  meNHFracEndCapPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"NHFracEndCapPlus_BXm2BXm1Filled"]; if ( meNHFracEndCapPlus_BXm2BXm1Filled && meNHFracEndCapPlus_BXm2BXm1Filled ->getRootObject()) meNHFracEndCapPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2428  meCHFracEndCapPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"CHFracEndCapPlus_BXm2BXm1Filled"]; if ( meCHFracEndCapPlus_BXm2BXm1Filled && meCHFracEndCapPlus_BXm2BXm1Filled ->getRootObject()) meCHFracEndCapPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2429  mePtEndCapPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PtEndCapPlus_BXm2BXm1Filled"]; if ( mePtEndCapPlus_BXm2BXm1Filled && mePtEndCapPlus_BXm2BXm1Filled ->getRootObject()) mePtEndCapPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].pt());
2430  }else if (correctedJet.eta() > -5.0 && correctedJet.eta() <= -3.0) {
2431  mePtForwardMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PtForwardMinus_BXm2BXm1Filled"]; if ( mePtForwardMinus_BXm2BXm1Filled && mePtForwardMinus_BXm2BXm1Filled ->getRootObject()) mePtForwardMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].pt());
2432  meHFHFracMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"HFHFracMinus_BXm2BXm1Filled"]; if ( meHFHFracMinus_BXm2BXm1Filled && meHFHFracMinus_BXm2BXm1Filled ->getRootObject()) meHFHFracMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2433  meHFEMFracMinus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"HFEMFracMinus_BXm2BXm1Filled"]; if ( meHFEMFracMinus_BXm2BXm1Filled && meHFEMFracMinus_BXm2BXm1Filled ->getRootObject()) meHFEMFracMinus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2434  }else if (correctedJet.eta() >= 3.0 && correctedJet.eta() < 5.0) {
2435  mePtForwardPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"PtForwardPlus_BXm2BXm1Filled"]; if ( mePtForwardPlus_BXm2BXm1Filled && mePtForwardPlus_BXm2BXm1Filled ->getRootObject()) mePtForwardPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].pt());
2436  meHFHFracPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"HFHFracPlus_BXm2BXm1Filled"]; if ( meHFHFracPlus_BXm2BXm1Filled && meHFHFracPlus_BXm2BXm1Filled ->getRootObject()) meHFHFracPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2437  meHFEMFracPlus_BXm2BXm1Filled = map_of_MEs[DirName+"/"+"HFEMFracPlus_BXm2BXm1Filled"]; if ( meHFEMFracPlus_BXm2BXm1Filled && meHFEMFracPlus_BXm2BXm1Filled ->getRootObject()) meHFEMFracPlus_BXm2BXm1Filled ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2438  }
2439  }*/
2440  if(techTriggerResultBx0 && techTriggerResultBxF){
2441  meEta_BXm1Filled = map_of_MEs[DirName+"/"+"Eta_BXm1Filled"]; if ( meEta_BXm1Filled && meEta_BXm1Filled ->getRootObject()) meEta_BXm1Filled ->Fill((*pfJets)[ijet].eta());
2442  if(fabs(correctedJet.eta()) <= 1.3) {
2443  mePhFracBarrel_BXm1Filled = map_of_MEs[DirName+"/"+"PhFracBarrel_BXm1Filled"]; if ( mePhFracBarrel_BXm1Filled && mePhFracBarrel_BXm1Filled ->getRootObject()) mePhFracBarrel_BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2444  meNHFracBarrel_BXm1Filled = map_of_MEs[DirName+"/"+"NHFracBarrel_BXm1Filled"]; if ( meNHFracBarrel_BXm1Filled && meNHFracBarrel_BXm1Filled ->getRootObject()) meNHFracBarrel_BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2445  meCHFracBarrel_BXm1Filled = map_of_MEs[DirName+"/"+"CHFracBarrel_BXm1Filled"]; if ( meCHFracBarrel_BXm1Filled && meCHFracBarrel_BXm1Filled ->getRootObject()) meCHFracBarrel_BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2446  mePtBarrel_BXm1Filled = map_of_MEs[DirName+"/"+"PtBarrel_BXm1Filled"]; if ( mePtBarrel_BXm1Filled && mePtBarrel_BXm1Filled ->getRootObject()) mePtBarrel_BXm1Filled ->Fill((*pfJets)[ijet].pt());
2447  }else if (correctedJet.eta() > -3.0 && correctedJet.eta() <= -1.3) {
2448  mePhFracEndCapMinus_BXm1Filled = map_of_MEs[DirName+"/"+"PhFracEndCapMinus_BXm1Filled"]; if ( mePhFracEndCapMinus_BXm1Filled && mePhFracEndCapMinus_BXm1Filled ->getRootObject()) mePhFracEndCapMinus_BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2449  meNHFracEndCapMinus_BXm1Filled = map_of_MEs[DirName+"/"+"NHFracEndCapMinus_BXm1Filled"]; if ( meNHFracEndCapMinus_BXm1Filled && meNHFracEndCapMinus_BXm1Filled ->getRootObject()) meNHFracEndCapMinus_BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2450  meCHFracEndCapMinus_BXm1Filled = map_of_MEs[DirName+"/"+"CHFracEndCapMinus_BXm1Filled"]; if ( meCHFracEndCapMinus_BXm1Filled && meCHFracEndCapMinus_BXm1Filled ->getRootObject()) meCHFracEndCapMinus_BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2451  mePtEndCapMinus_BXm1Filled = map_of_MEs[DirName+"/"+"PtEndCapMinus_BXm1Filled"]; if ( mePtEndCapMinus_BXm1Filled && mePtEndCapMinus_BXm1Filled ->getRootObject()) mePtEndCapMinus_BXm1Filled ->Fill((*pfJets)[ijet].pt());
2452  }else if (correctedJet.eta() >= 1.3 && correctedJet.eta() < 3.0) {
2453  mePhFracEndCapPlus_BXm1Filled = map_of_MEs[DirName+"/"+"PhFracEndCapPlus_BXm1Filled"]; if ( mePhFracEndCapPlus_BXm1Filled && mePhFracEndCapPlus_BXm1Filled ->getRootObject()) mePhFracEndCapPlus_BXm1Filled ->Fill((*pfJets)[ijet].photonEnergyFraction());
2454  meNHFracEndCapPlus_BXm1Filled = map_of_MEs[DirName+"/"+"NHFracEndCapPlus_BXm1Filled"]; if ( meNHFracEndCapPlus_BXm1Filled && meNHFracEndCapPlus_BXm1Filled ->getRootObject()) meNHFracEndCapPlus_BXm1Filled ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2455  meCHFracEndCapPlus_BXm1Filled = map_of_MEs[DirName+"/"+"CHFracEndCapPlus_BXm1Filled"]; if ( meCHFracEndCapPlus_BXm1Filled && meCHFracEndCapPlus_BXm1Filled ->getRootObject()) meCHFracEndCapPlus_BXm1Filled ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2456  mePtEndCapPlus_BXm1Filled = map_of_MEs[DirName+"/"+"PtEndCapPlus_BXm1Filled"]; if ( mePtEndCapPlus_BXm1Filled && mePtEndCapPlus_BXm1Filled ->getRootObject()) mePtEndCapPlus_BXm1Filled ->Fill((*pfJets)[ijet].pt());
2457  }else if (correctedJet.eta() > -5.0 && correctedJet.eta() <= -3.0) {
2458  mePtForwardMinus_BXm1Filled = map_of_MEs[DirName+"/"+"PtForwardMinus_BXm1Filled"]; if ( mePtForwardMinus_BXm1Filled && mePtForwardMinus_BXm1Filled ->getRootObject()) mePtForwardMinus_BXm1Filled ->Fill((*pfJets)[ijet].pt());
2459  meHFHFracMinus_BXm1Filled = map_of_MEs[DirName+"/"+"HFHFracMinus_BXm1Filled"]; if ( meHFHFracMinus_BXm1Filled && meHFHFracMinus_BXm1Filled ->getRootObject()) meHFHFracMinus_BXm1Filled ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2460  meHFEMFracMinus_BXm1Filled = map_of_MEs[DirName+"/"+"HFEMFracMinus_BXm1Filled"]; if ( meHFEMFracMinus_BXm1Filled && meHFEMFracMinus_BXm1Filled ->getRootObject()) meHFEMFracMinus_BXm1Filled ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2461  }else if (correctedJet.eta() >= 3.0 && correctedJet.eta() < 5.0) {
2462  mePtForwardPlus_BXm1Filled = map_of_MEs[DirName+"/"+"PtForwardPlus_BXm1Filled"]; if ( mePtForwardPlus_BXm1Filled && mePtForwardPlus_BXm1Filled ->getRootObject()) mePtForwardPlus_BXm1Filled ->Fill((*pfJets)[ijet].pt());
2463  meHFHFracPlus_BXm1Filled = map_of_MEs[DirName+"/"+"HFHFracPlus_BXm1Filled"]; if ( meHFHFracPlus_BXm1Filled && meHFHFracPlus_BXm1Filled ->getRootObject()) meHFHFracPlus_BXm1Filled ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2464  meHFEMFracPlus_BXm1Filled = map_of_MEs[DirName+"/"+"HFEMFracPlus_BXm1Filled"]; if ( meHFEMFracPlus_BXm1Filled && meHFEMFracPlus_BXm1Filled ->getRootObject()) meHFEMFracPlus_BXm1Filled ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2465  }
2466  }/*
2467  if(techTriggerResultBx0 && !techTriggerResultBxE && !techTriggerResultBxF){
2468  meEta_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"Eta_BXm2BXm1Empty"]; if ( meEta_BXm2BXm1Empty && meEta_BXm2BXm1Empty ->getRootObject()) meEta_BXm2BXm1Empty ->Fill((*pfJets)[ijet].eta());
2469  if(fabs(correctedJet.eta()) <= 1.3) {
2470  mePhFracBarrel_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PhFracBarrel_BXm2BXm1Empty"]; if ( mePhFracBarrel_BXm2BXm1Empty && mePhFracBarrel_BXm2BXm1Empty ->getRootObject()) mePhFracBarrel_BXm2BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2471  meNHFracBarrel_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"NHFracBarrel_BXm2BXm1Empty"]; if ( meNHFracBarrel_BXm2BXm1Empty && meNHFracBarrel_BXm2BXm1Empty ->getRootObject()) meNHFracBarrel_BXm2BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2472  meCHFracBarrel_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"CHFracBarrel_BXm2BXm1Empty"]; if ( meCHFracBarrel_BXm2BXm1Empty && meCHFracBarrel_BXm2BXm1Empty ->getRootObject()) meCHFracBarrel_BXm2BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2473  mePtBarrel_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PtBarrel_BXm2BXm1Empty"]; if ( mePtBarrel_BXm2BXm1Empty && mePtBarrel_BXm2BXm1Empty ->getRootObject()) mePtBarrel_BXm2BXm1Empty ->Fill((*pfJets)[ijet].pt());
2474  }else if (correctedJet.eta() > -3.0 && correctedJet.eta() <= -1.3) {
2475  mePhFracEndCapMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PhFracEndCapMinus_BXm2BXm1Empty"]; if ( mePhFracEndCapMinus_BXm2BXm1Empty && mePhFracEndCapMinus_BXm2BXm1Empty ->getRootObject()) mePhFracEndCapMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2476  meNHFracEndCapMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"NHFracEndCapMinus_BXm2BXm1Empty"]; if ( meNHFracEndCapMinus_BXm2BXm1Empty && meNHFracEndCapMinus_BXm2BXm1Empty ->getRootObject()) meNHFracEndCapMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2477  meCHFracEndCapMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"CHFracEndCapMinus_BXm2BXm1Empty"]; if ( meCHFracEndCapMinus_BXm2BXm1Empty && meCHFracEndCapMinus_BXm2BXm1Empty ->getRootObject()) meCHFracEndCapMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2478  mePtEndCapMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PtEndCapMinus_BXm2BXm1Empty"]; if ( mePtEndCapMinus_BXm2BXm1Empty && mePtEndCapMinus_BXm2BXm1Empty ->getRootObject()) mePtEndCapMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].pt());
2479  }else if (correctedJet.eta() >= 1.3 && correctedJet.eta() < 3.0) {
2480  mePhFracEndCapPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PhFracEndCapPlus_BXm2BXm1Empty"]; if ( mePhFracEndCapPlus_BXm2BXm1Empty && mePhFracEndCapPlus_BXm2BXm1Empty ->getRootObject()) mePhFracEndCapPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2481  meNHFracEndCapPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"NHFracEndCapPlus_BXm2BXm1Empty"]; if ( meNHFracEndCapPlus_BXm2BXm1Empty && meNHFracEndCapPlus_BXm2BXm1Empty ->getRootObject()) meNHFracEndCapPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2482  meCHFracEndCapPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"CHFracEndCapPlus_BXm2BXm1Empty"]; if ( meCHFracEndCapPlus_BXm2BXm1Empty && meCHFracEndCapPlus_BXm2BXm1Empty ->getRootObject()) meCHFracEndCapPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2483  mePtEndCapPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PtEndCapPlus_BXm2BXm1Empty"]; if ( mePtEndCapPlus_BXm2BXm1Empty && mePtEndCapPlus_BXm2BXm1Empty ->getRootObject()) mePtEndCapPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].pt());
2484  }else if (correctedJet.eta() > -5.0 && correctedJet.eta() <= -3.0) {
2485  mePtForwardMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PtForwardMinus_BXm2BXm1Empty"]; if ( mePtForwardMinus_BXm2BXm1Empty && mePtForwardMinus_BXm2BXm1Empty ->getRootObject()) mePtForwardMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].pt());
2486  meHFHFracMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"HFHFracMinus_BXm2BXm1Empty"]; if ( meHFHFracMinus_BXm2BXm1Empty && meHFHFracMinus_BXm2BXm1Empty ->getRootObject()) meHFHFracMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2487  meHFEMFracMinus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"HFEMFracMinus_BXm2BXm1Empty"]; if ( meHFEMFracMinus_BXm2BXm1Empty && meHFEMFracMinus_BXm2BXm1Empty ->getRootObject()) meHFEMFracMinus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2488  }else if (correctedJet.eta() >= 3.0 && correctedJet.eta() < 5.0) {
2489  mePtForwardPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"PtForwardPlus_BXm2BXm1Empty"]; if ( mePtForwardPlus_BXm2BXm1Empty && mePtForwardPlus_BXm2BXm1Empty ->getRootObject()) mePtForwardPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].pt());
2490  meHFHFracPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"HFHFracPlus_BXm2BXm1Empty"]; if ( meHFHFracPlus_BXm2BXm1Empty && meHFHFracPlus_BXm2BXm1Empty ->getRootObject()) meHFHFracPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2491  meHFEMFracPlus_BXm2BXm1Empty = map_of_MEs[DirName+"/"+"HFEMFracPlus_BXm2BXm1Empty"]; if ( meHFEMFracPlus_BXm2BXm1Empty && meHFEMFracPlus_BXm2BXm1Empty ->getRootObject()) meHFEMFracPlus_BXm2BXm1Empty ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2492  }
2493  }*/
2494  if(techTriggerResultBx0 && !techTriggerResultBxF){
2495  meEta_BXm1Empty = map_of_MEs[DirName+"/"+"Eta_BXm1Empty"]; if ( meEta_BXm1Empty && meEta_BXm1Empty ->getRootObject()) meEta_BXm1Empty ->Fill((*pfJets)[ijet].eta());
2496  if(fabs(correctedJet.eta()) <= 1.3) {
2497  mePhFracBarrel_BXm1Empty = map_of_MEs[DirName+"/"+"PhFracBarrel_BXm1Empty"]; if ( mePhFracBarrel_BXm1Empty && mePhFracBarrel_BXm1Empty ->getRootObject()) mePhFracBarrel_BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2498  meNHFracBarrel_BXm1Empty = map_of_MEs[DirName+"/"+"NHFracBarrel_BXm1Empty"]; if ( meNHFracBarrel_BXm1Empty && meNHFracBarrel_BXm1Empty ->getRootObject()) meNHFracBarrel_BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2499  meCHFracBarrel_BXm1Empty = map_of_MEs[DirName+"/"+"CHFracBarrel_BXm1Empty"]; if ( meCHFracBarrel_BXm1Empty && meCHFracBarrel_BXm1Empty ->getRootObject()) meCHFracBarrel_BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2500  mePtBarrel_BXm1Empty = map_of_MEs[DirName+"/"+"PtBarrel_BXm1Empty"]; if ( mePtBarrel_BXm1Empty && mePtBarrel_BXm1Empty ->getRootObject()) mePtBarrel_BXm1Empty ->Fill((*pfJets)[ijet].pt());
2501  }else if (correctedJet.eta() > -3.0 && correctedJet.eta() <= -1.3) {
2502  mePhFracEndCapMinus_BXm1Empty = map_of_MEs[DirName+"/"+"PhFracEndCapMinus_BXm1Empty"]; if ( mePhFracEndCapMinus_BXm1Empty && mePhFracEndCapMinus_BXm1Empty ->getRootObject()) mePhFracEndCapMinus_BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2503  meNHFracEndCapMinus_BXm1Empty = map_of_MEs[DirName+"/"+"NHFracEndCapMinus_BXm1Empty"]; if ( meNHFracEndCapMinus_BXm1Empty && meNHFracEndCapMinus_BXm1Empty ->getRootObject()) meNHFracEndCapMinus_BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2504  meCHFracEndCapMinus_BXm1Empty = map_of_MEs[DirName+"/"+"CHFracEndCapMinus_BXm1Empty"]; if ( meCHFracEndCapMinus_BXm1Empty && meCHFracEndCapMinus_BXm1Empty ->getRootObject()) meCHFracEndCapMinus_BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2505  mePtEndCapMinus_BXm1Empty = map_of_MEs[DirName+"/"+"PtEndCapMinus_BXm1Empty"]; if ( mePtEndCapMinus_BXm1Empty && mePtEndCapMinus_BXm1Empty ->getRootObject()) mePtEndCapMinus_BXm1Empty ->Fill((*pfJets)[ijet].pt());
2506  }else if (correctedJet.eta() >= 1.3 && correctedJet.eta() < 3.0) {
2507  mePhFracEndCapPlus_BXm1Empty = map_of_MEs[DirName+"/"+"PhFracEndCapPlus_BXm1Empty"]; if ( mePhFracEndCapPlus_BXm1Empty && mePhFracEndCapPlus_BXm1Empty ->getRootObject()) mePhFracEndCapPlus_BXm1Empty ->Fill((*pfJets)[ijet].photonEnergyFraction());
2508  meNHFracEndCapPlus_BXm1Empty = map_of_MEs[DirName+"/"+"NHFracEndCapPlus_BXm1Empty"]; if ( meNHFracEndCapPlus_BXm1Empty && meNHFracEndCapPlus_BXm1Empty ->getRootObject()) meNHFracEndCapPlus_BXm1Empty ->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2509  meCHFracEndCapPlus_BXm1Empty = map_of_MEs[DirName+"/"+"CHFracEndCapPlus_BXm1Empty"]; if ( meCHFracEndCapPlus_BXm1Empty && meCHFracEndCapPlus_BXm1Empty ->getRootObject()) meCHFracEndCapPlus_BXm1Empty ->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2510  mePtEndCapPlus_BXm1Empty = map_of_MEs[DirName+"/"+"PtEndCapPlus_BXm1Empty"]; if ( mePtEndCapPlus_BXm1Empty && mePtEndCapPlus_BXm1Empty ->getRootObject()) mePtEndCapPlus_BXm1Empty ->Fill((*pfJets)[ijet].pt());
2511  }else if (correctedJet.eta() > -5.0 && correctedJet.eta() <= -3.0) {
2512  mePtForwardMinus_BXm1Empty = map_of_MEs[DirName+"/"+"PtForwardMinus_BXm1Empty"]; if ( mePtForwardMinus_BXm1Empty && mePtForwardMinus_BXm1Empty ->getRootObject()) mePtForwardMinus_BXm1Empty ->Fill((*pfJets)[ijet].pt());
2513  meHFHFracMinus_BXm1Empty = map_of_MEs[DirName+"/"+"HFHFracMinus_BXm1Empty"]; if ( meHFHFracMinus_BXm1Empty && meHFHFracMinus_BXm1Empty ->getRootObject()) meHFHFracMinus_BXm1Empty ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2514  meHFEMFracMinus_BXm1Empty = map_of_MEs[DirName+"/"+"HFEMFracMinus_BXm1Empty"]; if ( meHFEMFracMinus_BXm1Empty && meHFEMFracMinus_BXm1Empty ->getRootObject()) meHFEMFracMinus_BXm1Empty ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2515  }else if (correctedJet.eta() >= 3.0 && correctedJet.eta() < 5.0) {
2516  mePtForwardPlus_BXm1Empty = map_of_MEs[DirName+"/"+"PtForwardPlus_BXm1Empty"]; if ( mePtForwardPlus_BXm1Empty && mePtForwardPlus_BXm1Empty ->getRootObject()) mePtForwardPlus_BXm1Empty ->Fill((*pfJets)[ijet].pt());
2517  meHFHFracPlus_BXm1Empty = map_of_MEs[DirName+"/"+"HFHFracPlus_BXm1Empty"]; if ( meHFHFracPlus_BXm1Empty && meHFHFracPlus_BXm1Empty ->getRootObject()) meHFHFracPlus_BXm1Empty ->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2518  meHFEMFracPlus_BXm1Empty = map_of_MEs[DirName+"/"+"HFEMFracPlus_BXm1Empty"]; if ( meHFEMFracPlus_BXm1Empty && meHFEMFracPlus_BXm1Empty ->getRootObject()) meHFEMFracPlus_BXm1Empty ->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2519  }
2520  }
2521  mChargedHadronEnergy = map_of_MEs[DirName+"/"+"ChargedHadronEnergy"]; if (mChargedHadronEnergy && mChargedHadronEnergy->getRootObject()) mChargedHadronEnergy->Fill ((*pfJets)[ijet].chargedHadronEnergy());
2522  mNeutralHadronEnergy = map_of_MEs[DirName+"/"+"NeutralHadronEnergy"]; if (mNeutralHadronEnergy && mNeutralHadronEnergy->getRootObject()) mNeutralHadronEnergy->Fill ((*pfJets)[ijet].neutralHadronEnergy());
2523  mChargedEmEnergy = map_of_MEs[DirName+"/"+"ChargedEmEnergy"]; if (mChargedEmEnergy && mChargedEmEnergy->getRootObject()) mChargedEmEnergy->Fill((*pfJets)[ijet].chargedEmEnergy());
2524  mChargedMuEnergy = map_of_MEs[DirName+"/"+"ChargedMuEnergy"]; if (mChargedMuEnergy && mChargedMuEnergy->getRootObject()) mChargedMuEnergy->Fill ((*pfJets)[ijet].chargedMuEnergy ());
2525  mNeutralEmEnergy = map_of_MEs[DirName+"/"+"NeutralEmEnergy"]; if (mNeutralEmEnergy && mNeutralEmEnergy->getRootObject()) mNeutralEmEnergy->Fill((*pfJets)[ijet].neutralEmEnergy());
2526  mChargedMultiplicity = map_of_MEs[DirName+"/"+"ChargedMultiplicity"]; if (mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ijet].chargedMultiplicity());
2527  mNeutralMultiplicity = map_of_MEs[DirName+"/"+"NeutralMultiplicity"]; if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ijet].neutralMultiplicity());
2529  //_______________________________________________________
2530  mNeutralFraction = map_of_MEs[DirName+"/"+"NeutralConstituentsFraction"];if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((double)(*pfJets)[ijet].neutralMultiplicity()/(double)(*pfJets)[ijet].nConstituents());
2531  mChargedHadronEnergy_profile = map_of_MEs[DirName+"/"+"ChargedHadronEnergy_profile"]; if (mChargedHadronEnergy_profile && mChargedHadronEnergy_profile->getRootObject()) mChargedHadronEnergy_profile->Fill(numPV, (*pfJets)[ijet].chargedHadronEnergy());
2532  mNeutralHadronEnergy_profile = map_of_MEs[DirName+"/"+"NeutralHadronEnergy_profile"];if (mNeutralHadronEnergy_profile && mNeutralHadronEnergy_profile->getRootObject()) mNeutralHadronEnergy_profile->Fill(numPV, (*pfJets)[ijet].neutralHadronEnergy());
2533  mChargedEmEnergy_profile = map_of_MEs[DirName+"/"+"ChargedEmEnergy_profile"]; if (mChargedEmEnergy_profile && mChargedEmEnergy_profile->getRootObject()) mChargedEmEnergy_profile ->Fill(numPV, (*pfJets)[ijet].chargedEmEnergy());
2534  mChargedMuEnergy_profile = map_of_MEs[DirName+"/"+"ChargedMuEnergy_profile"];if (mChargedMuEnergy_profile && mChargedMuEnergy_profile->getRootObject()) mChargedMuEnergy_profile ->Fill(numPV, (*pfJets)[ijet].chargedMuEnergy ());
2535  mNeutralEmEnergy_profile = map_of_MEs[DirName+"/"+"NeutralEmEnergy_profile"];if (mNeutralEmEnergy_profile && mNeutralEmEnergy_profile->getRootObject()) mNeutralEmEnergy_profile ->Fill(numPV, (*pfJets)[ijet].neutralEmEnergy());
2536  mChargedMultiplicity_profile = map_of_MEs[DirName+"/"+"ChargedMultiplicity_profile"]; if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ijet].chargedMultiplicity());
2537  mNeutralMultiplicity_profile = map_of_MEs[DirName+"/"+"NeutralMultiplicity_profile"];if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ijet].neutralMultiplicity());
2538  mMuonMultiplicity_profile = map_of_MEs[DirName+"/"+"MuonMultiplicity_profile"]; if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile ->Fill(numPV, (*pfJets)[ijet].muonMultiplicity());
2539  }//cleaned PFJets
2540  }//PFJet specific loop
2541  //IDs have been defined by now
2542  //check here already for ordering of jets -> if we choose later to soften pt-thresholds for physics selections
2543  //compared to the default jet histograms
2544  if(pass_Z_selection){//if Z selection not passed, don't need to find out of muons and Jets are overlapping
2545  if(deltaR((*Muons)[mu_index0].eta(),(*Muons)[mu_index0].phi(),correctedJet.eta(),correctedJet.phi())>0.2 && deltaR((*Muons)[mu_index1].eta(),(*Muons)[mu_index1].phi(),correctedJet.eta(),correctedJet.phi())>0.2 ){
2546  if(correctedJet.pt()>pt1_mu_vetoed){
2547  pt2_mu_vetoed=pt1_mu_vetoed;
2548  ind2_mu_vetoed=ind1_mu_vetoed;
2549  cleaned_second_jet_mu_vetoed=cleaned_first_jet_mu_vetoed;
2550  pt1_mu_vetoed=correctedJet.pt();
2551  ind1_mu_vetoed=ijet;
2552  cleaned_first_jet_mu_vetoed=JetIDWPU;
2553  } else if(correctedJet.pt()>pt2_mu_vetoed){
2554  pt2_mu_vetoed=correctedJet.pt();
2555  ind2_mu_vetoed=ijet;
2556  cleaned_second_jet_mu_vetoed=JetIDWPU;
2557  }
2558  }
2559  }
2560 
2561  if(correctedJet.pt()>pt1){
2562  pt3=pt2;
2563  ind3=ind2;
2564  //cleaned_third_jet=cleaned_second_jet;
2565  pt2=pt1;
2566  ind2=ind1;
2567  cleaned_second_jet=cleaned_first_jet;
2568  pt1=correctedJet.pt();
2569  ind1=ijet;
2570  cleaned_first_jet=JetIDWPU;
2571  } else if(correctedJet.pt()>pt2){
2572  pt3=pt2;
2573  ind3=ind2;
2574  //cleaned_third_jet=cleaned_second_jet;
2575  pt2=correctedJet.pt();
2576  ind2=ijet;
2577  cleaned_second_jet=JetIDWPU;
2578  } else if(correctedJet.pt()>pt3){
2579  pt3=correctedJet.pt();
2580  ind3=ijet;
2581  //cleaned_third_jet=JetIDWPU;
2582  }
2583  if(!pass_corrected){
2584  continue;
2585  }
2586  //after jettype specific variables are filled -> perform histograms for all jets
2587  //fill JetID efficiencies if uncleaned selection is chosen
2588  if(!runcosmics_ && pass_corrected){
2589  if(jetpassid) {
2592  if(fabs(correctedJet.eta())<3.0){
2594  }
2595  } else {
2598  if(fabs(correctedJet.eta())<3.0){
2600  }
2601  }
2602  }
2603  //here we so far consider calojets ->check for PFJets and JPT jets again
2604  if(Thiscleaned && pass_corrected){//might be softer than loose jet ID
2605  numofjets++;
2606  if(isCaloJet_){
2607  jetME = map_of_MEs[DirName+"/"+"jetReco"]; if(jetME && jetME->getRootObject()) jetME->Fill(1);
2608  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(correctedJet.pt()/(*caloJets)[ijet].pt());
2609  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(correctedJet.eta(),correctedJet.pt()/(*caloJets)[ijet].pt());
2610  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.pt(),correctedJet.pt()/(*caloJets)[ijet].pt());
2611  }
2612  if(isPFJet_){
2613  jetME = map_of_MEs[DirName+"/"+"jetReco"]; if(jetME && jetME->getRootObject()) jetME->Fill(2);
2614  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(correctedJet.pt()/(*pfJets)[ijet].pt());
2615  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())mJetEnergyCorrVSEta->Fill(correctedJet.eta(),correctedJet.pt()/(*pfJets)[ijet].pt());
2616  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.pt(),correctedJet.pt()/(*pfJets)[ijet].pt());
2617  }
2618  if(isMiniAODJet_){
2619  jetME = map_of_MEs[DirName+"/"+"jetReco"]; if(jetME && jetME->getRootObject()) jetME->Fill(4);
2620  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ijet].jecFactor("Uncorrected"));
2621  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())mJetEnergyCorrVSEta->Fill(correctedJet.eta(),1./(*patJets)[ijet].jecFactor("Uncorrected"));
2622  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.pt(),1./(*patJets)[ijet].jecFactor("Uncorrected"));
2623  if(filljetsubstruc_){
2624  //miniaod specific variables, especially for substructure
2625  mSoftDropMass = map_of_MEs[DirName+"/"+"SoftDropMass"];if(mSoftDropMass && mSoftDropMass->getRootObject() && (*patJets)[ijet].hasUserFloat("ak8PFJetsPuppiSoftDropMass")) mSoftDropMass->Fill((*patJets)[ijet].userFloat("ak8PFJetsPuppiSoftDropMass"));
2626  mPrunedMass = map_of_MEs[DirName+"/"+"PrunedMass"];if(mPrunedMass && mPrunedMass->getRootObject() && (*patJets)[ijet].hasUserFloat("ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass")) mPrunedMass->Fill((*patJets)[ijet].userFloat("ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass"));
2627  mtau2_over_tau1 = map_of_MEs[DirName+"/"+"tau2_over_tau1"]; if(mtau2_over_tau1 && mtau2_over_tau1->getRootObject() && ((*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau1") && (*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau2")))mtau2_over_tau1->Fill((*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau2")/(*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau1"));
2628  mtau3_over_tau2 = map_of_MEs[DirName+"/"+"tau3_over_tau2"]; if(mtau3_over_tau2 && mtau3_over_tau2->getRootObject() && ((*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau2") && (*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau3")))mtau3_over_tau2->Fill((*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau3")/(*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau2"));
2629 
2630 
2631  if((*patJets)[ijet].hasSubjets("SoftDropPuppi")){
2632  mnSubJetsSoftDrop=map_of_MEs[DirName+"/"+"nSubJets_SoftDrop"]; if(mnSubJetsSoftDrop && mnSubJetsSoftDrop->getRootObject()) mnSubJetsSoftDrop->Fill((*patJets)[ijet].subjets("SoftDropPuppi").size());
2633  }
2634  if((*patJets)[ijet].hasSubjets("SoftDropPuppi") && !(*patJets)[ijet].subjets("SoftDropPuppi").empty()){
2635  mSubJet1_SoftDrop_pt=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_pt"]; if(mSubJet1_SoftDrop_pt && mSubJet1_SoftDrop_pt->getRootObject()) mSubJet1_SoftDrop_pt->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->pt());
2636  mSubJet1_SoftDrop_eta=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_eta"]; if(mSubJet1_SoftDrop_eta && mSubJet1_SoftDrop_eta->getRootObject()) mSubJet1_SoftDrop_eta->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->eta());
2637  mSubJet1_SoftDrop_phi=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_phi"]; if(mSubJet1_SoftDrop_phi && mSubJet1_SoftDrop_phi->getRootObject()) mSubJet1_SoftDrop_phi->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->phi());
2638  mSubJet1_SoftDrop_mass=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_mass"]; if(mSubJet1_SoftDrop_mass && mSubJet1_SoftDrop_mass->getRootObject()) mSubJet1_SoftDrop_mass->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->mass());
2639  if((*patJets)[ijet].subjets("SoftDropPuppi").size()>1){
2640  mSubJet2_SoftDrop_pt=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_pt"]; if(mSubJet2_SoftDrop_pt && mSubJet2_SoftDrop_pt->getRootObject()) mSubJet2_SoftDrop_pt->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->pt());
2641  mSubJet2_SoftDrop_eta=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_eta"]; if(mSubJet2_SoftDrop_eta && mSubJet2_SoftDrop_eta->getRootObject()) mSubJet2_SoftDrop_eta->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->eta());
2642  mSubJet2_SoftDrop_phi=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_phi"]; if(mSubJet2_SoftDrop_phi && mSubJet2_SoftDrop_phi->getRootObject()) mSubJet2_SoftDrop_phi->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->phi());
2643  mSubJet2_SoftDrop_mass=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_mass"]; if(mSubJet2_SoftDrop_mass && mSubJet2_SoftDrop_mass->getRootObject()) mSubJet2_SoftDrop_mass->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->mass());
2644  }
2645  }//soft drop jets
2646  if((*patJets)[ijet].pt()>pt_min_boosted_){
2647  //miniaod specific variables, especially for boosted substructure
2648  mSoftDropMass_boosted = map_of_MEs[DirName+"/"+"SoftDropMass_boosted"];if(mSoftDropMass_boosted && mSoftDropMass_boosted->getRootObject() && (*patJets)[ijet].hasUserFloat("ak8PFJetsPuppiSoftDropMass")) mSoftDropMass_boosted->Fill((*patJets)[ijet].userFloat("ak8PFJetsPuppiSoftDropMass"));
2649  mPrunedMass_boosted = map_of_MEs[DirName+"/"+"PrunedMass_boosted"];if(mPrunedMass_boosted && mPrunedMass_boosted->getRootObject() && (*patJets)[ijet].hasUserFloat("ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass")) mPrunedMass_boosted->Fill((*patJets)[ijet].userFloat("ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass"));
2650  mtau2_over_tau1_boosted = map_of_MEs[DirName+"/"+"tau2_over_tau1_boosted"]; if(mtau2_over_tau1_boosted && mtau2_over_tau1_boosted->getRootObject() && ((*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau1") && (*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau2")))mtau2_over_tau1_boosted->Fill((*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau2")/(*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau1"));
2651  mtau3_over_tau2_boosted = map_of_MEs[DirName+"/"+"tau3_over_tau2_boosted"]; if(mtau3_over_tau2_boosted && mtau3_over_tau2_boosted->getRootObject() && ((*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau2") && (*patJets)[ijet].hasUserFloat("NjettinessAK8Puppi:tau3")))mtau3_over_tau2_boosted->Fill((*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau3")/(*patJets)[ijet].userFloat("NjettinessAK8Puppi:tau2"));
2652  if((*patJets)[ijet].hasSubjets("SoftDropPuppi")){
2653  mnSubJetsSoftDrop_boosted=map_of_MEs[DirName+"/"+"nSubJets_SoftDrop_boosted"]; if(mnSubJetsSoftDrop_boosted && mnSubJetsSoftDrop_boosted->getRootObject()) mnSubJetsSoftDrop_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi").size());
2654  }
2655  if((*patJets)[ijet].hasSubjets("SoftDropPuppi") && !(*patJets)[ijet].subjets("SoftDropPuppi").empty()){
2656  mSubJet1_SoftDrop_pt_boosted=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_pt_boosted"]; if(mSubJet1_SoftDrop_pt_boosted && mSubJet1_SoftDrop_pt_boosted->getRootObject()) mSubJet1_SoftDrop_pt_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->pt());
2657  mSubJet1_SoftDrop_eta_boosted=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_eta_boosted"]; if(mSubJet1_SoftDrop_eta_boosted && mSubJet1_SoftDrop_eta_boosted->getRootObject()) mSubJet1_SoftDrop_eta_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->eta());
2658  mSubJet1_SoftDrop_phi_boosted=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_phi_boosted"]; if(mSubJet1_SoftDrop_phi_boosted && mSubJet1_SoftDrop_phi_boosted->getRootObject()) mSubJet1_SoftDrop_phi_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->phi());
2659  mSubJet1_SoftDrop_mass_boosted=map_of_MEs[DirName+"/"+"SubJet1_SoftDrop_mass_boosted"]; if(mSubJet1_SoftDrop_mass_boosted && mSubJet1_SoftDrop_mass_boosted->getRootObject()) mSubJet1_SoftDrop_mass_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[0]->mass());
2660  if((*patJets)[ijet].subjets("SoftDropPuppi").size()>1){
2661  mSubJet2_SoftDrop_pt_boosted=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_pt_boosted"]; if(mSubJet2_SoftDrop_pt_boosted && mSubJet2_SoftDrop_pt_boosted->getRootObject()) mSubJet2_SoftDrop_pt_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->pt());
2662  mSubJet2_SoftDrop_eta_boosted=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_eta_boosted"]; if(mSubJet2_SoftDrop_eta_boosted && mSubJet2_SoftDrop_eta_boosted->getRootObject()) mSubJet2_SoftDrop_eta_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->eta());
2663  mSubJet2_SoftDrop_phi_boosted=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_phi_boosted"]; if(mSubJet2_SoftDrop_phi_boosted && mSubJet2_SoftDrop_phi_boosted->getRootObject()) mSubJet2_SoftDrop_phi_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->phi());
2664  mSubJet2_SoftDrop_mass_boosted=map_of_MEs[DirName+"/"+"SubJet2_SoftDrop_mass_boosted"]; if(mSubJet2_SoftDrop_mass_boosted && mSubJet2_SoftDrop_mass_boosted->getRootObject()) mSubJet2_SoftDrop_mass_boosted->Fill((*patJets)[ijet].subjets("SoftDropPuppi")[1]->mass());
2665  }
2666  }
2667  }//substructure filling for boosted
2668  }//substructure filling
2669  }
2670  // --- Event passed the low pt jet trigger
2671  if (jetLoPass_ == 1) {
2672  mPhi_Lo = map_of_MEs[DirName+"/"+"Phi_Lo"]; if (mPhi_Lo && mPhi_Lo->getRootObject()) mPhi_Lo->Fill (correctedJet.phi());
2673  mPt_Lo = map_of_MEs[DirName+"/"+"Pt_Lo"]; if (mPt_Lo && mPt_Lo->getRootObject()) mPt_Lo->Fill (correctedJet.pt());
2674 
2675  }
2676  // --- Event passed the high pt jet trigger
2677  if (jetHiPass_ == 1&& correctedJet.pt()>100. ) {
2678  mEta_Hi = map_of_MEs[DirName+"/"+"Eta_Hi"]; if (mEta_Hi && mEta_Hi->getRootObject()) mEta_Hi->Fill (correctedJet.eta());
2679  mPhi_Hi = map_of_MEs[DirName+"/"+"Phi_Hi"]; if (mPhi_Hi && mPhi_Hi->getRootObject()) mPhi_Hi->Fill (correctedJet.phi());
2680  mPt_Hi = map_of_MEs[DirName+"/"+"Pt_Hi"]; if (mPt_Hi && mPt_Hi->getRootObject()) mPt_Hi->Fill (correctedJet.pt());
2681  }
2682  mPt = map_of_MEs[DirName+"/"+"Pt"]; if (mPt && mPt->getRootObject()) mPt->Fill (correctedJet.pt());
2683  mPt_1 = map_of_MEs[DirName+"/"+"Pt_1"]; if (mPt_1 && mPt_1->getRootObject()) mPt_1->Fill (correctedJet.pt());
2684  mPt_2 = map_of_MEs[DirName+"/"+"Pt_2"]; if (mPt_2 && mPt_2->getRootObject()) mPt_2->Fill (correctedJet.pt());
2685  mPt_3 = map_of_MEs[DirName+"/"+"Pt_3"]; if (mPt_3 && mPt_3->getRootObject()) mPt_3->Fill (correctedJet.pt());
2686  mEta = map_of_MEs[DirName+"/"+"Eta"]; if (mEta && mEta->getRootObject()) mEta->Fill (correctedJet.eta());
2687  mPhi = map_of_MEs[DirName+"/"+"Phi"]; if (mPhi && mPhi->getRootObject()) mPhi->Fill (correctedJet.phi());
2688 
2689  mPhiVSEta = map_of_MEs[DirName+"/"+"PhiVSEta"]; if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(correctedJet.eta(),correctedJet.phi());
2690  //if(!isJPTJet_){
2691  float nConstituents=correctedJet.nConstituents();
2692  if(isMiniAODJet_) {
2693  if ((*patJets)[ijet].hasUserFloat("patPuppiJetSpecificProducer:puppiMultiplicity"))
2694  nConstituents = (*patJets)[ijet].userFloat("patPuppiJetSpecificProducer:puppiMultiplicity");
2695  }
2696  mConstituents = map_of_MEs[DirName+"/"+"Constituents"]; if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (nConstituents);
2697  //}
2698  // Fill NPV profiles
2699  //--------------------------------------------------------------------
2700  mPt_profile = map_of_MEs[DirName+"/"+"Pt_profile"]; if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->Fill(numPV, correctedJet.pt());
2701  mEta_profile = map_of_MEs[DirName+"/"+"Eta_profile"]; if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->Fill(numPV, correctedJet.eta());
2702  mPhi_profile = map_of_MEs[DirName+"/"+"Phi_profile"]; if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->Fill(numPV, correctedJet.phi());
2703  //if(!isJPTJet_){
2704  mConstituents_profile = map_of_MEs[DirName+"/"+"Constituents_profile"]; if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, nConstituents);
2705  //}
2706  if (fabs(correctedJet.eta()) <= 1.3) {
2707  mPt_Barrel = map_of_MEs[DirName+"/"+"Pt_Barrel"]; if (mPt_Barrel && mPt_Barrel->getRootObject()) mPt_Barrel->Fill (correctedJet.pt());
2708  mPhi_Barrel = map_of_MEs[DirName+"/"+"Phi_Barrel"]; if (mPhi_Barrel && mPhi_Barrel->getRootObject()) mPhi_Barrel->Fill (correctedJet.phi());
2709  //if (mE_Barrel) mE_Barrel->Fill (correctedJet.energy());
2710  //if(!isJPTJet_){
2712  //}
2713  }else if (fabs(correctedJet.eta()) <= 3) {
2714  mPt_EndCap = map_of_MEs[DirName+"/"+"Pt_EndCap"]; if (mPt_EndCap && mPt_EndCap->getRootObject()) mPt_EndCap->Fill (correctedJet.pt());
2715  mPhi_EndCap = map_of_MEs[DirName+"/"+"Phi_EndCap"]; if (mPhi_EndCap && mPhi_EndCap->getRootObject()) mPhi_EndCap->Fill (correctedJet.phi());
2716  //if (mE_EndCap) mE_EndCap->Fill (correctedJet.energy());
2717  //if(!isJPTJet_){
2719  //}
2720  }else{
2721  mPt_Forward = map_of_MEs[DirName+"/"+"Pt_Forward"]; if (mPt_Forward && mPt_Forward->getRootObject()) mPt_Forward->Fill (correctedJet.pt());
2722  mPhi_Forward = map_of_MEs[DirName+"/"+"Phi_Forward"]; if (mPhi_Forward && mPhi_Forward->getRootObject()) mPhi_Forward->Fill (correctedJet.phi());
2723  //if (mE_Forward) mE_Forward->Fill (correctedJet.energy());
2724  //if(!isJPTJet_){
2726  //}
2727  }
2728  }// pass ID for corrected jets --> inclusive selection
2729  }//loop over uncorrected jets
2730 
2731 
2732  mNJets = map_of_MEs[DirName+"/"+"NJets"]; if (mNJets && mNJets->getRootObject()) mNJets->Fill (numofjets);
2733  mNJets_profile = map_of_MEs[DirName+"/"+"NJets_profile"]; if (mNJets_profile && mNJets_profile->getRootObject()) mNJets_profile->Fill(numPV, numofjets);
2734 
2735  sort(recoJets.begin(),recoJets.end(),jetSortingRule);
2736 
2737  //for non dijet selection, otherwise numofjets==0
2738  if(numofjets>0){//keep threshold for dijet counting at the original one
2739  //check ID of the leading jet
2740 
2741  if(cleaned_first_jet){
2742  mEtaFirst = map_of_MEs[DirName+"/"+"EtaFirst"]; if (mEtaFirst && mEtaFirst->getRootObject()) mEtaFirst->Fill ((recoJets)[0].eta());
2743  mPhiFirst = map_of_MEs[DirName+"/"+"PhiFirst"]; if (mPhiFirst && mPhiFirst->getRootObject()) mPhiFirst->Fill ((recoJets)[0].phi());
2744  mPtFirst = map_of_MEs[DirName+"/"+"PtFirst"]; if (mPtFirst && mPtFirst->getRootObject()) mPtFirst->Fill ((recoJets)[0].pt());
2745  //check ID of second check for DPhi plots
2746  if(numofjets>1 && cleaned_second_jet) {
2747  double dphi=fabs((recoJets)[0].phi()-(recoJets)[1].phi());
2748  if(dphi>acos(-1.)){
2749  dphi=2*acos(-1.)-dphi;
2750  }
2751  mDPhi = map_of_MEs[DirName+"/"+"DPhi"]; if (mDPhi && mDPhi->getRootObject()) mDPhi->Fill (dphi);
2752  }
2753  }
2754  //if(cleaned_second_jet && isJPTJet_){
2755  //mPtSecond = map_of_MEs[DirName+"/"+"PtSecond"]; if (mPtSecond && mPtSecond->getRootObject()) mPtSecond->Fill(recoJets[1].pt());
2756  //}
2757  //if(cleaned_third_jet && isJPTJet_){
2758  //mPtThird = map_of_MEs[DirName+"/"+"PtThird"]; if (mPtThird && mPtThird->getRootObject()) mPtThird->Fill(recoJets[2].pt());
2759  //}
2760  }
2761  //dijet selection -> recoJets are on corrected level, both jets cleaned, fill folder only for cleaned jet selection
2762  if(jetCleaningFlag_ && recoJets.size()>1 && cleaned_first_jet && cleaned_second_jet ){
2763  //pt threshold checked before filling
2764  if(jetCleaningFlag_){
2765  DirName = "JetMET/Jet/Cleaned"+mInputCollection_.label()+"/DiJet";
2766  }
2767  //if(fabs(recoJets[0].eta())<3. && fabs(recoJets[1].eta())<3. ){
2768  //calculate dphi
2769  double dphi=fabs((recoJets)[0].phi()-(recoJets)[1].phi());
2770  if(dphi>acos(-1.)){
2771  dphi=2*acos(-1.)-dphi;
2772  }
2773  mDPhi = map_of_MEs[DirName+"/"+"DPhi"]; if (mDPhi && mDPhi->getRootObject()) if (mDPhi) mDPhi->Fill (dphi);
2774  //dphi cut
2775  if(fabs(dphi)>2.1){
2776  if(isCaloJet_){
2777  if(!runcosmics_){
2778  reco::CaloJetRef calojetref1(caloJets, ind1);
2779  reco::JetID jetID1 = (*jetID_ValueMap_Handle)[calojetref1];
2780  reco::CaloJetRef calojetref2(caloJets, ind2);
2781  reco::JetID jetID2 = (*jetID_ValueMap_Handle)[calojetref2];
2782  mN90Hits = map_of_MEs[DirName+"/"+"N90Hits"]; if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID1.n90Hits);
2783  mfHPD = map_of_MEs[DirName+"/"+"fHPD"]; if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID1.fHPD);
2784  mresEMF = map_of_MEs[DirName+"/"+"resEMF"]; if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID1.restrictedEMF);
2785  mfRBX = map_of_MEs[DirName+"/"+"fRBX"]; if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID1.fRBX);
2786  mN90Hits = map_of_MEs[DirName+"/"+"N90Hits"]; if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID2.n90Hits);
2787  mfHPD = map_of_MEs[DirName+"/"+"fHPD"]; if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID2.fHPD);
2788  mresEMF = map_of_MEs[DirName+"/"+"resEMF"]; if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID2.restrictedEMF);
2789  mfRBX = map_of_MEs[DirName+"/"+"fRBX"]; if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID2.fRBX);
2790  }
2791  mHFrac = map_of_MEs[DirName+"/"+"HFrac"]; if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ind1].energyFractionHadronic());
2792  mEFrac = map_of_MEs[DirName+"/"+"EFrac"]; if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ind1].emEnergyFraction());
2793  mHFrac = map_of_MEs[DirName+"/"+"HFrac"]; if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ind2].energyFractionHadronic());
2794  mEFrac = map_of_MEs[DirName+"/"+"EFrac"]; if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ind2].emEnergyFraction());
2795  mHFrac_profile = map_of_MEs[DirName+"/"+"HFrac_profile"]; if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->Fill(numPV, (*caloJets)[ind1].energyFractionHadronic());
2796  mEFrac_profile = map_of_MEs[DirName+"/"+"EFrac_profile"]; if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->Fill(numPV, (*caloJets)[ind1].emEnergyFraction());
2797  mHFrac_profile = map_of_MEs[DirName+"/"+"HFrac_profile"]; if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->Fill(numPV, (*caloJets)[ind2].energyFractionHadronic());
2798  mEFrac_profile = map_of_MEs[DirName+"/"+"EFrac_profile"]; if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->Fill(numPV, (*caloJets)[ind2].emEnergyFraction());
2799 
2800  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[0].pt()/(*caloJets)[ind1].pt());
2801  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),recoJets[0].pt()/(*caloJets)[ind1].pt());
2802  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),recoJets[0].pt()/(*caloJets)[ind1].pt());
2803  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[1].pt()/(*caloJets)[ind2].pt());
2804  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[1].eta(),recoJets[1].pt()/(*caloJets)[ind2].pt());
2805  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[1].pt(),recoJets[1].pt()/(*caloJets)[ind2].pt());
2806  }
2807  //if(isJPTJet_){
2808  //mHFrac = map_of_MEs[DirName+"/"+"HFrac"]; if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*jptJets)[ind1].chargedHadronEnergyFraction()+(*jptJets)[ind1].neutralHadronEnergyFraction());
2809  //mEFrac = map_of_MEs[DirName+"/"+"EFrac"]; if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill (1.-(*jptJets)[ind1].chargedHadronEnergyFraction()-(*jptJets)[ind1].neutralHadronEnergyFraction());
2810  //mHFrac_profile = map_of_MEs[DirName+"/"+"HFrac_profile"]; mHFrac_profile ->Fill(numPV, (*jptJets)[ind1].chargedHadronEnergyFraction()+(*jptJets)[ind1].neutralHadronEnergyFraction());
2811  //mEFrac_profile = map_of_MEs[DirName+"/"+"EFrac_profile"]; mEFrac_profile ->Fill(numPV, 1.-(*jptJets)[ind1].chargedHadronEnergyFraction()-(*jptJets)[ind1].neutralHadronEnergyFraction());
2812  //mHFrac = map_of_MEs[DirName+"/"+"HFrac"]; if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*jptJets)[ind2].chargedHadronEnergyFraction()+(*jptJets)[ind2].neutralHadronEnergyFraction());
2813  //mEFrac = map_of_MEs[DirName+"/"+"EFrac"]; if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill (1.-(*jptJets)[ind2].chargedHadronEnergyFraction()-(*jptJets)[ind2].neutralHadronEnergyFraction());
2814  //mHFrac_profile = map_of_MEs[DirName+"/"+"HFrac_profile"]; mHFrac_profile ->Fill(numPV, (*jptJets)[ind2].chargedHadronEnergyFraction()+(*jptJets)[ind2].neutralHadronEnergyFraction());
2815  //mEFrac_profile = map_of_MEs[DirName+"/"+"EFrac_profile"]; mEFrac_profile ->Fill(numPV, 1.-(*jptJets)[ind2].chargedHadronEnergyFraction()-(*jptJets)[ind2].neutralHadronEnergyFraction());
2816  //
2817  //mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[0].pt()/(*jptJets)[ind1].pt());
2818  //mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),recoJets[0].pt()/(*jptJets)[ind1].pt());
2819  //mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),recoJets[0].pt()/(*jptJets)[ind1].pt());
2820  //mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[1].pt()/(*jptJets)[ind2].pt());
2821  //mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[1].eta(),recoJets[1].pt()/(*jptJets)[ind2].pt());
2822  //mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[1].pt(),recoJets[1].pt()/(*jptJets)[ind2].pt());
2823  //}
2824  if(isPFJet_){
2825  mCHFrac = map_of_MEs[DirName+"/"+"CHFrac"]; if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->Fill((*pfJets)[ind1].chargedHadronEnergyFraction());
2826  mNHFrac = map_of_MEs[DirName+"/"+"NHFrac"]; if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->Fill((*pfJets)[ind1].neutralHadronEnergyFraction());
2827  mPhFrac = map_of_MEs[DirName+"/"+"PhFrac"]; if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->Fill((*pfJets)[ind1].neutralEmEnergyFraction());
2828  mHFEMFrac = map_of_MEs[DirName+"/"+"HFEMFrac"]; if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->Fill((*pfJets)[ind1].HFEMEnergyFraction());
2829  mHFHFrac = map_of_MEs[DirName+"/"+"HFHFrac"]; if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->Fill((*pfJets)[ind1].HFHadronEnergyFraction());
2830 
2831  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[0].pt()/(*pfJets)[ind1].pt());
2832  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),recoJets[0].pt()/(*pfJets)[ind1].pt());
2833  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),recoJets[0].pt()/(*pfJets)[ind1].pt());
2834  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[1].pt()/(*pfJets)[ind2].pt());
2835  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[1].eta(),recoJets[1].pt()/(*pfJets)[ind2].pt());
2836  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[1].pt(),recoJets[1].pt()/(*pfJets)[ind2].pt());
2837 
2838  mChargedMultiplicity = map_of_MEs[DirName+"/"+"ChargedMultiplicity"]; if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ind1].chargedMultiplicity());
2839  mNeutralMultiplicity = map_of_MEs[DirName+"/"+"NeutralMultiplicity"]; if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ind1].neutralMultiplicity());
2840  mMuonMultiplicity = map_of_MEs[DirName+"/"+"MuonMultiplicity"]; if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*pfJets)[ind1].muonMultiplicity());
2841  //Filling variables for second jet
2842  mCHFrac = map_of_MEs[DirName+"/"+"CHFrac"]; if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->Fill((*pfJets)[ind2].chargedHadronEnergyFraction());
2843  mNHFrac = map_of_MEs[DirName+"/"+"NHFrac"]; if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->Fill((*pfJets)[ind2].neutralHadronEnergyFraction());
2844  mPhFrac = map_of_MEs[DirName+"/"+"PhFrac"]; if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->Fill((*pfJets)[ind2].neutralEmEnergyFraction());
2845  mHFEMFrac = map_of_MEs[DirName+"/"+"HFEMFrac"]; if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->Fill((*pfJets)[ind2].HFEMEnergyFraction());
2846  mHFHFrac = map_of_MEs[DirName+"/"+"HFHFrac"]; if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->Fill((*pfJets)[ind2].HFHadronEnergyFraction());
2847 
2848  mNeutralFraction = map_of_MEs[DirName+"/"+"NeutralConstituentsFraction"];if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((double)(*pfJets)[ind1].neutralMultiplicity()/(double)(*pfJets)[ind1].nConstituents());
2849 
2850  mChargedMultiplicity = map_of_MEs[DirName+"/"+"ChargedMultiplicity"]; if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ind2].chargedMultiplicity());
2851  mNeutralMultiplicity = map_of_MEs[DirName+"/"+"NeutralMultiplicity"]; if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ind2].neutralMultiplicity());
2852  mMuonMultiplicity = map_of_MEs[DirName+"/"+"MuonMultiplicity"]; if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*pfJets)[ind2].muonMultiplicity());
2853 
2854  //now fill PFJet profiles for leading jet
2855  mCHFrac_profile = map_of_MEs[DirName+"/"+"CHFrac_profile"]; if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->Fill(numPV, (*pfJets)[ind1].chargedHadronEnergyFraction());
2856  mNHFrac_profile = map_of_MEs[DirName+"/"+"NHFrac_profile"]; if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->Fill(numPV, (*pfJets)[ind1].neutralHadronEnergyFraction());
2857  mPhFrac_profile = map_of_MEs[DirName+"/"+"PhFrac_profile"]; if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->Fill(numPV, (*pfJets)[ind1].neutralEmEnergyFraction());
2858  mHFEMFrac_profile = map_of_MEs[DirName+"/"+"HFEMFrac_profile"]; if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->Fill(numPV, (*pfJets)[ind1].HFEMEnergyFraction());
2859  mHFHFrac_profile = map_of_MEs[DirName+"/"+"HFHFrac_profile"]; if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->Fill(numPV, (*pfJets)[ind1].HFHadronEnergyFraction());
2860 
2861  mNeutralFraction = map_of_MEs[DirName+"/"+"NeutralConstituentsFraction"];if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((double)(*pfJets)[ind2].neutralMultiplicity()/(double)(*pfJets)[ind2].nConstituents());
2862 
2863  mChargedMultiplicity_profile = map_of_MEs[DirName+"/"+"ChargedMultiplicity_profile"]; if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ind1].chargedMultiplicity());
2864  mNeutralMultiplicity_profile = map_of_MEs[DirName+"/"+"NeutralMultiplicity_profile"]; if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ind1].neutralMultiplicity());
2865  mMuonMultiplicity_profile = map_of_MEs[DirName+"/"+"MuonMultiplicity_profile"]; if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity->Fill(numPV, (*pfJets)[ind1].muonMultiplicity());
2866  //now fill PFJet profiles for second leading jet
2867  mCHFrac_profile = map_of_MEs[DirName+"/"+"CHFrac_profile"]; if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->Fill(numPV, (*pfJets)[ind2].chargedHadronEnergyFraction());
2868  mNHFrac_profile = map_of_MEs[DirName+"/"+"NHFrac_profile"]; if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->Fill(numPV, (*pfJets)[ind2].neutralHadronEnergyFraction());
2869  mPhFrac_profile = map_of_MEs[DirName+"/"+"PhFrac_profile"]; if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->Fill(numPV, (*pfJets)[ind2].neutralEmEnergyFraction());
2870  mHFEMFrac_profile = map_of_MEs[DirName+"/"+"HFEMFrac_profile"]; if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->Fill(numPV, (*pfJets)[ind2].HFEMEnergyFraction());
2871  mHFHFrac_profile = map_of_MEs[DirName+"/"+"HFHFrac_profile"]; if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->Fill(numPV, (*pfJets)[ind2].HFHadronEnergyFraction());
2872 
2873  mChargedMultiplicity_profile = map_of_MEs[DirName+"/"+"ChargedMultiplicity_profile"]; if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].chargedMultiplicity());
2874  mNeutralMultiplicity_profile = map_of_MEs[DirName+"/"+"NeutralMultiplicity_profile"]; if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].neutralMultiplicity());
2875  mMuonMultiplicity_profile = map_of_MEs[DirName+"/"+"MuonMultiplicity_profile"]; if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].muonMultiplicity());
2876 
2877 
2878  int QGmulti=-1;
2879  float QGLikelihood=-10;
2880  float QGptD=-10;
2881  float QGaxis2=-10;
2882  if(fill_CHS_histos){
2883  reco::PFJetRef pfjetref(pfJets,ind1);
2884  QGmulti=(*qgMultiplicity)[pfjetref];
2885  QGLikelihood=(*qgLikelihood)[pfjetref];
2886  QGptD=(*qgptD)[pfjetref];
2887  QGaxis2=(*qgaxis2)[pfjetref];
2888  if(fabs(recoJets[0].eta())<1.3){//barrel jets
2889  //fractions for barrel
2890  if (recoJets[0].pt()>=20. && recoJets[0].pt()<=50.) {
2895  }
2896  if (recoJets[0].pt()>50. && recoJets[0].pt()<=140.) {
2901  }
2902  if (recoJets[0].pt()>140.) {
2907  }
2908  }else if(fabs(recoJets[0].eta())<3.0){//endcap jets
2909  if (recoJets[0].pt()>20. && recoJets[0].pt()<=50.) {
2914  }
2915  if (recoJets[0].pt()>50. && recoJets[0].pt()<=140.) {
2920  }
2921  if (recoJets[0].pt()>140.) {
2926  }
2927  }else{
2928  if (recoJets[0].pt()>20. && recoJets[0].pt()<=50.) {
2933  }
2934  if (recoJets[0].pt()>50. && recoJets[0].pt()<=140.) {
2939  }
2940  if (recoJets[0].pt()>140.) {
2945  }
2946  }//done for first jet
2947  reco::PFJetRef pfjetref1(pfJets,ind2);
2948  QGmulti=(*qgMultiplicity)[pfjetref1];
2949  QGLikelihood=(*qgLikelihood)[pfjetref1];
2950  QGptD=(*qgptD)[pfjetref1];
2951  QGaxis2=(*qgaxis2)[pfjetref1];
2952  if(fabs(recoJets[1].eta())<1.3){//barrel jets
2953  //fractions for barrel
2954  if (recoJets[1].pt()>=20. && recoJets[1].pt()<=50.) {
2959  }
2960  if (recoJets[1].pt()>50. && recoJets[1].pt()<=140.) {
2965  }
2966  if (recoJets[1].pt()>140.) {
2971  }
2972  }else if(fabs(recoJets[1].eta())<3.0){//endcap jets
2973  if (recoJets[1].pt()>20. && recoJets[1].pt()<=50.) {
2978  }
2979  if (recoJets[1].pt()>50. && recoJets[1].pt()<=140.) {
2984  }
2985  if (recoJets[1].pt()>140.) {
2990  }
2991  }else{
2992  if (recoJets[1].pt()>20. && recoJets[1].pt()<=50.) {
2997  }
2998  if (recoJets[1].pt()>50. && recoJets[1].pt()<=140.) {
3003  }
3004  if (recoJets[1].pt()>140.) {
3009  }
3010  }//deal with second jet
3011  }//fill quark gluon tagged variables
3012  }//pfjet
3013  if(isMiniAODJet_){
3014 
3015 
3016  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ind1].jecFactor("Uncorrected"));
3017  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),1./(*patJets)[ind1].jecFactor("Uncorrected"));
3018  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),1./(*patJets)[ind1].jecFactor("Uncorrected"));
3019  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ind2].jecFactor("Uncorrected"));
3020  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),1./(*patJets)[ind2].jecFactor("Uncorrected"));
3021  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),1./(*patJets)[ind2].jecFactor("Uncorrected"));
3022 
3023  // In MINIAOD, can drop PFSpecifics just to save space, so check they are available.
3024  if ( (*patJets)[ind1].hasPFSpecific() ) {
3025  mCHFrac = map_of_MEs[DirName+"/"+"CHFrac"]; if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->Fill((*patJets)[ind1].chargedHadronEnergyFraction());
3026  mNHFrac = map_of_MEs[DirName+"/"+"NHFrac"]; if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->Fill((*patJets)[ind1].neutralHadronEnergyFraction());
3027  mPhFrac = map_of_MEs[DirName+"/"+"PhFrac"]; if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->Fill((*patJets)[ind1].neutralEmEnergyFraction());
3028  mHFEMFrac = map_of_MEs[DirName+"/"+"HFEMFrac"]; if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->Fill((*patJets)[ind1].HFEMEnergyFraction());
3029  mHFHFrac = map_of_MEs[DirName+"/"+"HFHFrac"]; if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->Fill((*patJets)[ind1].HFHadronEnergyFraction());
3030  mChargedMultiplicity = map_of_MEs[DirName+"/"+"ChargedMultiplicity"]; if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*patJets)[ind1].chargedMultiplicity());
3031  mNeutralMultiplicity = map_of_MEs[DirName+"/"+"NeutralMultiplicity"]; if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*patJets)[ind1].neutralMultiplicity());
3032  mMuonMultiplicity = map_of_MEs[DirName+"/"+"MuonMultiplicity"]; if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*patJets)[ind1].muonMultiplicity());
3033  mNeutralFraction = map_of_MEs[DirName+"/"+"NeutralConstituentsFraction"];if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((double)(*patJets)[ind1].neutralMultiplicity()/(double)(*patJets)[ind1].nConstituents());
3034  mCHFrac_profile = map_of_MEs[DirName+"/"+"CHFrac_profile"]; if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->Fill(numPV, (*patJets)[ind1].chargedHadronEnergyFraction());
3035  mNHFrac_profile = map_of_MEs[DirName+"/"+"NHFrac_profile"]; if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->Fill(numPV, (*patJets)[ind1].neutralHadronEnergyFraction());
3036  mPhFrac_profile = map_of_MEs[DirName+"/"+"PhFrac_profile"]; if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->Fill(numPV, (*patJets)[ind1].neutralEmEnergyFraction());
3037  mHFEMFrac_profile = map_of_MEs[DirName+"/"+"HFEMFrac_profile"]; if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->Fill(numPV, (*patJets)[ind1].HFEMEnergyFraction());
3038  mHFHFrac_profile = map_of_MEs[DirName+"/"+"HFHFrac_profile"]; if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->Fill(numPV, (*patJets)[ind1].HFHadronEnergyFraction());
3039  mChargedMultiplicity_profile = map_of_MEs[DirName+"/"+"ChargedMultiplicity_profile"]; if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*patJets)[ind1].chargedMultiplicity());
3040  mNeutralMultiplicity_profile = map_of_MEs[DirName+"/"+"NeutralMultiplicity_profile"]; if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*patJets)[ind1].neutralMultiplicity());
3041  mMuonMultiplicity_profile = map_of_MEs[DirName+"/"+"MuonMultiplicity_profile"]; if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity->Fill(numPV, (*patJets)[ind1].muonMultiplicity());
3042 
3043  }
3044 
3045  // In MINIAOD, can drop PFSpecifics just to save space, so check they are available.
3046  //Filling variables for second jet
3047  if ( (*patJets)[ind2].hasPFSpecific() ) {
3048  mCHFrac = map_of_MEs[DirName+"/"+"CHFrac"]; if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->Fill((*patJets)[ind2].chargedHadronEnergyFraction());
3049  mNHFrac = map_of_MEs[DirName+"/"+"NHFrac"]; if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->Fill((*patJets)[ind2].neutralHadronEnergyFraction());
3050  mPhFrac = map_of_MEs[DirName+"/"+"PhFrac"]; if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->Fill((*patJets)[ind2].neutralEmEnergyFraction());
3051  mHFEMFrac = map_of_MEs[DirName+"/"+"HFEMFrac"]; if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->Fill((*patJets)[ind2].HFEMEnergyFraction());
3052  mHFHFrac = map_of_MEs[DirName+"/"+"HFHFrac"]; if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->Fill((*patJets)[ind2].HFHadronEnergyFraction());
3053 
3054  mChargedMultiplicity = map_of_MEs[DirName+"/"+"ChargedMultiplicity"]; if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*patJets)[ind2].chargedMultiplicity());
3055  mNeutralMultiplicity = map_of_MEs[DirName+"/"+"NeutralMultiplicity"]; if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*patJets)[ind2].neutralMultiplicity());
3056  mMuonMultiplicity = map_of_MEs[DirName+"/"+"MuonMultiplicity"]; if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*patJets)[ind2].muonMultiplicity());
3057 
3058  mNeutralFraction = map_of_MEs[DirName+"/"+"NeutralConstituentsFraction"];if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((double)(*patJets)[ind2].neutralMultiplicity()/(double)(*patJets)[ind2].nConstituents());
3059 
3060  //now fill PATJet profiles for second leading jet
3061  mCHFrac_profile = map_of_MEs[DirName+"/"+"CHFrac_profile"]; if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->Fill(numPV, (*patJets)[ind2].chargedHadronEnergyFraction());
3062  mNHFrac_profile = map_of_MEs[DirName+"/"+"NHFrac_profile"]; if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->Fill(numPV, (*patJets)[ind2].neutralHadronEnergyFraction());
3063  mPhFrac_profile = map_of_MEs[DirName+"/"+"PhFrac_profile"]; if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->Fill(numPV, (*patJets)[ind2].neutralEmEnergyFraction());
3064  mHFEMFrac_profile = map_of_MEs[DirName+"/"+"HFEMFrac_profile"]; if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->Fill(numPV, (*patJets)[ind2].HFEMEnergyFraction());
3065  mHFHFrac_profile = map_of_MEs[DirName+"/"+"HFHFrac_profile"]; if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->Fill(numPV, (*patJets)[ind2].HFHadronEnergyFraction());
3066 
3067  mChargedMultiplicity_profile = map_of_MEs[DirName+"/"+"ChargedMultiplicity_profile"]; if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*patJets)[ind2].chargedMultiplicity());
3068  mNeutralMultiplicity_profile = map_of_MEs[DirName+"/"+"NeutralMultiplicity_profile"]; if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*patJets)[ind2].neutralMultiplicity());
3069  mMuonMultiplicity_profile = map_of_MEs[DirName+"/"+"MuonMultiplicity_profile"]; if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile->Fill(numPV, (*patJets)[ind2].muonMultiplicity());
3070  }
3071  }
3072 
3073 
3074  //fill histos for first jet
3075  mPt = map_of_MEs[DirName+"/"+"Pt"]; if (mPt && mPt->getRootObject()) mPt->Fill (recoJets[0].pt());
3076  mEta = map_of_MEs[DirName+"/"+"Eta"]; if (mEta && mEta->getRootObject()) mEta->Fill (recoJets[0].eta());
3077  mPhi = map_of_MEs[DirName+"/"+"Phi"]; if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJets[0].phi());
3078  mPhiVSEta = map_of_MEs[DirName+"/"+"PhiVSEta"]; if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(recoJets[0].eta(),recoJets[0].phi());
3079  //if(!isJPTJet_){
3080  mConstituents = map_of_MEs[DirName+"/"+"Constituents"]; if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (recoJets[0].nConstituents());
3081  //}
3082  mPt = map_of_MEs[DirName+"/"+"Pt"]; if (mPt && mPt->getRootObject()) mPt->Fill (recoJets[1].pt());
3083  mEta = map_of_MEs[DirName+"/"+"Eta"]; if (mEta && mEta->getRootObject()) mEta->Fill (recoJets[1].eta());
3084  mPhi = map_of_MEs[DirName+"/"+"Phi"]; if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJets[1].phi());
3085  mPhiVSEta = map_of_MEs[DirName+"/"+"PhiVSEta"]; if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(recoJets[1].eta(),recoJets[1].phi());
3086  //if(!isJPTJet_){
3087  mConstituents = map_of_MEs[DirName+"/"+"Constituents"]; if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (recoJets[1].nConstituents());
3088  //}
3089  //PV profiles
3090  mPt_profile = map_of_MEs[DirName+"/"+"Pt_profile"]; if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->Fill(numPV, recoJets[0].pt());
3091  mEta_profile = map_of_MEs[DirName+"/"+"Eta_profile"]; if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->Fill(numPV, recoJets[0].eta());
3092  mPhi_profile = map_of_MEs[DirName+"/"+"Phi_profile"]; if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->Fill(numPV, recoJets[0].phi());
3093  //if(!isJPTJet_){
3094  mConstituents_profile = map_of_MEs[DirName+"/"+"Constituents_profile"]; if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, recoJets[0].nConstituents());
3095  //}
3096  mPt_profile = map_of_MEs[DirName+"/"+"Pt_profile"]; if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->Fill(numPV, recoJets[1].pt());
3097  mEta_profile = map_of_MEs[DirName+"/"+"Eta_profile"]; if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->Fill(numPV, recoJets[1].eta());
3098  mPhi_profile = map_of_MEs[DirName+"/"+"Phi_profile"]; if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->Fill(numPV, recoJets[1].phi());
3099  //if(!isJPTJet_){
3100  mConstituents_profile = map_of_MEs[DirName+"/"+"Constituents_profile"]; if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, recoJets[1].nConstituents());
3101  //}
3102  if (fabs(recoJets[0].eta() < 1.4)) {
3103  double pt_dijet = (recoJets[0].pt() + recoJets[1].pt())/2;
3104  if (dphi > 2.7) {//cut even toughter on dijet balance
3105  double pt_probe;
3106  double pt_barrel;
3107  int jet1, jet2;
3108  //int randJet = rand() % 2;
3109  int randJet =iEvent.id().event()%2;
3110  if (fabs(recoJets[1].eta() < 1.4)) {
3111  if (randJet) {
3112  jet1 = 0;
3113  jet2 = 1;
3114  }
3115  else {
3116  jet1 = 1;
3117  jet2 = 0;
3118  }
3119  // ***Di-Jet Asymmetry****
3120  // * leading jets eta < 1.4
3121  // * leading jets dphi > 2.7
3122  // * pt_third jet < threshold
3123  // * A = (pt_1 - pt_2)/(pt_1 + pt_2)
3124  // * jets 1 and two are randomly ordered
3125  // **
3126  bool thirdJetCut = true;
3127  //that doesn't make any sense -> imagine you have 5 jets,
3128  //jet 3 is quite hard (almost as hard as the second jet, i.e. 200/80/79/20/15, cutoff is 30
3129  //the 4th and 5th jet are soft enough -> then you would fill the asymmetry twice,
3130  //although jet 2 and 3 are basically identical
3131  //do third jet relative to second jet
3132  //JME-10-014 suggests pt3/pt_dijet<0.15
3133  if(ind3>0){
3134  if (pt3 > asymmetryThirdJetCut_){
3135  thirdJetCut=false;
3136  }
3137  }
3138  if(thirdJetCut){
3139  double dijetAsymmetry =(recoJets[jet1].pt() - recoJets[jet2].pt()) / (recoJets[jet1].pt() + recoJets[jet2].pt());
3140  mDijetAsymmetry = map_of_MEs[DirName+"/"+"DijetAsymmetry"]; if (mDijetAsymmetry && mDijetAsymmetry->getRootObject()) mDijetAsymmetry->Fill(dijetAsymmetry);
3141  }// end restriction on third jet pt in asymmetry calculation
3142 
3143  }
3144  else {
3145  jet1 = 0;
3146  jet2 = 1;
3147  }
3148 
3149  pt_barrel = recoJets[jet1].pt();
3150  pt_probe = recoJets[jet2].pt();
3151 
3152  //dijet balance cuts
3153  // ***Di-Jet Balance****
3154  // * pt_dijet = (pt_probe+pt_barrel)/2
3155  // * leading jets dphi > 2.7
3156  // * reject evnets where pt_third/pt_dijet > 0.2
3157  // * pv selection
3158  // * B = (pt_probe - pt_barrel)/pt_dijet
3159  // * select probe randomly from 2 jets if both leading jets are in the barrel
3160  bool thirdJetCut = true;
3161  if(ind3>0){
3162  if (pt3/pt_dijet > balanceThirdJetCut_){
3163  thirdJetCut = false;
3164  }
3165  }
3166  if (thirdJetCut) {
3167  double dijetBalance = (pt_probe - pt_barrel) / pt_dijet;
3168  mDijetBalance = map_of_MEs[DirName+"/"+"DijetBalance"]; if (mDijetBalance && mDijetBalance->getRootObject()) mDijetBalance->Fill(dijetBalance);
3169  }// end restriction on third jet pt ratio in balance calculation
3170 
3171  }// dPhi > 2.7 for dijetbalance and asymmetrie
3172  }//leading jet in barrel
3173  }//DPhi cut of 2.1
3174  }//dijet selection, check if both leading jets are IDed
3175  //now do the ZJets selection -> pass_Z_selection cuts already on the Z-pt>30 GeV
3176  if(pass_Z_selection && ind1_mu_vetoed>=0 && pt1_mu_vetoed>12 && cleaned_first_jet_mu_vetoed && isPFJet_){
3177  bool pass_second_jet_mu_vetoed=false;
3178  if(cleaned_second_jet_mu_vetoed){
3179  if(ind2_mu_vetoed>=0 && pt2_mu_vetoed/zCand.Pt()<0.2){
3180  pass_second_jet_mu_vetoed=true;
3181  }
3182  }
3183  if(pass_second_jet_mu_vetoed){
3184  Jet recoJet1;
3185  if(isPFJet_){
3186  recoJet1=(*pfJets)[ind1_mu_vetoed];
3187  }
3188  if (pass_correction_flag && !isMiniAODJet_) {
3189  double scale=1;
3190  if (isCaloJet_){
3191  scale = jetCorr->correction((*caloJets)[ind1_mu_vetoed]);
3192  }
3193  if (isPFJet_){
3194  scale = jetCorr->correction((*pfJets)[ind1_mu_vetoed]);
3195  }
3196  recoJet1.scaleEnergy(scale);
3197  }
3198  double dphi=fabs(recoJet1.phi()-zCand.Phi());
3199  if(dphi>acos(-1.)){
3200  dphi=2*acos(-1.)-dphi;
3201  }
3202  if(jetCleaningFlag_){
3203  DirName = "JetMET/Jet/Cleaned"+mInputCollection_.label()+"/ZJets";
3204  }
3205  mDPhiZJet = map_of_MEs[DirName+"/"+"DPhiZJ"]; if (mDPhiZJet && mDPhiZJet->getRootObject()) mDPhiZJet ->Fill(dphi);
3206  if(fabs(dphi-acos(-1.))<0.34){
3207  //get now MET collections for MPF studies
3210  //edm::Handle<pat::METCollection> patmetcoll;
3211  const MET *met=nullptr;
3212  if(isCaloJet_){
3213  iEvent.getByToken(caloMetToken_, calometcoll);
3214  if(!calometcoll.isValid()) return;
3215  met=&(calometcoll->front());
3216  }
3217  if(isPFJet_){
3218  iEvent.getByToken(pfMetToken_, pfmetcoll);
3219  if(!pfmetcoll.isValid()) return;
3220  met=&(pfmetcoll->front());
3221  }
3222  //if(isMiniAODJet_){
3223  //iEvent.getByToken(patMetToken_, patmetcoll);
3224  //if(!patmetcoll.isValid()) return;
3225  //met=&(patmetcoll->front());
3226  //}
3227  mZMass = map_of_MEs[DirName+"/"+"DiMuonMass"]; if(mZMass && mZMass->getRootObject()) mZMass->Fill(zCand.M());
3228  mZJetAsymmetry = map_of_MEs[DirName+"/"+"ZJetAsymmetry"]; if(mZJetAsymmetry && mZJetAsymmetry->getRootObject()) mZJetAsymmetry->Fill((zCand.Pt()-recoJet1.pt())/(zCand.Pt()+recoJet1.pt()));
3229  if(recoJet1.pt()>20){
3230  mPt = map_of_MEs[DirName+"/"+"Pt"]; if (mPt && mPt->getRootObject()) mPt->Fill (recoJet1.pt());
3231  mEta = map_of_MEs[DirName+"/"+"Eta"]; if (mEta && mEta->getRootObject()) mEta->Fill (recoJet1.eta());
3232  mPhi = map_of_MEs[DirName+"/"+"Phi"]; if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJet1.phi());
3233  //PV profiles
3234  mPt_profile = map_of_MEs[DirName+"/"+"Pt_profile"]; if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->Fill(numPV, recoJet1.pt());
3235  mEta_profile = map_of_MEs[DirName+"/"+"Eta_profile"]; if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->Fill(numPV, recoJet1.eta());
3236  mPhi_profile = map_of_MEs[DirName+"/"+"Phi_profile"]; if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->Fill(numPV, recoJet1.phi());
3239  mJetEnergyCorr = map_of_MEs[DirName+"/"+"JetEnergyCorr"]; if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJet1.pt()/(*pfJets)[ind1_mu_vetoed].pt());
3240  mJetEnergyCorrVSEta = map_of_MEs[DirName+"/"+"JetEnergyCorrVSEta"]; if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJet1.eta(),recoJet1.pt()/(*pfJets)[ind1_mu_vetoed].pt());
3241  mJetEnergyCorrVSPt = map_of_MEs[DirName+"/"+"JetEnergyCorrVSPt"]; if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJet1.pt(),recoJet1.pt()/(*pfJets)[ind1_mu_vetoed].pt());
3242  mCHFrac = map_of_MEs[DirName+"/"+"CHFrac"]; if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->Fill((*pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
3243  mNHFrac = map_of_MEs[DirName+"/"+"NHFrac"]; if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->Fill((*pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
3244  mPhFrac = map_of_MEs[DirName+"/"+"PhFrac"]; if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->Fill((*pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
3245  mHFEMFrac = map_of_MEs[DirName+"/"+"HFEMFrac"]; if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->Fill((*pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
3246  mHFHFrac = map_of_MEs[DirName+"/"+"HFHFrac"]; if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->Fill((*pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
3247  //now fill PFJet profiles for second leading jet
3248  mCHFrac_profile = map_of_MEs[DirName+"/"+"CHFrac_profile"]; if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->Fill(numPV, (*pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
3249  mNHFrac_profile = map_of_MEs[DirName+"/"+"NHFrac_profile"]; if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->Fill(numPV, (*pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
3250  mPhFrac_profile = map_of_MEs[DirName+"/"+"PhFrac_profile"]; if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->Fill(numPV, (*pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
3251  mHFEMFrac_profile = map_of_MEs[DirName+"/"+"HFEMFrac_profile"]; if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->Fill(numPV, (*pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
3252  mHFHFrac_profile = map_of_MEs[DirName+"/"+"HFHFrac_profile"]; if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->Fill(numPV, (*pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
3253  }
3254  double MPF=1.+(met->px()*zCand.Px()+met->py()*zCand.Py())/(zCand.Pt()*zCand.Pt());
3255  if(fabs(recoJet1.eta())<1.3){//barrel jets
3258  if(zCand.Pt()<90){//lower cut on 30 already right from the start
3262  //mMPF_J_Barrel = map_of_MEs[DirName+"/"+"MPF_J_Barrel"]; if(mMPF_J_Barrel && mMPF_J_Barrel->getRootObject())mMPF_J_Barrel->Fill(MPF);
3263  }else if (zCand.Pt()<140){
3267  }else{
3271  }
3272  if(zCand.Pt()>30){
3273  if(zCand.Pt()<55){
3275  }else if (zCand.Pt()<75){
3277  }else if (zCand.Pt()<150){
3279  }else if (zCand.Pt()<290){
3281  }else{
3283  }
3284  }
3285  }else if(fabs(recoJet1.eta())<3.0){//endcap jets
3288  if(zCand.Pt()<90){//lower cut on 30 already right from the start
3292  }else if (zCand.Pt()<140){
3296  }else{
3300  }
3301  if(zCand.Pt()>30){
3302  if(zCand.Pt()<55){
3304  }else if (zCand.Pt()<75){
3306  }else if (zCand.Pt()<150){
3308  }else if (zCand.Pt()<290){
3310  }else{
3312  }
3313  }
3314  }else{//forward jets
3317  if(zCand.Pt()<90){//lower cut on 30 already right from the start
3321  }else if (zCand.Pt()<140){
3325  }else{
3329  }
3330  if(zCand.Pt()>30){
3331  if(zCand.Pt()<55){
3333  }else if (zCand.Pt()<100){
3335  }else{
3337  }
3338  }
3339  }
3340  int QGmulti=-1;
3341  float QGLikelihood=-10;
3342  float QGptD=-10;
3343  float QGaxis2=-10;
3344  if(fill_CHS_histos){
3345  reco::PFJetRef pfjetref(pfJets, ind1_mu_vetoed);
3346  QGmulti=(*qgMultiplicity)[pfjetref];
3347  QGLikelihood=(*qgLikelihood)[pfjetref];
3348  QGptD=(*qgptD)[pfjetref];
3349  QGaxis2=(*qgaxis2)[pfjetref];
3350  if(fabs(recoJet1.eta())<1.3){//barrel jets
3351  //fractions for barrel
3352  if (recoJet1.pt()>=20. && recoJet1.pt()<=50.) {
3357  }
3358  if (recoJet1.pt()>50. && recoJet1.pt()<=140.) {
3363  }
3364  if (recoJet1.pt()>140.) {
3369  }
3370  }else if(fabs(recoJet1.eta())<3.0){//endcap jets
3371  if (recoJet1.pt()>20. && recoJet1.pt()<=50.) {
3376  }
3377  if (recoJet1.pt()>50. && recoJet1.pt()<=140.) {
3382  }
3383  if (recoJet1.pt()>140.) {
3388  }
3389  }else{
3390  if (recoJet1.pt()>20. && recoJet1.pt()<=50.) {
3395  }
3396  if (recoJet1.pt()>50. && recoJet1.pt()<=140.) {
3401  }
3402  if (recoJet1.pt()>140.) {
3407  }
3408  }
3409  }//fill quark gluon tagged variables
3410  }//jet back to back to Z
3411  }//2nd jet veto
3412  }//Z selection + hard leading jet
3413 }
#define LogDebug(id)
MonitorElement * mqgLikelihood_lowPt_Barrel
Definition: JetAnalyzer.h:513
edm::EDGetTokenT< edm::ValueMap< float > > qgaxis2Token_
Definition: JetAnalyzer.h:139
MonitorElement * mCHEn_mediumPt_Barrel
Definition: JetAnalyzer.h:399
MonitorElement * mEFrac_EndCap
Definition: JetAnalyzer.h:251
MonitorElement * mNJets
Definition: JetAnalyzer.h:275
MonitorElement * mNHEn_lowPt_Barrel
Definition: JetAnalyzer.h:395
MonitorElement * mJetZBalance_lowZPt_J_Barrel
Definition: JetAnalyzer.h:754
MonitorElement * mMass_lowPt_Forward
Definition: JetAnalyzer.h:465
EventNumber_t event() const
Definition: EventID.h:41
MonitorElement * mMass_mediumPt_Forward
Definition: JetAnalyzer.h:468
MonitorElement * mePtForwardPlus_BXm1Empty
Definition: JetAnalyzer.h:622
MonitorElement * mMass_highPt_Forward
Definition: JetAnalyzer.h:471
MonitorElement * mHadEnergyInHB
Definition: JetAnalyzer.h:372
MonitorElement * mDeltaPt_Z_j1_over_ZPt_290_J_Barrel
Definition: JetAnalyzer.h:791
MonitorElement * mHFEEn_highPt_Forward
Definition: JetAnalyzer.h:494
bool bypassAllPVChecks_
Definition: JetAnalyzer.h:344
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel
Definition: JetAnalyzer.h:787
MonitorElement * mfRBX
Definition: JetAnalyzer.h:380
MonitorElement * mSubJet1_SoftDrop_phi_boosted
Definition: JetAnalyzer.h:736
MonitorElement * mMultiplicityQG_highPt_Forward
Definition: JetAnalyzer.h:546
MonitorElement * mCHEn_highPt_Barrel
Definition: JetAnalyzer.h:404
MonitorElement * mPhi_Forward
Definition: JetAnalyzer.h:254
MonitorElement * mChMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:415
MonitorElement * mLooseCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:312
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap
Definition: JetAnalyzer.h:792
MonitorElement * mJetZBalance_lowZPt_J_Forward
Definition: JetAnalyzer.h:760
MonitorElement * mChMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:476
MonitorElement * mNeutralEmEnergy
Definition: JetAnalyzer.h:504
MonitorElement * mtau2_over_tau1
Definition: JetAnalyzer.h:670
static bool jetSortingRule(reco::Jet x, reco::Jet y)
Definition: JetAnalyzer.h:109
double eta() const final
momentum pseudorapidity
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward
Definition: JetAnalyzer.h:798
MonitorElement * mPhEn_mediumPt_EndCap
Definition: JetAnalyzer.h:455
virtual void scaleEnergy(double fScale)
scale energy of the jet
MonitorElement * mPt_Lo
Definition: JetAnalyzer.h:285
MonitorElement * mtau2_over_tau1_boosted
Definition: JetAnalyzer.h:709
MonitorElement * mePhFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:653
MonitorElement * mJetZBalance_highZPt_J_Barrel
Definition: JetAnalyzer.h:756
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
MonitorElement * mSubJet2_SoftDrop_phi_boosted
Definition: JetAnalyzer.h:740
MonitorElement * mEmEnergyInHF
Definition: JetAnalyzer.h:377
MonitorElement * mtau3_over_tau2
Definition: JetAnalyzer.h:671
bool jetCleaningFlag_
Definition: JetAnalyzer.h:359
MonitorElement * mPhiFirst
Definition: JetAnalyzer.h:280
MonitorElement * mCutPUJIDDiscriminant_lowPt_Forward
Definition: JetAnalyzer.h:320
MonitorElement * mMPF_mediumZPt_J_Forward
Definition: JetAnalyzer.h:785
MonitorElement * mNeutralHadronEnergy
Definition: JetAnalyzer.h:501
MonitorElement * mHFEFrac_mediumPt_Forward
Definition: JetAnalyzer.h:486
MonitorElement * mPt_Forward
Definition: JetAnalyzer.h:253
MonitorElement * mCHFrac_highPt_EndCap
Definition: JetAnalyzer.h:444
MonitorElement * mNHFrac_highPt_EndCap
Definition: JetAnalyzer.h:445
bool fill_jet_high_level_histo
Definition: JetAnalyzer.h:807
MonitorElement * mqgLikelihood_highPt_EndCap
Definition: JetAnalyzer.h:534
MonitorElement * mChargedEmEnergy_profile
Definition: JetAnalyzer.h:562
float fHPD
Definition: JetID.h:45
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_Barrel
Definition: JetAnalyzer.h:769
edm::EDGetTokenT< reco::JetCorrector > jetCorrectorToken_
Definition: JetAnalyzer.h:156
std::vector< std::string > lowPtJetExpr_
Definition: JetAnalyzer.h:357
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
MonitorElement * mHFrac_Forward
Definition: JetAnalyzer.h:256
MonitorElement * mEmEnergyInEE
Definition: JetAnalyzer.h:376
MonitorElement * mMass_Barrel
Definition: JetAnalyzer.h:746
MonitorElement * mMass_Forward
Definition: JetAnalyzer.h:748
MonitorElement * mHFHFrac_highPt_Forward
Definition: JetAnalyzer.h:489
MonitorElement * meNHFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:646
MonitorElement * mHFHEn_lowPt_Forward
Definition: JetAnalyzer.h:491
TObject * getRootObject() const
MonitorElement * mMultiplicityQG_mediumPt_EndCap
Definition: JetAnalyzer.h:529
MonitorElement * mNHFrac_lowPt_EndCap
Definition: JetAnalyzer.h:439
MonitorElement * mCHFrac_lowPt_Barrel
Definition: JetAnalyzer.h:385
edm::EDGetTokenT< edm::ValueMap< int > > cutBasedPUIDToken_
Definition: JetAnalyzer.h:133
MonitorElement * mElEn_highPt_Barrel
Definition: JetAnalyzer.h:407
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
Definition: JetAnalyzer.h:122
MonitorElement * mHFHFrac
Definition: JetAnalyzer.h:575
MonitorElement * jetME
Definition: JetAnalyzer.h:218
MonitorElement * mPrunedMass_boosted
Definition: JetAnalyzer.h:706
MonitorElement * mPhEn_lowPt_EndCap
Definition: JetAnalyzer.h:450
MonitorElement * mSubJet1_SoftDrop_mass
Definition: JetAnalyzer.h:698
int m_bitAlgTechTrig_
Definition: JetAnalyzer.h:215
double balanceThirdJetCut_
Definition: JetAnalyzer.h:210
MonitorElement * mMediumCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:314
MonitorElement * mHFEEn_lowPt_Forward
Definition: JetAnalyzer.h:490
edm::EDGetTokenT< edm::ValueMap< float > > qgLikelihoodToken_
Definition: JetAnalyzer.h:137
MonitorElement * meNHFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:650
MonitorElement * mPhi_EndCap
Definition: JetAnalyzer.h:248
double px() const final
x coordinate of momentum vector
JetIDSelectionFunctor jetIDFunctor
Definition: JetAnalyzer.h:162
MonitorElement * mPrunedMass
Definition: JetAnalyzer.h:667
MonitorElement * mNHFrac
Definition: JetAnalyzer.h:572
bool accept() const
Has at least one path accepted the event?
MonitorElement * mMPF_J_EndCap
Definition: JetAnalyzer.h:767
float restrictedEMF
Definition: JetID.h:52
MonitorElement * mqgLikelihood_mediumPt_Barrel
Definition: JetAnalyzer.h:517
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
Definition: JetAnalyzer.h:125
MonitorElement * mPhFrac_lowPt_EndCap
Definition: JetAnalyzer.h:440
MonitorElement * mMass_highPt_EndCap
Definition: JetAnalyzer.h:470
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_Barrel
Definition: JetAnalyzer.h:305
MonitorElement * mNHFracVSeta_highPt
Definition: JetAnalyzer.h:435
MonitorElement * mDeltaPt_Z_j1_over_ZPt_290_J_EndCap
Definition: JetAnalyzer.h:796
MonitorElement * mMPF_highZPt_J_Forward
Definition: JetAnalyzer.h:786
MonitorElement * mCutPUJIDDiscriminant_lowPt_Barrel
Definition: JetAnalyzer.h:318
MonitorElement * mN90Hits
Definition: JetAnalyzer.h:378
MonitorElement * mCHFrac
Definition: JetAnalyzer.h:571
MonitorElement * mSubJet1_SoftDrop_eta_boosted
Definition: JetAnalyzer.h:735
PFJetIDSelectionFunctor pfjetIDFunctor
Definition: JetAnalyzer.h:167
float fRBX
Definition: JetID.h:46
MonitorElement * mSubJet1_SoftDrop_pt_boosted
Definition: JetAnalyzer.h:734
MonitorElement * mJetZBalance_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:755
MonitorElement * mCHEn_lowPt_EndCap
Definition: JetAnalyzer.h:448
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
Definition: JetAnalyzer.h:123
MonitorElement * meNHFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:614
MonitorElement * mCutPUJIDDiscriminant_lowPt_EndCap
Definition: JetAnalyzer.h:319
double pt() const final
transverse momentum
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
MonitorElement * mCHFracVSeta_highPt
Definition: JetAnalyzer.h:434
MonitorElement * mPhEn_highPt_Barrel
Definition: JetAnalyzer.h:406
MonitorElement * mCHFrac_profile
Definition: JetAnalyzer.h:576
MonitorElement * mSubJet2_SoftDrop_eta_boosted
Definition: JetAnalyzer.h:739
double correction(const LorentzVector &fJet) const
get correction using Jet information only
Definition: JetCorrector.h:49
MonitorElement * mNeutMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:474
MonitorElement * mNHEn_mediumPt_EndCap
Definition: JetAnalyzer.h:454
MonitorElement * mEta_Hi
Definition: JetAnalyzer.h:287
edm::EDGetTokenT< edm::ValueMap< int > > mvaPUIDToken_
Definition: JetAnalyzer.h:134
MonitorElement * mpTD_mediumPt_EndCap
Definition: JetAnalyzer.h:528
bool isCaloJet_
Definition: JetAnalyzer.h:803
MonitorElement * meCHFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:655
MonitorElement * mMPF_lowZPt_J_EndCap
Definition: JetAnalyzer.h:781
MonitorElement * mNeutralMultiplicity
Definition: JetAnalyzer.h:506
Strings::size_type size() const
Definition: TriggerNames.cc:39
edm::EDGetTokenT< edm::ValueMap< float > > mvaFullPUDiscriminantToken_
Definition: JetAnalyzer.h:131
MonitorElement * mMass_lowPt_Barrel
Definition: JetAnalyzer.h:463
MonitorElement * mEFrac_profile
Definition: JetAnalyzer.h:341
MonitorElement * mePhFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:645
MonitorElement * mPt_3
Definition: JetAnalyzer.h:224
MonitorElement * mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap
Definition: JetAnalyzer.h:795
MonitorElement * mSubJet2_SoftDrop_pt_boosted
Definition: JetAnalyzer.h:738
Jet ID object.
Definition: JetID.h:16
MonitorElement * mHFEMFrac
Definition: JetAnalyzer.h:574
MonitorElement * mEta
Definition: JetAnalyzer.h:225
MonitorElement * mConstituents_Forward
Definition: JetAnalyzer.h:255
MonitorElement * mPt_CaloJet
Definition: JetAnalyzer.h:744
std::string DirName
Definition: JetAnalyzer.h:171
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
Definition: JetAnalyzer.h:120
MonitorElement * mMVAPUJIDDiscriminant_lowPt_Forward
Definition: JetAnalyzer.h:304
MonitorElement * mpTD_lowPt_Forward
Definition: JetAnalyzer.h:537
MonitorElement * mtau3_over_tau2_boosted
Definition: JetAnalyzer.h:710
MonitorElement * mnSubJetsSoftDrop
Definition: JetAnalyzer.h:694
MonitorElement * mPt_Hi
Definition: JetAnalyzer.h:289
JetMETDQMDCSFilter * DCSFilterForDCSMonitoring_
Definition: JetAnalyzer.h:583
MonitorElement * mePhFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:613
MonitorElement * mMPF_highZPt_J_Barrel
Definition: JetAnalyzer.h:780
MonitorElement * mMultiplicityQG_lowPt_EndCap
Definition: JetAnalyzer.h:525
MonitorElement * meHFHFracPlus_BXm1Filled
Definition: JetAnalyzer.h:660
MonitorElement * meNHFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:654
MonitorElement * mCHFrac_lowPt_EndCap
Definition: JetAnalyzer.h:438
MonitorElement * mMuMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:417
MonitorElement * mNHFracVSeta_mediumPt
Definition: JetAnalyzer.h:432
MonitorElement * mChargedMultiplicity_profile
Definition: JetAnalyzer.h:565
MonitorElement * mAxis2_mediumPt_Barrel
Definition: JetAnalyzer.h:514
MonitorElement * mHFEFrac_lowPt_Forward
Definition: JetAnalyzer.h:484
MonitorElement * mMass_EndCap
Definition: JetAnalyzer.h:747
MonitorElement * meHFEMFracPlus_BXm1Filled
Definition: JetAnalyzer.h:661
MonitorElement * mNHFracVSeta_lowPt
Definition: JetAnalyzer.h:429
MonitorElement * mLooseJIDPassFractionVSpt
Definition: JetAnalyzer.h:292
MonitorElement * mAxis2_highPt_Forward
Definition: JetAnalyzer.h:544
JetMETDQMDCSFilter * DCSFilterForJetMonitoring_
Definition: JetAnalyzer.h:582
MonitorElement * mpTD_mediumPt_Barrel
Definition: JetAnalyzer.h:515
MonitorElement * mPt_uncor
Definition: JetAnalyzer.h:227
MonitorElement * mDPhi
Definition: JetAnalyzer.h:276
void Fill(long long x)
MonitorElement * mresEMF
Definition: JetAnalyzer.h:381
MonitorElement * mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel
Definition: JetAnalyzer.h:789
MonitorElement * mEMF_CaloJet
Definition: JetAnalyzer.h:745
MonitorElement * mChargedMuEnergy
Definition: JetAnalyzer.h:503
MonitorElement * mLooseMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:297
MonitorElement * mMuMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:478
MonitorElement * mNHFrac_profile
Definition: JetAnalyzer.h:577
bool filljetsubstruc_
Definition: JetAnalyzer.h:360
bool runcosmics_
Definition: JetAnalyzer.h:363
MonitorElement * mConstituents_profile
Definition: JetAnalyzer.h:339
MonitorElement * mpTD_highPt_EndCap
Definition: JetAnalyzer.h:532
MonitorElement * mEmEnergyInEB
Definition: JetAnalyzer.h:375
MonitorElement * mDijetBalance
Definition: JetAnalyzer.h:330
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap
Definition: JetAnalyzer.h:793
MonitorElement * mJ1Pt_over_ZPt_J_Barrel
Definition: JetAnalyzer.h:763
MonitorElement * mJ1Pt_over_ZPt_J_EndCap
Definition: JetAnalyzer.h:764
static bool passJetId(int flag, Id level)
MonitorElement * mTightCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:316
MonitorElement * mMediumMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:298
MonitorElement * mePtEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:616
MonitorElement * mSubJet1_SoftDrop_mass_boosted
Definition: JetAnalyzer.h:737
MonitorElement * mChargedHadronEnergy_profile
Definition: JetAnalyzer.h:560
MonitorElement * mPhi_Barrel
Definition: JetAnalyzer.h:242
MonitorElement * mPhFrac_lowPt_Barrel
Definition: JetAnalyzer.h:387
MonitorElement * mSubJet2_SoftDrop_eta
Definition: JetAnalyzer.h:700
MonitorElement * mAxis2_highPt_Barrel
Definition: JetAnalyzer.h:518
MonitorElement * mMass_lowPt_EndCap
Definition: JetAnalyzer.h:464
edm::EDGetTokenT< reco::CaloMETCollection > caloMetToken_
Definition: JetAnalyzer.h:126
MonitorElement * mConstituents_EndCap
Definition: JetAnalyzer.h:249
MonitorElement * meEta_BXm1Empty
Definition: JetAnalyzer.h:623
MonitorElement * mHFHFrac_mediumPt_Forward
Definition: JetAnalyzer.h:487
MonitorElement * mPhFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:390
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtToken_
Definition: JetAnalyzer.h:121
MonitorElement * mJetZBalance_mediumZPt_J_Forward
Definition: JetAnalyzer.h:761
MonitorElement * mSoftDropMass
Definition: JetAnalyzer.h:666
MonitorElement * mePtEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:612
MonitorElement * mNeutralMultiplicity_profile
Definition: JetAnalyzer.h:566
MonitorElement * mMultiplicityQG_highPt_EndCap
Definition: JetAnalyzer.h:533
MonitorElement * meHFHFracMinus_BXm1Filled
Definition: JetAnalyzer.h:657
MonitorElement * cleanupME
Definition: JetAnalyzer.h:350
MonitorElement * mPhEn_mediumPt_Barrel
Definition: JetAnalyzer.h:401
Definition: Jet.py:1
MonitorElement * mSubJet2_SoftDrop_mass_boosted
Definition: JetAnalyzer.h:741
MonitorElement * mLooseMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:296
MonitorElement * mNeutMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:477
MonitorElement * mNeutralFraction
Definition: JetAnalyzer.h:551
MonitorElement * mNHFracVSpT_EndCap
Definition: JetAnalyzer.h:423
MonitorElement * mNeutralEmEnergy_profile
Definition: JetAnalyzer.h:564
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Definition: MET.h:42
MonitorElement * mNHFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:389
MonitorElement * mPhEn_lowPt_Barrel
Definition: JetAnalyzer.h:396
edm::EDGetTokenT< edm::ValueMap< float > > cutBasedPUDiscriminantToken_
Definition: JetAnalyzer.h:132
MonitorElement * mSubJet2_SoftDrop_pt
Definition: JetAnalyzer.h:699
edm::EDGetTokenT< pat::JetCollection > patJetsToken_
Definition: JetAnalyzer.h:130
MonitorElement * mPt_1
Definition: JetAnalyzer.h:222
MonitorElement * mConstituents_Barrel
Definition: JetAnalyzer.h:243
MonitorElement * mJetZBalance_lowZPt_J_EndCap
Definition: JetAnalyzer.h:757
MonitorElement * meHFHFracMinus_BXm1Empty
Definition: JetAnalyzer.h:617
MonitorElement * meCHFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:611
MonitorElement * mNHEn_lowPt_EndCap
Definition: JetAnalyzer.h:449
double ptThreshold_
Definition: JetAnalyzer.h:207
MonitorElement * mMuEn_lowPt_EndCap
Definition: JetAnalyzer.h:452
double pt_min_boosted_
Definition: JetAnalyzer.h:361
MonitorElement * mPhi
Definition: JetAnalyzer.h:226
MonitorElement * meHFEMFracMinus_BXm1Filled
Definition: JetAnalyzer.h:658
MonitorElement * mNeutMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:410
MonitorElement * mpTD_highPt_Barrel
Definition: JetAnalyzer.h:519
MonitorElement * mPhFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:443
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_Forward
Definition: JetAnalyzer.h:777
MonitorElement * mMuonMultiplicity_profile
Definition: JetAnalyzer.h:567
MonitorElement * mCutPUJIDDiscriminant_mediumPt_Forward
Definition: JetAnalyzer.h:323
MonitorElement * mCutPUJIDDiscriminant_highPt_EndCap
Definition: JetAnalyzer.h:325
MonitorElement * mChargedHadronEnergy
Definition: JetAnalyzer.h:500
MonitorElement * mPhi_uncor
Definition: JetAnalyzer.h:229
MonitorElement * mCutPUJIDDiscriminant_highPt_Barrel
Definition: JetAnalyzer.h:324
bool fill_CHS_histos
Definition: JetAnalyzer.h:809
MonitorElement * mChargedEmEnergy
Definition: JetAnalyzer.h:502
MonitorElement * mNeutMultiplicity_mediumPt_Forward
Definition: JetAnalyzer.h:497
MonitorElement * mMass_mediumPt_EndCap
Definition: JetAnalyzer.h:467
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
MonitorElement * mPhFrac_profile
Definition: JetAnalyzer.h:578
MonitorElement * meNHFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:606
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_Barrel
Definition: JetAnalyzer.h:771
MonitorElement * mPt_profile
Definition: JetAnalyzer.h:336
edm::EDGetTokenT< edm::ValueMap< float > > qgptDToken_
Definition: JetAnalyzer.h:138
MonitorElement * mPhFracVSeta_lowPt
Definition: JetAnalyzer.h:430
MonitorElement * mChMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:409
edm::InputTag jetCorrectorTag_
Definition: JetAnalyzer.h:155
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel
Definition: JetAnalyzer.h:788
MonitorElement * mEtaFirst
Definition: JetAnalyzer.h:279
MonitorElement * mElEn_lowPt_EndCap
Definition: JetAnalyzer.h:451
MonitorElement * mTightMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:300
MonitorElement * mNHFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:442
MonitorElement * mEFrac_Forward
Definition: JetAnalyzer.h:257
static std::string const triggerResults
Definition: EdmProvDump.cc:41
MonitorElement * mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap
Definition: JetAnalyzer.h:794
MonitorElement * mChMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:473
MonitorElement * mMuEn_mediumPt_Barrel
Definition: JetAnalyzer.h:403
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Definition: JetAnalyzer.h:119
MonitorElement * mMuMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:481
bool isValid() const
Definition: HandleBase.h:74
MonitorElement * mPt_2
Definition: JetAnalyzer.h:223
MonitorElement * mAxis2_highPt_EndCap
Definition: JetAnalyzer.h:531
MonitorElement * mMVAPUJIDDiscriminant_highPt_Barrel
Definition: JetAnalyzer.h:308
MonitorElement * mSubJet1_SoftDrop_pt
Definition: JetAnalyzer.h:695
MonitorElement * mNeutralHadronEnergy_profile
Definition: JetAnalyzer.h:561
MonitorElement * mHFrac_Barrel
Definition: JetAnalyzer.h:244
bool filter(const edm::Event &evt, const edm::EventSetup &es)
MonitorElement * mNJets_profile
Definition: JetAnalyzer.h:335
MonitorElement * mMultiplicityQG_highPt_Barrel
Definition: JetAnalyzer.h:520
MonitorElement * mHFEFracVSpT_Forward
Definition: JetAnalyzer.h:426
MonitorElement * mMPF_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:779
MonitorElement * mePhFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:605
MonitorElement * mCHEn_lowPt_Barrel
Definition: JetAnalyzer.h:394
MonitorElement * mHFEFrac_highPt_Forward
Definition: JetAnalyzer.h:488
MonitorElement * mJ1Pt_over_ZPt_J_Forward
Definition: JetAnalyzer.h:765
MonitorElement * mElEn_highPt_EndCap
Definition: JetAnalyzer.h:461
MonitorElement * mCutPUJIDDiscriminant_mediumPt_EndCap
Definition: JetAnalyzer.h:322
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_Forward
Definition: JetAnalyzer.h:776
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:773
MonitorElement * mEFrac
Definition: JetAnalyzer.h:238
MonitorElement * mCutPUJIDDiscriminant_mediumPt_Barrel
Definition: JetAnalyzer.h:321
MonitorElement * mPhFrac_highPt_EndCap
Definition: JetAnalyzer.h:446
MonitorElement * mPhFracVSeta_mediumPt
Definition: JetAnalyzer.h:433
MonitorElement * mMPF_lowZPt_J_Barrel
Definition: JetAnalyzer.h:778
MonitorElement * meHFEMFracPlus_BXm1Empty
Definition: JetAnalyzer.h:621
nConstituents
Definition: jets_cff.py:207
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
MonitorElement * mnSubJetsSoftDrop_boosted
Definition: JetAnalyzer.h:733
MonitorElement * meCHFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:607
MonitorElement * mePtBarrel_BXm1Empty
Definition: JetAnalyzer.h:608
MonitorElement * mNHFracVSpT_Barrel
Definition: JetAnalyzer.h:420
MonitorElement * mHadEnergyInHF
Definition: JetAnalyzer.h:373
edm::EDGetTokenT< reco::MuonCollection > MuonsToken_
Definition: JetAnalyzer.h:129
MonitorElement * mSubJet1_SoftDrop_eta
Definition: JetAnalyzer.h:696
MonitorElement * mMPF_lowZPt_J_Forward
Definition: JetAnalyzer.h:784
MonitorElement * mfHPD
Definition: JetAnalyzer.h:379
MonitorElement * mDijetAsymmetry
Definition: JetAnalyzer.h:331
MonitorElement * mNeutMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:480
MonitorElement * mpTD_lowPt_Barrel
Definition: JetAnalyzer.h:511
MonitorElement * mHFHEn_mediumPt_Forward
Definition: JetAnalyzer.h:493
MonitorElement * mJetEnergyCorr
Definition: JetAnalyzer.h:232
MonitorElement * mJetZBalance_highZPt_J_Forward
Definition: JetAnalyzer.h:762
MonitorElement * mAxis2_lowPt_EndCap
Definition: JetAnalyzer.h:523
MonitorElement * mElEn_mediumPt_Barrel
Definition: JetAnalyzer.h:402
MonitorElement * mMVAPUJIDDiscriminant_highPt_Forward
Definition: JetAnalyzer.h:310
edm::EDGetTokenT< edm::ValueMap< reco::JetID > > jetID_ValueMapToken_
Definition: JetAnalyzer.h:145
MonitorElement * mChargedMultiplicity
Definition: JetAnalyzer.h:505
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_EndCap
Definition: JetAnalyzer.h:774
edm::EDGetTokenT< edm::ValueMap< int > > qgMultiplicityToken_
Definition: JetAnalyzer.h:136
MonitorElement * mNHEn_highPt_Barrel
Definition: JetAnalyzer.h:405
std::map< std::string, MonitorElement * > map_of_MEs
Definition: JetAnalyzer.h:801
MonitorElement * mPt
Definition: JetAnalyzer.h:221
MonitorElement * mEFrac_Barrel
Definition: JetAnalyzer.h:245
double asymmetryThirdJetCut_
Definition: JetAnalyzer.h:209
MonitorElement * mCHFracVSeta_mediumPt
Definition: JetAnalyzer.h:431
T const * product() const
Definition: Handle.h:81
MonitorElement * mePtBarrel_BXm1Filled
Definition: JetAnalyzer.h:648
MonitorElement * mCHFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:441
MonitorElement * mNHFrac_highPt_Barrel
Definition: JetAnalyzer.h:392
MonitorElement * mqgLikelihood_highPt_Forward
Definition: JetAnalyzer.h:547
MonitorElement * mMediumCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:315
MonitorElement * mePhFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:609
met
===> hadronic RAZOR
double ptThresholdUnc_
Definition: JetAnalyzer.h:208
MonitorElement * mMuMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:414
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
MonitorElement * mHFrac_EndCap
Definition: JetAnalyzer.h:250
MonitorElement * mJetEnergyCorrVSPt
Definition: JetAnalyzer.h:234
MonitorElement * mElEn_mediumPt_EndCap
Definition: JetAnalyzer.h:456
MonitorElement * mAxis2_lowPt_Barrel
Definition: JetAnalyzer.h:510
MonitorElement * mPhiVSEta
Definition: JetAnalyzer.h:239
MonitorElement * mMPF_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:782
MonitorElement * mqgLikelihood_mediumPt_EndCap
Definition: JetAnalyzer.h:530
MonitorElement * mePtEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:652
MonitorElement * mChargedMuEnergy_profile
Definition: JetAnalyzer.h:563
MonitorElement * mLooseJIDPassFractionVSptNoHF
Definition: JetAnalyzer.h:293
MonitorElement * mEta_uncor
Definition: JetAnalyzer.h:228
MonitorElement * mMediumMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:299
MonitorElement * mCHEn_highPt_EndCap
Definition: JetAnalyzer.h:458
MonitorElement * mMVAPUJIDDiscriminant_highPt_EndCap
Definition: JetAnalyzer.h:309
double py() const final
y coordinate of momentum vector
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_EndCap
Definition: JetAnalyzer.h:772
MonitorElement * mMPF_J_Forward
Definition: JetAnalyzer.h:768
MonitorElement * mCHFracVSpT_EndCap
Definition: JetAnalyzer.h:422
MonitorElement * mHFHFracVSpT_Forward
Definition: JetAnalyzer.h:425
MonitorElement * mMVAPUJIDDiscriminant_lowPt_Barrel
Definition: JetAnalyzer.h:302
MonitorElement * mpTD_lowPt_EndCap
Definition: JetAnalyzer.h:524
bool isMiniAODJet_
Definition: JetAnalyzer.h:805
MonitorElement * mNHEn_mediumPt_Barrel
Definition: JetAnalyzer.h:400
MonitorElement * mJetZBalance_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:758
MonitorElement * mSubJet2_SoftDrop_phi
Definition: JetAnalyzer.h:701
MonitorElement * mMuMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:411
std::string const & label() const
Definition: InputTag.h:36
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
Definition: Selector.h:212
MonitorElement * mMuEn_highPt_EndCap
Definition: JetAnalyzer.h:462
MonitorElement * mLooseJIDPassFractionVSeta
Definition: JetAnalyzer.h:291
MonitorElement * mHFrac_profile
Definition: JetAnalyzer.h:340
MonitorElement * mMPF_highZPt_J_EndCap
Definition: JetAnalyzer.h:783
MonitorElement * mPhEn_highPt_EndCap
Definition: JetAnalyzer.h:460
MonitorElement * mMultiplicityQG_lowPt_Barrel
Definition: JetAnalyzer.h:512
edm::EventID id() const
Definition: EventBase.h:60
MonitorElement * mMVAPUJIDDiscriminant_lowPt_EndCap
Definition: JetAnalyzer.h:303
MonitorElement * mMuEn_mediumPt_EndCap
Definition: JetAnalyzer.h:457
MonitorElement * mqgLikelihood_lowPt_EndCap
Definition: JetAnalyzer.h:526
MonitorElement * mAxis2_mediumPt_Forward
Definition: JetAnalyzer.h:540
MonitorElement * mMuEn_lowPt_Barrel
Definition: JetAnalyzer.h:398
virtual int nConstituents() const
of constituents
Definition: Jet.h:65
MonitorElement * mTightMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:301
MonitorElement * mCHFrac_highPt_Barrel
Definition: JetAnalyzer.h:391
MonitorElement * mMuEn_highPt_Barrel
Definition: JetAnalyzer.h:408
MonitorElement * meCHFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:615
static int position[264][3]
Definition: ReadPGInfo.cc:509
MonitorElement * mePhFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:649
MonitorElement * mHFHEn_highPt_Forward
Definition: JetAnalyzer.h:495
pfIsolationR04
Definition: muons_cfi.py:31
MonitorElement * mePtEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:656
MonitorElement * mNHEn_highPt_EndCap
Definition: JetAnalyzer.h:459
MonitorElement * mePtForwardPlus_BXm1Filled
Definition: JetAnalyzer.h:662
MonitorElement * mCHFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:388
MonitorElement * mAxis2_lowPt_Forward
Definition: JetAnalyzer.h:536
MonitorElement * mPhi_Hi
Definition: JetAnalyzer.h:288
MonitorElement * mMultiplicityQG_mediumPt_Barrel
Definition: JetAnalyzer.h:516
edm::InputTag theTriggerResultsLabel_
Definition: JetAnalyzer.h:113
MonitorElement * mPtFirst
Definition: JetAnalyzer.h:281
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward
Definition: JetAnalyzer.h:797
MonitorElement * meNHFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:610
MonitorElement * mPhFrac
Definition: JetAnalyzer.h:573
MonitorElement * mPhi_profile
Definition: JetAnalyzer.h:338
MonitorElement * mPt_Barrel
Definition: JetAnalyzer.h:241
MonitorElement * meCHFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:647
MonitorElement * mElEn_lowPt_Barrel
Definition: JetAnalyzer.h:397
MonitorElement * mMass_highPt_Barrel
Definition: JetAnalyzer.h:469
MonitorElement * mHadEnergyInHE
Definition: JetAnalyzer.h:374
std::vector< std::string > highPtJetExpr_
Definition: JetAnalyzer.h:356
MonitorElement * mMass_mediumPt_Barrel
Definition: JetAnalyzer.h:466
MonitorElement * meHFEMFracMinus_BXm1Empty
Definition: JetAnalyzer.h:618
MonitorElement * mChMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:479
MonitorElement * mConstituents
Definition: JetAnalyzer.h:236
MonitorElement * mNHFrac_lowPt_Barrel
Definition: JetAnalyzer.h:386
MonitorElement * meEta_BXm1Filled
Definition: JetAnalyzer.h:663
MonitorElement * mJetEnergyCorrVSEta
Definition: JetAnalyzer.h:233
MonitorElement * mPhFrac_highPt_Barrel
Definition: JetAnalyzer.h:393
MonitorElement * mCHFracVSpT_Barrel
Definition: JetAnalyzer.h:419
MonitorElement * mPhFracVSpT_EndCap
Definition: JetAnalyzer.h:424
MonitorElement * mChMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:412
MonitorElement * mMPF_J_Barrel
Definition: JetAnalyzer.h:766
MonitorElement * mJetZBalance_highZPt_J_EndCap
Definition: JetAnalyzer.h:759
MonitorElement * mMultiplicityQG_lowPt_Forward
Definition: JetAnalyzer.h:538
MonitorElement * mEta_profile
Definition: JetAnalyzer.h:337
MonitorElement * mPt_EndCap
Definition: JetAnalyzer.h:247
MonitorElement * mCHFracVSeta_lowPt
Definition: JetAnalyzer.h:428
MonitorElement * mpTD_mediumPt_Forward
Definition: JetAnalyzer.h:541
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_EndCap
Definition: JetAnalyzer.h:306
MonitorElement * mCHEn_mediumPt_EndCap
Definition: JetAnalyzer.h:453
MonitorElement * mTightCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:317
MonitorElement * mSubJet2_SoftDrop_mass
Definition: JetAnalyzer.h:702
MonitorElement * mNeutMultiplicity_highPt_Forward
Definition: JetAnalyzer.h:498
MonitorElement * mDPhiZJet
Definition: JetAnalyzer.h:751
MonitorElement * mqgLikelihood_highPt_Barrel
Definition: JetAnalyzer.h:521
MonitorElement * mqgLikelihood_mediumPt_Forward
Definition: JetAnalyzer.h:543
MonitorElement * mePtForwardMinus_BXm1Filled
Definition: JetAnalyzer.h:659
MonitorElement * mLooseCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:313
double phi() const final
momentum azimuthal angle
MonitorElement * mMuonMultiplicity
Definition: JetAnalyzer.h:507
MonitorElement * mPhFracVSpT_Barrel
Definition: JetAnalyzer.h:421
MonitorElement * mHFEMFrac_profile
Definition: JetAnalyzer.h:579
MonitorElement * mZMass
Definition: JetAnalyzer.h:752
MonitorElement * mMultiplicityQG_mediumPt_Forward
Definition: JetAnalyzer.h:542
MonitorElement * mqgLikelihood_lowPt_Forward
Definition: JetAnalyzer.h:539
MonitorElement * mDeltaPt_Z_j1_over_ZPt_100_J_Forward
Definition: JetAnalyzer.h:799
MonitorElement * mHFHFrac_lowPt_Forward
Definition: JetAnalyzer.h:485
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_Forward
Definition: JetAnalyzer.h:307
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_Forward
Definition: JetAnalyzer.h:775
MonitorElement * mMuMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:475
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
Definition: Event.cc:301
MonitorElement * mZJetAsymmetry
Definition: JetAnalyzer.h:753
MonitorElement * meHFHFracPlus_BXm1Empty
Definition: JetAnalyzer.h:620
MonitorElement * mConstituents_uncor
Definition: JetAnalyzer.h:230
MonitorElement * mNeutMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:413
MonitorElement * meCHFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:651
MonitorElement * mPhi_Lo
Definition: JetAnalyzer.h:284
MonitorElement * mHFrac
Definition: JetAnalyzer.h:237
MonitorElement * mCutPUJIDDiscriminant_highPt_Forward
Definition: JetAnalyzer.h:326
short n90Hits
Definition: JetID.h:47
MonitorElement * mNeutMultiplicity_lowPt_Forward
Definition: JetAnalyzer.h:496
MonitorElement * mHFEEn_mediumPt_Forward
Definition: JetAnalyzer.h:492
MonitorElement * mSubJet1_SoftDrop_phi
Definition: JetAnalyzer.h:697
MonitorElement * mNeutMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:416
MonitorElement * verticesME
Definition: JetAnalyzer.h:351
MonitorElement * mPhFracVSeta_highPt
Definition: JetAnalyzer.h:436
MonitorElement * mAxis2_mediumPt_EndCap
Definition: JetAnalyzer.h:527
MonitorElement * mpTD_highPt_Forward
Definition: JetAnalyzer.h:545
MonitorElement * mePtForwardMinus_BXm1Empty
Definition: JetAnalyzer.h:619
MonitorElement * mHFHFrac_profile
Definition: JetAnalyzer.h:580
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:770
MonitorElement * mSoftDropMass_boosted
Definition: JetAnalyzer.h:705
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39
MonitorElement * mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel
Definition: JetAnalyzer.h:790
MonitorElement * mHadEnergyInHO
Definition: JetAnalyzer.h:371
edm::InputTag mInputCollection_
Definition: JetAnalyzer.h:112
void JetAnalyzer::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
overridevirtual

Inizialize parameters for histo binning.

Implements DQMEDAnalyzer.

Definition at line 266 of file JetAnalyzer.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), cmsPerfPublish::DirName, MonitorElement::getTH2F(), MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), and DQMStore::IBooker::setCurrentFolder().

268  {
269 
270  // dbe_ = edm::Service<DQMStore>().operator->();
271  if(jetCleaningFlag_){
272  ibooker.setCurrentFolder("JetMET/Jet/Cleaned"+mInputCollection_.label());
273  DirName = "JetMET/Jet/Cleaned"+mInputCollection_.label();
274  }else{
275  ibooker.setCurrentFolder("JetMET/Jet/Uncleaned"+mInputCollection_.label());
276  DirName = "JetMET/Jet/Uncleaned"+mInputCollection_.label();
277  }
278 
279  jetME = ibooker.book1D("jetReco", "jetReco", 4, 1, 5);
280  jetME->setBinLabel(1,"CaloJets",1);
281  jetME->setBinLabel(2,"PFJets",1);
282  jetME->setBinLabel(3,"JPTJets",1);
283  jetME->setBinLabel(4,"MiniAODJets",1);
284 
285  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"jetReco",jetME));
286 
287 
288  mPt = ibooker.book1D("Pt", "pt", ptBin_, ptMin_, ptMax_);
289  mEta = ibooker.book1D("Eta", "eta", etaBin_, etaMin_, etaMax_);
290  mPhi = ibooker.book1D("Phi", "phi", phiBin_, phiMin_, phiMax_);
291  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt" ,mPt));
292  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta",mEta));
293  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi",mPhi));
294 
295  //if(!isJPTJet_){
296  mConstituents = ibooker.book1D("Constituents", "# of constituents", 50, 0, 100);
297  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents",mConstituents));
298  //}
299  mJetEnergyCorr= ibooker.book1D("JetEnergyCorr", "jet energy correction factor", 50, 0.0,3.0);
300  mJetEnergyCorrVSEta= ibooker.bookProfile("JetEnergyCorrVSEta", "jet energy correction factor VS eta", etaBin_, etaMin_,etaMax_, 0.0,3.0);
301  mJetEnergyCorrVSPt= ibooker.bookProfile("JetEnergyCorrVSPt", "jet energy correction factor VS pt", ptBin_, ptMin_,ptMax_, 0.0,3.0);
302  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorr" ,mJetEnergyCorr));
303  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorrVSEta" ,mJetEnergyCorrVSEta));
304  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorrVSPt" ,mJetEnergyCorrVSPt));
305 
306  mPt_uncor = ibooker.book1D("Pt_uncor", "pt for uncorrected jets", ptBin_, ptThresholdUnc_, ptMax_);
307  mEta_uncor = ibooker.book1D("Eta_uncor", "eta for uncorrected jets", etaBin_, etaMin_, etaMax_);
308  mPhi_uncor = ibooker.book1D("Phi_uncor", "phi for uncorrected jets", phiBin_, phiMin_, phiMax_);
309  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_uncor" ,mPt_uncor));
310  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_uncor",mEta_uncor));
311  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_uncor",mPhi_uncor));
312  //if(!isJPTJet_){
313  mConstituents_uncor = ibooker.book1D("Constituents_uncor", "# of constituents for uncorrected jets", 50, 0, 100);
314  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_uncor",mConstituents_uncor));
315  //}
316 
317  mDPhi = ibooker.book1D("DPhi", "dPhi btw the two leading jets", 100, 0., acos(-1.));
318  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DPhi",mDPhi));
319 
320  // Book NPV profiles
321  //----------------------------------------------------------------------------
322  mPt_profile = ibooker.bookProfile("Pt_profile", "pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
323  mEta_profile = ibooker.bookProfile("Eta_profile", "eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
324  mPhi_profile = ibooker.bookProfile("Phi_profile", "phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
325  //if(!isJPTJet_){
326  mConstituents_profile = ibooker.bookProfile("Constituents_profile", "# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
327  //}
328  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_profile" ,mPt_profile));
329  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_profile",mEta_profile));
330  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_profile",mPhi_profile));
331 
332 
333 
334  if(!runcosmics_){//JIDPassFrac_ defines a collection of cleaned jets, for which we will want to fill the cleaning passing fraction
335  mLooseJIDPassFractionVSeta = ibooker.bookProfile("JetIDPassFractionVSeta","JetIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
336  mLooseJIDPassFractionVSpt = ibooker.bookProfile("JetIDPassFractionVSpt","JetIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
337  mLooseJIDPassFractionVSptNoHF = ibooker.bookProfile("JetIDPassFractionVSptNoHF","JetIDPassFractionVSptNoHF",ptBin_, ptMin_, ptMax_,0.,1.2);
338  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetIDPassFractionVSeta" ,mLooseJIDPassFractionVSeta));
339  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetIDPassFractionVSpt" ,mLooseJIDPassFractionVSpt));
340  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetIDPassFractionVSptNoHF",mLooseJIDPassFractionVSptNoHF));
341  }
342 
343  mNJets_profile = ibooker.bookProfile("NJets_profile", "number of jets", nbinsPV_, nPVlow_, nPVhigh_, 100, 0, 100);
344 
345 
346  // Set NPV profiles x-axis title
347  //----------------------------------------------------------------------------
348  mPt_profile ->setAxisTitle("nvtx",1);
349  mEta_profile ->setAxisTitle("nvtx",1);
350  mPhi_profile ->setAxisTitle("nvtx",1);
351  //if(!isJPTJet_){
353  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_profile",mConstituents_profile));
354  //}
355  mNJets_profile->setAxisTitle("nvtx",1);
356 
357  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_profile" ,mPt_profile));
358  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_profile",mEta_profile));
359  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_profile",mPhi_profile));
360  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NJets_profile" ,mNJets_profile));
361 
362 
363  mPhiVSEta = ibooker.book2D("PhiVSEta", "PhiVSEta", 50, etaMin_, etaMax_, 24, phiMin_, phiMax_);
364  mPhiVSEta->getTH2F()->SetOption("colz");
365  mPhiVSEta->setAxisTitle("#eta",1);
366  mPhiVSEta->setAxisTitle("#phi",2);
367  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhiVSEta" ,mPhiVSEta));
368 
369  mPt_1 = ibooker.book1D("Pt_1", "Pt spectrum of jets - range 1", 20, 0, 100);
370  mPt_2 = ibooker.book1D("Pt_2", "Pt spectrum of jets - range 2", 60, 0, 300);
371  mPt_3 = ibooker.book1D("Pt_3", "Pt spectrum of jets - range 3", 100, 0, 5000);
372  // Low and high pt trigger paths
373  mPt_Lo = ibooker.book1D("Pt_Lo", "Pt (Pass Low Pt Jet Trigger)", 20, 0, 100);
374  //mEta_Lo = ibooker.book1D("Eta_Lo", "Eta (Pass Low Pt Jet Trigger)", etaBin_, etaMin_, etaMax_);
375  mPhi_Lo = ibooker.book1D("Phi_Lo", "Phi (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
376 
377  mPt_Hi = ibooker.book1D("Pt_Hi", "Pt (Pass Hi Pt Jet Trigger)", 60, 0, 300);
378  mEta_Hi = ibooker.book1D("Eta_Hi", "Eta (Pass Hi Pt Jet Trigger)", etaBin_, etaMin_, etaMax_);
379  mPhi_Hi = ibooker.book1D("Phi_Hi", "Phi (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
380  mNJets = ibooker.book1D("NJets", "number of jets", 100, 0, 100);
381 
382  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_1" ,mPt_1));
383  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_2" ,mPt_2));
384  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_3" ,mPt_3));
385  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Lo" ,mPt_Lo));
386  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Lo" ,mPhi_Lo));
387  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Hi" ,mPt_Hi));
388  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_Hi" ,mEta_Hi));
389  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Hi" ,mPhi_Hi));
390  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NJets" ,mNJets));
391 
392  //mPt_Barrel_Lo = ibooker.book1D("Pt_Barrel_Lo", "Pt Barrel (Pass Low Pt Jet Trigger)", 20, 0, 100);
393  //mPhi_Barrel_Lo = ibooker.book1D("Phi_Barrel_Lo", "Phi Barrel (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
394  //if(!isJPTJet_){
395  mConstituents_Barrel = ibooker.book1D("Constituents_Barrel", "Constituents Barrel", 50, 0, 100);
396  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_Barrel",mConstituents_Barrel));
397  //}
398 
399  //mPt_EndCap_Lo = ibooker.book1D("Pt_EndCap_Lo", "Pt EndCap (Pass Low Pt Jet Trigger)", 20, 0, 100);
400  //mPhi_EndCap_Lo = ibooker.book1D("Phi_EndCap_Lo", "Phi EndCap (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
401  //if(!isJPTJet_){
402  mConstituents_EndCap = ibooker.book1D("Constituents_EndCap", "Constituents EndCap", 50, 0, 100);
403  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_EndCap",mConstituents_EndCap));
404  //}
405 
406 
407  //mPt_Forward_Lo = ibooker.book1D("Pt_Forward_Lo", "Pt Forward (Pass Low Pt Jet Trigger)", 20, 0, 100);
408  //mPhi_Forward_Lo = ibooker.book1D("Phi_Forward_Lo", "Phi Forward (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
409  //if(!isJPTJet_){
410  mConstituents_Forward = ibooker.book1D("Constituents_Forward", "Constituents Forward", 50, 0, 100);
411  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_Forward",mConstituents_Forward));
412  //}
413 
414 
415 
416  mPt_Barrel_Hi = ibooker.book1D("Pt_Barrel_Hi", "Pt Barrel (Pass Hi Pt Jet Trigger)", 60, 0, 300);
417  mPhi_Barrel_Hi = ibooker.book1D("Phi_Barrel_Hi", "Phi Barrel (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
418 
419  mPt_EndCap_Hi = ibooker.book1D("Pt_EndCap_Hi", "Pt EndCap (Pass Hi Pt Jet Trigger)", 60, 0, 300);
420  mPhi_EndCap_Hi = ibooker.book1D("Phi_EndCap_Hi", "Phi EndCap (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
421 
422  mPt_Forward_Hi = ibooker.book1D("Pt_Forward_Hi", "Pt Forward (Pass Hi Pt Jet Trigger)", 60, 0, 300);
423  mPhi_Forward_Hi = ibooker.book1D("Phi_Forward_Hi", "Phi Forward (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
424 
425  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Barrel_Hi" ,mPt_Barrel_Hi));
426  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Barrel_Hi",mPhi_Barrel_Hi));
427  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_EndCap_Hi" ,mPt_EndCap_Hi));
428  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_EndCap_Hi",mPhi_EndCap_Hi));
429  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Forward_Hi" ,mPt_Forward_Hi));
430  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Forward_Hi",mPhi_Forward_Hi));
431 
432  mPhi_Barrel = ibooker.book1D("Phi_Barrel", "Phi_Barrel", phiBin_, phiMin_, phiMax_);
433  mPt_Barrel = ibooker.book1D("Pt_Barrel", "Pt_Barrel", ptBin_, ptMin_, ptMax_);
434 
435  mPhi_EndCap = ibooker.book1D("Phi_EndCap", "Phi_EndCap", phiBin_, phiMin_, phiMax_);
436  mPt_EndCap = ibooker.book1D("Pt_EndCap", "Pt_EndCap", ptBin_, ptMin_, ptMax_);
437 
438  mPhi_Forward = ibooker.book1D("Phi_Forward", "Phi_Forward", phiBin_, phiMin_, phiMax_);
439  mPt_Forward = ibooker.book1D("Pt_Forward", "Pt_Forward", ptBin_, ptMin_, ptMax_);
440 
441  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Barrel" ,mPt_Barrel));
442  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Barrel",mPhi_Barrel));
443  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_EndCap" ,mPt_EndCap));
444  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_EndCap",mPhi_EndCap));
445  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_Forward" ,mPt_Forward));
446  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_Forward",mPhi_Forward));
447 
448  // Leading Jet Parameters
449  mEtaFirst = ibooker.book1D("EtaFirst", "EtaFirst", 50, -5, 5);
450  mPhiFirst = ibooker.book1D("PhiFirst", "PhiFirst", 70, phiMin_, phiMax_);
451  mPtFirst = ibooker.book1D("PtFirst", "PtFirst", ptBin_, ptMin_, ptMax_);
452 
453  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EtaFirst" ,mEtaFirst));
454  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtFirst" ,mPtFirst));
455  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhiFirst" ,mPhiFirst));
456 
457  //--- Calo jet selection only
458  if(isCaloJet_) {
459 
460  // CaloJet specific
461  mHadEnergyInHO = ibooker.book1D("HadEnergyInHO", "HadEnergyInHO", 50, 0, 20);
462  mHadEnergyInHB = ibooker.book1D("HadEnergyInHB", "HadEnergyInHB", 50, 0, 100);
463  mHadEnergyInHF = ibooker.book1D("HadEnergyInHF", "HadEnergyInHF", 50, 0, 100);
464  mHadEnergyInHE = ibooker.book1D("HadEnergyInHE", "HadEnergyInHE", 50, 0, 200);
465  mEmEnergyInEB = ibooker.book1D("EmEnergyInEB", "EmEnergyInEB", 50, 0, 100);
466  mEmEnergyInEE = ibooker.book1D("EmEnergyInEE", "EmEnergyInEE", 50, 0, 100);
467  mEmEnergyInHF = ibooker.book1D("EmEnergyInHF", "EmEnergyInHF", 60, -20, 200);
468  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HadEnergyInHO" ,mHadEnergyInHO));
469  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HadEnergyInHB" ,mHadEnergyInHB));
470  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HadEnergyInHF" ,mHadEnergyInHF));
471  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HadEnergyInHE" ,mHadEnergyInHE));
472  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EmEnergyInEB" ,mEmEnergyInEB));
473  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EmEnergyInEE" ,mEmEnergyInEE));
474  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EmEnergyInHF" ,mEmEnergyInHF));
475 
476  //JetID variables
477  mresEMF = ibooker.book1D("resEMF", "resEMF", 50, 0., 1.);
478  mN90Hits = ibooker.book1D("N90Hits", "N90Hits", 50, 0., 50);
479  mfHPD = ibooker.book1D("fHPD", "fHPD", 50, 0., 1.);
480  mfRBX = ibooker.book1D("fRBX", "fRBX", 50, 0., 1.);
481  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"resEMF" ,mresEMF));
482  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"N90Hits" ,mN90Hits));
483  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"fHPD" ,mfHPD));
484  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"fRBX" ,mfRBX));
485 
486  mHFrac = ibooker.book1D("HFrac", "HFrac", 70, -0.2, 1.2);
487  mEFrac = ibooker.book1D("EFrac", "EFrac", 52, -0.02, 1.02);
488  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac" ,mHFrac));
489  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac" ,mEFrac));
490  mHFrac_profile = ibooker.bookProfile("HFrac_profile", "HFrac", nbinsPV_, nPVlow_, nPVhigh_, 70, -0.2, 1.2);
491  mEFrac_profile = ibooker.bookProfile("EFrac_profile", "EFrac", nbinsPV_, nPVlow_, nPVhigh_, 52, -0.02, 1.02);
492  mHFrac_profile ->setAxisTitle("nvtx",1);
493  mEFrac_profile ->setAxisTitle("nvtx",1);
494  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac_profile",mHFrac_profile));
495  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac_profile",mEFrac_profile));
496  mHFrac_Barrel = ibooker.book1D("HFrac_Barrel", "HFrac Barrel", 50, 0, 1);
497  mEFrac_Barrel = ibooker.book1D("EFrac_Barrel", "EFrac Barrel", 52, -0.02, 1.02);
498  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac_Barrel" ,mHFrac_Barrel));
499  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac_Barrel" ,mEFrac_Barrel));
500  mHFrac_EndCap = ibooker.book1D("HFrac_EndCap", "HFrac EndCap", 50, 0, 1);
501  mEFrac_EndCap = ibooker.book1D("EFrac_EndCap", "EFrac EndCap", 52, -0.02, 1.02);
502  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac_EndCap" ,mHFrac_EndCap));
503  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac_EndCap" ,mEFrac_EndCap));
504  mHFrac_Forward = ibooker.book1D("HFrac_Forward", "HFrac Forward", 70, -0.2, 1.2);
505  mEFrac_Forward = ibooker.book1D("EFrac_Forward", "EFrac Forward", 52, -0.02, 1.02);
506  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac_Forward" ,mHFrac_Forward));
507  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac_Forward" ,mEFrac_Forward));
508  }
509 
510  if(isPFJet_) {
511  /* remove quark gluon plots for default jet selection, but select physics signatures which monitor gluon and quark
512  if(jetCleaningFlag_){
513  //gluon quark separation axis
514  if(fill_CHS_histos){
515  mAxis2_lowPt_Barrel = ibooker.book1D("qg_Axis2_lowPt_Barrel","qg Axis2 #sigma_{2} lowPt Barrel",50,0.,0.20);
516  mpTD_lowPt_Barrel= ibooker.book1D("qg_pTD_lowPt_Barrel","qg fragmentation function p_{T}^{D} lowPt Barrel",50,0.15,1.05);
517  mMultiplicityQG_lowPt_Barrel= ibooker.book1D("qg_multiplicity_lowPt_Barrel","qg multiplicity lowPt Barrel",50,0,50);
518  mqgLikelihood_lowPt_Barrel= ibooker.book1D("qg_Likelihood_lowPt_Barrel","qg likelihood lowPt Barrel",50,-1.1,1.1);
519  mAxis2_lowPt_EndCap = ibooker.book1D("qg_Axis2_lowPt_EndCap","qg Axis2 #sigma_{2} lowPt EndCap",50,0.,0.20);
520  mpTD_lowPt_EndCap= ibooker.book1D("qg_pTD_lowPt_EndCap","qg fragmentation function p_{T}^{D} lowPt EndCap",50,0.15,1.05);
521  mMultiplicityQG_lowPt_EndCap= ibooker.book1D("qg_multiplicity_lowPt_EndCap","qg multiplicity lowPt EndCap",50,0,100);
522  mqgLikelihood_lowPt_EndCap= ibooker.book1D("qg_Likelihood_lowPt_EndCap","qg likelihood lowPt EndCap",50,-1.1,1.1);
523  mAxis2_lowPt_Forward = ibooker.book1D("qg_Axis2_lowPt_Forward","qg Axis2 #sigma_{2} lowPt Forward",50,0.,0.20);
524  mpTD_lowPt_Forward= ibooker.book1D("qg_pTD_lowPt_Forward","qg fragmentation function p_{T}^{D} lowPt Forward",50,0.15,1.05);
525  mMultiplicityQG_lowPt_Forward= ibooker.book1D("qg_multiplicity_lowPt_Forward","qg multiplicity lowPt Forward",50,0,100);
526  mqgLikelihood_lowPt_Forward= ibooker.book1D("qg_Likelihood_lowPt_Forward","qg likelihood lowPt Forward",50,-1.1,1.1);
527 
528  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_Barrel" ,mAxis2_lowPt_Barrel));
529  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_Barrel" ,mpTD_lowPt_Barrel));
530  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_Barrel" ,mMultiplicityQG_lowPt_Barrel));
531  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_Barrel" ,mqgLikelihood_lowPt_Barrel));
532  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_EndCap" ,mAxis2_lowPt_EndCap));
533  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_EndCap" ,mpTD_lowPt_EndCap));
534  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_EndCap" ,mMultiplicityQG_lowPt_EndCap));
535  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_EndCap" ,mqgLikelihood_lowPt_EndCap));
536  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_Forward" ,mAxis2_lowPt_Forward));
537  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_Forward" ,mpTD_lowPt_Forward));
538  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_Forward" ,mMultiplicityQG_lowPt_Forward));
539  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_Forward" ,mqgLikelihood_lowPt_Forward));
540 
541  mAxis2_mediumPt_Barrel = ibooker.book1D("qg_Axis2_mediumPt_Barrel","qg Axis2 #sigma_{2} mediumPt Barrel",50,0.,0.20);
542  mpTD_mediumPt_Barrel= ibooker.book1D("qg_pTD_mediumPt_Barrel","qg fragmentation function p_{T}^{D} mediumPt Barrel",50,0.15,1.05);
543  mMultiplicityQG_mediumPt_Barrel= ibooker.book1D("qg_multiplicity_mediumPt_Barrel","qg multiplicity mediumPt Barrel",50,0,100);
544  mqgLikelihood_mediumPt_Barrel= ibooker.book1D("qg_Likelihood_mediumPt_Barrel","qg likelihood mediumPt Barrel",50,-1.1,1.1);
545  mAxis2_mediumPt_EndCap = ibooker.book1D("qg_Axis2_mediumPt_EndCap","qg Axis2 #sigma_{2} mediumPt EndCap",50,0.,0.20);
546  mpTD_mediumPt_EndCap= ibooker.book1D("qg_pTD_mediumPt_EndCap","qg fragmentation function p_{T}^{D} mediumPt EndCap",50,0.15,1.05);
547  mMultiplicityQG_mediumPt_EndCap= ibooker.book1D("qg_multiplicity_mediumPt_EndCap","qg multiplicity mediumPt EndCap",50,0,100);
548  mqgLikelihood_mediumPt_EndCap= ibooker.book1D("qg_Likelihood_mediumPt_EndCap","qg likelihood mediumPt EndCap",50,-1.1,1.1);
549  mAxis2_mediumPt_Forward = ibooker.book1D("qg_Axis2_mediumPt_Forward","qg Axis2 #sigma_{2} mediumPt Forward",50,0.,0.20);
550  mpTD_mediumPt_Forward= ibooker.book1D("qg_pTD_mediumPt_Forward","qg fragmentation function p_{T}^{D} mediumPt Forward",50,0.15,1.05);
551  mMultiplicityQG_mediumPt_Forward= ibooker.book1D("qg_multiplicity_mediumPt_Forward","qg multiplicity mediumPt Forward",50,0,100);
552  mqgLikelihood_mediumPt_Forward= ibooker.book1D("qg_Likelihood_mediumPt_Forward","qg likelihood mediumPt Forward",50,-1.1,1.1);
553 
554  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_Barrel" ,mAxis2_mediumPt_Barrel));
555  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_Barrel" ,mpTD_mediumPt_Barrel));
556  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_Barrel" ,mMultiplicityQG_mediumPt_Barrel));
557  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_Barrel" ,mqgLikelihood_mediumPt_Barrel));
558  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_EndCap" ,mAxis2_mediumPt_EndCap));
559  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_EndCap" ,mpTD_mediumPt_EndCap));
560  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_EndCap" ,mMultiplicityQG_mediumPt_EndCap));
561  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_EndCap" ,mqgLikelihood_mediumPt_EndCap));
562  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_Forward" ,mAxis2_mediumPt_Forward));
563  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_Forward" ,mpTD_mediumPt_Forward));
564  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_Forward" ,mMultiplicityQG_mediumPt_Forward));
565  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_Forward" ,mqgLikelihood_mediumPt_Forward));
566 
567  mAxis2_highPt_Barrel = ibooker.book1D("qg_Axis2_highPt_Barrel","qg Axis2 #sigma_{2} highPt Barrel",50,0.,0.20);
568  mpTD_highPt_Barrel= ibooker.book1D("qg_pTD_highPt_Barrel","qg fragmentation function p_{T}^{D} highPt Barrel",50,0.15,1.05);
569  mMultiplicityQG_highPt_Barrel= ibooker.book1D("qg_multiplicity_highPt_Barrel","qg multiplicity highPt Barrel",50,0,100);
570  mqgLikelihood_highPt_Barrel= ibooker.book1D("qg_Likelihood_highPt_Barrel","qg likelihood highPt Barrel",50,-1.1,1.1);
571  mAxis2_highPt_EndCap = ibooker.book1D("qg_Axis2_highPt_EndCap","qg Axis2 #sigma_{2} highPt EndCap",50,0.,0.20);
572  mpTD_highPt_EndCap= ibooker.book1D("qg_pTD_highPt_EndCap","qg fragmentation function p_{T}^{D} highPt EndCap",50,0.15,1.05);
573  mMultiplicityQG_highPt_EndCap= ibooker.book1D("qg_multiplicity_highPt_EndCap","qg multiplicity highPt EndCap",50,0,100);
574  mqgLikelihood_highPt_EndCap= ibooker.book1D("qg_Likelihood_highPt_EndCap","qg likelihood highPt EndCap",50,-1.1,1.1);
575  mAxis2_highPt_Forward = ibooker.book1D("qg_Axis2_highPt_Forward","qg Axis2 #sigma_{2} highPt Forward",50,0.,0.20);
576  mpTD_highPt_Forward= ibooker.book1D("qg_pTD_highPt_Forward","qg fragmentation function p_{T}^{D} highPt Forward",50,0.15,1.05);
577  mMultiplicityQG_highPt_Forward= ibooker.book1D("qg_multiplicity_highPt_Forward","qg multiplicity highPt Forward",50,0,100);
578  mqgLikelihood_highPt_Forward= ibooker.book1D("qg_Likelihood_highPt_Forward","qg likelihood highPt Forward",50,-1.1,1.1);
579 
580  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_Barrel" ,mAxis2_highPt_Barrel));
581  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_Barrel" ,mpTD_highPt_Barrel));
582  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_Barrel" ,mMultiplicityQG_highPt_Barrel));
583  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_Barrel" ,mqgLikelihood_highPt_Barrel));
584  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_EndCap" ,mAxis2_highPt_EndCap));
585  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_EndCap" ,mpTD_highPt_EndCap));
586  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_EndCap" ,mMultiplicityQG_highPt_EndCap));
587  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_EndCap" ,mqgLikelihood_highPt_EndCap));
588  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_Forward" ,mAxis2_highPt_Forward));
589  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_Forward" ,mpTD_highPt_Forward));
590  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_Forward" ,mMultiplicityQG_highPt_Forward));
591  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_Forward" ,mqgLikelihood_highPt_Forward));
592  }
593  }*/
594  //PFJet specific histograms
595  mCHFracVSeta_lowPt= ibooker.bookProfile("CHFracVSeta_lowPt","CHFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
596  mNHFracVSeta_lowPt= ibooker.bookProfile("NHFacVSeta_lowPt","NHFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
597  mPhFracVSeta_lowPt= ibooker.bookProfile("PhFracVSeta_lowPt","PhFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
598  mCHFracVSeta_mediumPt= ibooker.bookProfile("CHFracVSeta_mediumPt","CHFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
599  mNHFracVSeta_mediumPt= ibooker.bookProfile("NHFracVSeta_mediumPt","NHFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
600  mPhFracVSeta_mediumPt= ibooker.bookProfile("PhFracVSeta_mediumPt","PhFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
601  mCHFracVSeta_highPt= ibooker.bookProfile("CHFracVSeta_highPt","CHFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
602  mNHFracVSeta_highPt= ibooker.bookProfile("NHFracVSeta_highPt","NHFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
603  mPhFracVSeta_highPt= ibooker.bookProfile("PhFracVSeta_highPt","PhFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
604 
605  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracVSeta_lowPt" ,mCHFracVSeta_lowPt));
606  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracVSeta_lowPt" ,mNHFracVSeta_lowPt));
607  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracVSeta_lowPt" ,mPhFracVSeta_lowPt));
608  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracVSeta_mediumPt" ,mCHFracVSeta_mediumPt));
609  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracVSeta_mediumPt" ,mNHFracVSeta_mediumPt));
610  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracVSeta_mediumPt" ,mPhFracVSeta_mediumPt));
611  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracVSeta_highPt" ,mCHFracVSeta_highPt));
612  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracVSeta_highPt" ,mNHFracVSeta_highPt));
613  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracVSeta_highPt" ,mPhFracVSeta_highPt));
614 
615  mLooseMVAPUJIDPassFractionVSeta = ibooker.bookProfile("LooseMVAPUIDPassFractionVSeta","LooseMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
616  mLooseMVAPUJIDPassFractionVSpt = ibooker.bookProfile("LooseMVAPUIDPassFractionVSpt","LooseMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
617  mMediumMVAPUJIDPassFractionVSeta = ibooker.bookProfile("MediumMVAPUIDPassFractionVSeta","MediumMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
618  mMediumMVAPUJIDPassFractionVSpt = ibooker.bookProfile("MediumMVAPUIDPassFractionVSpt","MediumMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
619  mTightMVAPUJIDPassFractionVSeta = ibooker.bookProfile("TightMVAPUIDPassFractionVSeta","TightMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
620  mTightMVAPUJIDPassFractionVSpt = ibooker.bookProfile("TightMVAPUIDPassFractionVSpt","TightMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
621 
622  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"LooseMVAPUIDPassFractionVSeta",mLooseMVAPUJIDPassFractionVSeta));
623  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"LooseMVAPUIDPassFractionVSpt",mLooseMVAPUJIDPassFractionVSpt));
624  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MediumMVAPUIDPassFractionVSeta",mMediumMVAPUJIDPassFractionVSeta));
625  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MediumMVAPUIDPassFractionVSpt",mMediumMVAPUJIDPassFractionVSpt));
626  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TightMVAPUIDPassFractionVSeta",mTightMVAPUJIDPassFractionVSeta));
627  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TightMVAPUIDPassFractionVSpt",mTightMVAPUJIDPassFractionVSpt));
628 
629  mLooseCutPUJIDPassFractionVSeta = ibooker.bookProfile("LooseCutPUIDPassFractionVSeta","LooseCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
630  mLooseCutPUJIDPassFractionVSpt = ibooker.bookProfile("LooseCutPUIDPassFractionVSpt","LooseCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
631  mMediumCutPUJIDPassFractionVSeta = ibooker.bookProfile("MediumCutPUIDPassFractionVSeta","MediumCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
632  mMediumCutPUJIDPassFractionVSpt = ibooker.bookProfile("MediumCutPUIDPassFractionVSpt","MediumCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
633  mTightCutPUJIDPassFractionVSeta = ibooker.bookProfile("TightCutPUIDPassFractionVSeta","TightCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
634  mTightCutPUJIDPassFractionVSpt = ibooker.bookProfile("TightCutPUIDPassFractionVSpt","TightCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
635  mCutPUJIDDiscriminant_lowPt_Barrel = ibooker.book1D("CutPUJIDDiscriminant_lowPt_Barrel","CutPUJIDDiscriminant_lowPt_Barrel",50, -1.00, 1.00);
636  mCutPUJIDDiscriminant_lowPt_EndCap = ibooker.book1D("CutPUJIDDiscriminant_lowPt_EndCap","CutPUJIDDiscriminant_lowPt_EndCap",50, -1.00, 1.00);
637  mCutPUJIDDiscriminant_lowPt_Forward = ibooker.book1D("CutPUJIDDiscriminant_lowPt_Forward","CutPUJIDDiscriminant_lowPt_Forward",50, -1.00, 1.00);
638  mCutPUJIDDiscriminant_mediumPt_Barrel = ibooker.book1D("CutPUJIDDiscriminant_mediumPt_Barrel","CutPUJIDDiscriminant_mediumPt_Barrel",50, -1.00, 1.00);
639  mCutPUJIDDiscriminant_mediumPt_EndCap = ibooker.book1D("CutPUJIDDiscriminant_mediumPt_EndCap","CutPUJIDDiscriminant_mediumPt_EndCap",50, -1.00, 1.00);
640  mCutPUJIDDiscriminant_mediumPt_Forward = ibooker.book1D("CutPUJIDDiscriminant_mediumPt_Forward","CutPUJIDDiscriminant_mediumPt_Forward",50, -1.00, 1.00);
641  mCutPUJIDDiscriminant_highPt_Barrel = ibooker.book1D("CutPUJIDDiscriminant_highPt_Barrel","CutPUJIDDiscriminant_highPt_Barrel",50, -1.00, 1.00);
642  mCutPUJIDDiscriminant_highPt_EndCap = ibooker.book1D("CutPUJIDDiscriminant_highPt_EndCap","CutPUJIDDiscriminant_highPt_EndCap",50, -1.00, 1.00);
643  mCutPUJIDDiscriminant_highPt_Forward = ibooker.book1D("CutPUJIDDiscriminant_highPt_Forward","CutPUJIDDiscriminant_highPt_Forward",50, -1.00, 1.00);
644 
645  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"LooseCutPUIDPassFractionVSeta",mLooseCutPUJIDPassFractionVSeta));
646  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"LooseCutPUIDPassFractionVSpt",mLooseCutPUJIDPassFractionVSpt));
647  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MediumCutPUIDPassFractionVSeta",mMediumCutPUJIDPassFractionVSeta));
648  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MediumCutPUIDPassFractionVSpt",mMediumCutPUJIDPassFractionVSpt));
649  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TightCutPUIDPassFractionVSeta",mTightCutPUJIDPassFractionVSeta));
650  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TightCutPUIDPassFractionVSpt",mTightCutPUJIDPassFractionVSpt));
651  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_lowPt_Barrel",mCutPUJIDDiscriminant_lowPt_Barrel));
652  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_lowPt_EndCap",mCutPUJIDDiscriminant_lowPt_EndCap));
653  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_lowPt_Forward",mCutPUJIDDiscriminant_lowPt_Forward));
654  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_mediumPt_Barrel",mCutPUJIDDiscriminant_mediumPt_Barrel));
655  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_mediumPt_EndCap",mCutPUJIDDiscriminant_mediumPt_EndCap));
656  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_mediumPt_Forward",mCutPUJIDDiscriminant_mediumPt_Forward));
657  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_highPt_Barrel",mCutPUJIDDiscriminant_highPt_Barrel));
658  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_highPt_EndCap",mCutPUJIDDiscriminant_highPt_EndCap));
659  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CutPUJIDDiscriminant_highPt_Forward",mCutPUJIDDiscriminant_highPt_Forward));
660  //barrel histograms for PFJets
661  // energy fractions
662  mCHFrac_lowPt_Barrel = ibooker.book1D("CHFrac_lowPt_Barrel", "CHFrac_lowPt_Barrel", 120, -0.1, 1.1);
663  mNHFrac_lowPt_Barrel = ibooker.book1D("NHFrac_lowPt_Barrel", "NHFrac_lowPt_Barrel", 120, -0.1, 1.1);
664  mPhFrac_lowPt_Barrel = ibooker.book1D("PhFrac_lowPt_Barrel", "PhFrac_lowPt_Barrel", 120, -0.1, 1.1);
665  mCHFrac_mediumPt_Barrel = ibooker.book1D("CHFrac_mediumPt_Barrel", "CHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
666  mNHFrac_mediumPt_Barrel = ibooker.book1D("NHFrac_mediumPt_Barrel", "NHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
667  mPhFrac_mediumPt_Barrel = ibooker.book1D("PhFrac_mediumPt_Barrel", "PhFrac_mediumPt_Barrel", 120, -0.1, 1.1);
668  mCHFrac_highPt_Barrel = ibooker.book1D("CHFrac_highPt_Barrel", "CHFrac_highPt_Barrel", 120, -0.1, 1.1);
669  mNHFrac_highPt_Barrel = ibooker.book1D("NHFrac_highPt_Barrel", "NHFrac_highPt_Barrel", 120, -0.1, 1.1);
670  mPhFrac_highPt_Barrel = ibooker.book1D("PhFrac_highPt_Barrel", "PhFrac_highPt_Barrel", 120, -0.1, 1.1);
671 
672  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_lowPt_Barrel" ,mCHFrac_lowPt_Barrel));
673  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_lowPt_Barrel" ,mNHFrac_lowPt_Barrel));
674  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_lowPt_Barrel" ,mPhFrac_lowPt_Barrel));
675  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_mediumPt_Barrel" ,mCHFrac_mediumPt_Barrel));
676  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_mediumPt_Barrel" ,mNHFrac_mediumPt_Barrel));
677  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_mediumPt_Barrel" ,mPhFrac_mediumPt_Barrel));
678  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_highPt_Barrel" ,mCHFrac_highPt_Barrel));
679  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_highPt_Barrel" ,mNHFrac_highPt_Barrel));
680  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_highPt_Barrel" ,mPhFrac_highPt_Barrel));
681 
682  mMass_lowPt_Barrel = ibooker.book1D("JetMass_lowPt_Barrel", "JetMass_lowPt_Barrel", 50, 0, 150);
683  mMass_lowPt_EndCap = ibooker.book1D("JetMass_lowPt_EndCap", "JetMass_lowPt_EndCap", 50, 0, 150);
684  mMass_lowPt_Forward = ibooker.book1D("JetMass_lowPt_Forward", "JetMass_lowPt_Forward", 50, 0, 150);
685  mMass_mediumPt_Barrel = ibooker.book1D("JetMass_mediumPt_Barrel", "JetMass_mediumPt_Barrel", 50, 0, 150);
686  mMass_mediumPt_EndCap = ibooker.book1D("JetMass_mediumPt_EndCap", "JetMass_mediumPt_EndCap", 50, 0, 150);
687  mMass_mediumPt_Forward = ibooker.book1D("JetMass_mediumPt_Forward", "JetMass_mediumPt_Forward", 75, 0, 150);
688  mMass_highPt_Barrel = ibooker.book1D("JetMass_highPt_Barrel", "JetMass_highPt_Barrel", 50, 0, 150);
689  mMass_highPt_EndCap = ibooker.book1D("JetMass_highPt_EndCap", "JetMass_highPt_EndCap", 50, 0, 150);
690  mMass_highPt_Forward = ibooker.book1D("JetMass_highPt_Forward", "JetMass_highPt_Forward", 50, 0, 150);
691 
692  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_lowPt_Barrel" , mMass_lowPt_Barrel ));
693  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_lowPt_EndCap" , mMass_lowPt_EndCap ));
694  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_lowPt_Forward" , mMass_lowPt_Forward ));
695  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_mediumPt_Barrel" , mMass_mediumPt_Barrel ));
696  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_mediumPt_EndCap" , mMass_mediumPt_EndCap ));
697  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_mediumPt_Forward" , mMass_mediumPt_Forward ));
698  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_highPt_Barrel" , mMass_highPt_Barrel ));
699  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_highPt_EndCap" , mMass_highPt_EndCap ));
700  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_highPt_Forward" , mMass_highPt_Forward ));
701 
702 
703  //energies
704  mCHEn_lowPt_Barrel = ibooker.book1D("CHEn_lowPt_Barrel", "CHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
705  mNHEn_lowPt_Barrel = ibooker.book1D("NHEn_lowPt_Barrel", "NHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
706  mPhEn_lowPt_Barrel = ibooker.book1D("PhEn_lowPt_Barrel", "PhEn_lowPt_Barrel", ptBin_, 0., ptMax_);
707  mElEn_lowPt_Barrel = ibooker.book1D("ElEn_lowPt_Barrel", "ElEn_lowPt_Barrel", ptBin_, 0., 100);
708  mMuEn_lowPt_Barrel = ibooker.book1D("MuEn_lowPt_Barrel", "MuEn_lowPt_Barrel", ptBin_, 0., 100);
709  mCHEn_mediumPt_Barrel = ibooker.book1D("CHEn_mediumPt_Barrel", "CHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
710  mNHEn_mediumPt_Barrel = ibooker.book1D("NHEn_mediumPt_Barrel", "NHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
711  mPhEn_mediumPt_Barrel = ibooker.book1D("PhEn_mediumPt_Barrel", "PhEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
712  mElEn_mediumPt_Barrel = ibooker.book1D("ElEn_mediumPt_Barrel", "ElEn_mediumPt_Barrel", ptBin_, 0., 100);
713  mMuEn_mediumPt_Barrel = ibooker.book1D("MuEn_mediumPt_Barrel", "MuEn_mediumPt_Barrel", ptBin_, 0., 100);
714  mCHEn_highPt_Barrel = ibooker.book1D("CHEn_highPt_Barrel", "CHEn_highPt_Barrel", ptBin_, 0., 1.1*ptMax_);
715  mNHEn_highPt_Barrel = ibooker.book1D("NHEn_highPt_Barrel", "NHEn_highPt_Barrel", ptBin_, 0., ptMax_);
716  mPhEn_highPt_Barrel = ibooker.book1D("PhEn_highPt_Barrel", "PhEn_highPt_Barrel", ptBin_, 0., ptMax_);
717  mElEn_highPt_Barrel = ibooker.book1D("ElEn_highPt_Barrel", "ElEn_highPt_Barrel", ptBin_, 0., 100);
718  mMuEn_highPt_Barrel = ibooker.book1D("MuEn_highPt_Barrel", "MuEn_highPt_Barrel", ptBin_, 0., 100);
719 
720  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_lowPt_Barrel" ,mCHEn_lowPt_Barrel));
721  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_lowPt_Barrel" ,mNHEn_lowPt_Barrel));
722  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_lowPt_Barrel" ,mPhEn_lowPt_Barrel));
723  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_lowPt_Barrel" ,mElEn_lowPt_Barrel));
724  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_lowPt_Barrel" ,mMuEn_lowPt_Barrel));
725  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_mediumPt_Barrel" ,mCHEn_mediumPt_Barrel));
726  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_mediumPt_Barrel" ,mNHEn_mediumPt_Barrel));
727  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_mediumPt_Barrel" ,mPhEn_mediumPt_Barrel));
728  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_mediumPt_Barrel" ,mElEn_mediumPt_Barrel));
729  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_mediumPt_Barrel" ,mMuEn_mediumPt_Barrel));
730  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_highPt_Barrel" ,mCHEn_highPt_Barrel));
731  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_highPt_Barrel" ,mNHEn_highPt_Barrel));
732  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_highPt_Barrel" ,mPhEn_highPt_Barrel));
733  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_highPt_Barrel" ,mElEn_highPt_Barrel));
734  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_highPt_Barrel" ,mMuEn_highPt_Barrel));
735 
736  //multiplicities
737  mChMultiplicity_lowPt_Barrel = ibooker.book1D("ChMultiplicity_lowPt_Barrel", "ChMultiplicity_lowPt_Barrel", 60,0,60);
738  mNeutMultiplicity_lowPt_Barrel = ibooker.book1D("NeutMultiplicity_lowPt_Barrel", "NeutMultiplicity_lowPt_Barrel", 60,0,60);
739  mMuMultiplicity_lowPt_Barrel = ibooker.book1D("MuMultiplicity_lowPt_Barrel", "MuMultiplicity_lowPt_Barrel", 10,0,10);
740  mChMultiplicity_mediumPt_Barrel = ibooker.book1D("ChMultiplicity_mediumPt_Barrel", "ChMultiplicity_mediumPt_Barrel", 60,0,60);
741  mNeutMultiplicity_mediumPt_Barrel = ibooker.book1D("NeutMultiplicity_mediumPt_Barrel", "NeutMultiplicity_mediumPt_Barrel", 60,0,60);
742  mMuMultiplicity_mediumPt_Barrel = ibooker.book1D("MuMultiplicity_mediumPt_Barrel", "MuMultiplicity_mediumPt_Barrel", 10,0,10);
743  mChMultiplicity_highPt_Barrel = ibooker.book1D("ChMultiplicity_highPt_Barrel", "ChMultiplicity_highPt_Barrel", 60,0,60);
744  mNeutMultiplicity_highPt_Barrel = ibooker.book1D("NeutMultiplicity_highPt_Barrel", "NeutMultiplicity_highPt_Barrel", 60,0,60);
745  mMuMultiplicity_highPt_Barrel = ibooker.book1D("MuMultiplicity_highPt_Barrel", "MuMultiplicity_highPt_Barrel", 10,0,10);
746 
747  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_lowPt_Barrel" ,mChMultiplicity_lowPt_Barrel));
748  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_lowPt_Barrel" ,mNeutMultiplicity_lowPt_Barrel));
749  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_lowPt_Barrel" ,mMuMultiplicity_lowPt_Barrel));
750  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_mediumPt_Barrel" ,mChMultiplicity_mediumPt_Barrel));
751  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_mediumPt_Barrel" ,mNeutMultiplicity_mediumPt_Barrel));
752  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_mediumPt_Barrel" ,mMuMultiplicity_mediumPt_Barrel));
753  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_highPt_Barrel" ,mChMultiplicity_highPt_Barrel));
754  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_highPt_Barrel" ,mNeutMultiplicity_highPt_Barrel));
755  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_highPt_Barrel" ,mMuMultiplicity_highPt_Barrel));
756  }
757  //
758  if(isMiniAODJet_ || isPFJet_){
759 
760  if(!filljetsubstruc_){//not available for ak8 -> so just take out
761  mMVAPUJIDDiscriminant_lowPt_Barrel = ibooker.book1D("MVAPUJIDDiscriminant_lowPt_Barrel","MVAPUJIDDiscriminant_lowPt_Barrel",50, -1.00, 1.00);
762  mMVAPUJIDDiscriminant_lowPt_EndCap = ibooker.book1D("MVAPUJIDDiscriminant_lowPt_EndCap","MVAPUJIDDiscriminant_lowPt_EndCap",50, -1.00, 1.00);
763  mMVAPUJIDDiscriminant_lowPt_Forward = ibooker.book1D("MVAPUJIDDiscriminant_lowPt_Forward","MVAPUJIDDiscriminant_lowPt_Forward",50, -1.00, 1.00);
764  mMVAPUJIDDiscriminant_mediumPt_Barrel = ibooker.book1D("MVAPUJIDDiscriminant_mediumPt_Barrel","MVAPUJIDDiscriminant_mediumPt_Barrel",50, -1.00, 1.00);
765  mMVAPUJIDDiscriminant_mediumPt_EndCap = ibooker.book1D("MVAPUJIDDiscriminant_mediumPt_EndCap","MVAPUJIDDiscriminant_mediumPt_EndCap",50, -1.00, 1.00);
766  mMVAPUJIDDiscriminant_mediumPt_Forward = ibooker.book1D("MVAPUJIDDiscriminant_mediumPt_Forward","MVAPUJIDDiscriminant_mediumPt_Forward",50, -1.00, 1.00);
767  mMVAPUJIDDiscriminant_highPt_Barrel = ibooker.book1D("MVAPUJIDDiscriminant_highPt_Barrel","MVAPUJIDDiscriminant_highPt_Barrel",50, -1.00, 1.00);
768  mMVAPUJIDDiscriminant_highPt_EndCap = ibooker.book1D("MVAPUJIDDiscriminant_highPt_EndCap","MVAPUJIDDiscriminant_highPt_EndCap",50, -1.00, 1.00);
769  mMVAPUJIDDiscriminant_highPt_Forward = ibooker.book1D("MVAPUJIDDiscriminant_highPt_Forward","MVAPUJIDDiscriminant_highPt_Forward",50, -1.00, 1.00);
770 
771  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_lowPt_Barrel",mMVAPUJIDDiscriminant_lowPt_Barrel));
772  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_lowPt_EndCap",mMVAPUJIDDiscriminant_lowPt_EndCap));
773  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_lowPt_Forward",mMVAPUJIDDiscriminant_lowPt_Forward));
774  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_Barrel",mMVAPUJIDDiscriminant_mediumPt_Barrel));
775  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_EndCap",mMVAPUJIDDiscriminant_mediumPt_EndCap));
776  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_mediumPt_Forward",mMVAPUJIDDiscriminant_mediumPt_Forward));
777  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_highPt_Barrel",mMVAPUJIDDiscriminant_highPt_Barrel));
778  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_highPt_EndCap",mMVAPUJIDDiscriminant_highPt_EndCap));
779  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MVAPUJIDDiscriminant_highPt_Forward",mMVAPUJIDDiscriminant_highPt_Forward));
780  }
781  mCHFracVSpT_Barrel= ibooker.bookProfile("CHFracVSpT_Barrel","CHFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
782  mNHFracVSpT_Barrel= ibooker.bookProfile("NHFracVSpT_Barrel","NHFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
783  mPhFracVSpT_Barrel= ibooker.bookProfile("PhFracVSpT_Barrel","PhFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
784  mCHFracVSpT_EndCap= ibooker.bookProfile("CHFracVSpT_EndCap","CHFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
785  mNHFracVSpT_EndCap= ibooker.bookProfile("NHFracVSpT_EndCap","NHFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
786  mPhFracVSpT_EndCap= ibooker.bookProfile("PhFracVSpT_EndCap","PhFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
787  mHFHFracVSpT_Forward= ibooker.bookProfile("HFHFracVSpT_Forward","HFHFracVSpT_Forward",ptBin_, ptMin_, ptMax_,-0.2,1.2);
788  mHFEFracVSpT_Forward= ibooker.bookProfile("HFEFracVSpT_Forward","HFEFracVSpT_Forward",ptBin_, ptMin_, ptMax_,-0.2,1.2);
789 
790  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracVSpT_Barrel" ,mCHFracVSpT_Barrel));
791  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracVSpT_Barrel" ,mNHFracVSpT_Barrel));
792  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracVSpT_Barrel" ,mPhFracVSpT_Barrel));
793  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracVSpT_EndCap" ,mCHFracVSpT_EndCap));
794  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracVSpT_EndCap" ,mNHFracVSpT_EndCap));
795  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracVSpT_EndCap" ,mPhFracVSpT_EndCap));
796  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracVSpT_Forward" ,mHFHFracVSpT_Forward));
797  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEFracVSpT_Forward" ,mHFEFracVSpT_Forward));
798  }
799  if(isPFJet_){
800  //endcap monitoring
801  //energy fractions
802  mCHFrac_lowPt_EndCap = ibooker.book1D("CHFrac_lowPt_EndCap", "CHFrac_lowPt_EndCap", 120, -0.1, 1.1);
803  mNHFrac_lowPt_EndCap = ibooker.book1D("NHFrac_lowPt_EndCap", "NHFrac_lowPt_EndCap", 120, -0.1, 1.1);
804  mPhFrac_lowPt_EndCap = ibooker.book1D("PhFrac_lowPt_EndCap", "PhFrac_lowPt_EndCap", 120, -0.1, 1.1);
805  mCHFrac_mediumPt_EndCap = ibooker.book1D("CHFrac_mediumPt_EndCap", "CHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
806  mNHFrac_mediumPt_EndCap = ibooker.book1D("NHFrac_mediumPt_EndCap", "NHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
807  mPhFrac_mediumPt_EndCap = ibooker.book1D("PhFrac_mediumPt_EndCap", "PhFrac_mediumPt_EndCap", 120, -0.1, 1.1);
808  mCHFrac_highPt_EndCap = ibooker.book1D("CHFrac_highPt_EndCap", "CHFrac_highPt_EndCap", 120, -0.1, 1.1);
809  mNHFrac_highPt_EndCap = ibooker.book1D("NHFrac_highPt_EndCap", "NHFrac_highPt_EndCap", 120, -0.1, 1.1);
810  mPhFrac_highPt_EndCap = ibooker.book1D("PhFrac_highPt_EndCap", "PhFrac_highPt_EndCap", 120, -0.1, 1.1);
811 
812  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_lowPt_EndCap" ,mCHFrac_lowPt_EndCap));
813  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_lowPt_EndCap" ,mNHFrac_lowPt_EndCap));
814  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_lowPt_EndCap" ,mPhFrac_lowPt_EndCap));
815  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_mediumPt_EndCap" ,mCHFrac_mediumPt_EndCap));
816  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_mediumPt_EndCap" ,mNHFrac_mediumPt_EndCap));
817  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_mediumPt_EndCap" ,mPhFrac_mediumPt_EndCap));
818  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_highPt_EndCap" ,mCHFrac_highPt_EndCap));
819  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_highPt_EndCap" ,mNHFrac_highPt_EndCap));
820  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_highPt_EndCap" ,mPhFrac_highPt_EndCap));
821 
822  //energies
823  mCHEn_lowPt_EndCap = ibooker.book1D("CHEn_lowPt_EndCap", "CHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
824  mNHEn_lowPt_EndCap = ibooker.book1D("NHEn_lowPt_EndCap", "NHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
825  mPhEn_lowPt_EndCap = ibooker.book1D("PhEn_lowPt_EndCap", "PhEn_lowPt_EndCap", ptBin_, 0., ptMax_);
826  mElEn_lowPt_EndCap = ibooker.book1D("ElEn_lowPt_EndCap", "ElEn_lowPt_EndCap", ptBin_, 0., 100);
827  mMuEn_lowPt_EndCap = ibooker.book1D("MuEn_lowPt_EndCap", "MuEn_lowPt_EndCap", ptBin_, 0., 100);
828  mCHEn_mediumPt_EndCap = ibooker.book1D("CHEn_mediumPt_EndCap", "CHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
829  mNHEn_mediumPt_EndCap = ibooker.book1D("NHEn_mediumPt_EndCap", "NHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
830  mPhEn_mediumPt_EndCap = ibooker.book1D("PhEn_mediumPt_EndCap", "PhEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
831  mElEn_mediumPt_EndCap = ibooker.book1D("ElEn_mediumPt_EndCap", "ElEn_mediumPt_EndCap", ptBin_, 0., 100);
832  mMuEn_mediumPt_EndCap = ibooker.book1D("MuEn_mediumPt_EndCap", "MuEn_mediumPt_EndCap", ptBin_, 0., 100);
833  mCHEn_highPt_EndCap = ibooker.book1D("CHEn_highPt_EndCap", "CHEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
834  mNHEn_highPt_EndCap = ibooker.book1D("NHEn_highPt_EndCap", "NHEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
835  mPhEn_highPt_EndCap = ibooker.book1D("PhEn_highPt_EndCap", "PhEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
836  mElEn_highPt_EndCap = ibooker.book1D("ElEn_highPt_EndCap", "ElEn_highPt_EndCap", ptBin_, 0., 100);
837  mMuEn_highPt_EndCap = ibooker.book1D("MuEn_highPt_EndCap", "MuEn_highPt_EndCap", ptBin_, 0., 100);
838 
839  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_lowPt_EndCap" ,mCHEn_lowPt_EndCap));
840  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_lowPt_EndCap" ,mNHEn_lowPt_EndCap));
841  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_lowPt_EndCap" ,mPhEn_lowPt_EndCap));
842  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_lowPt_EndCap" ,mElEn_lowPt_EndCap));
843  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_lowPt_EndCap" ,mMuEn_lowPt_EndCap));
844  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_mediumPt_EndCap" ,mCHEn_mediumPt_EndCap));
845  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_mediumPt_EndCap" ,mNHEn_mediumPt_EndCap));
846  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_mediumPt_EndCap" ,mPhEn_mediumPt_EndCap));
847  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_mediumPt_EndCap" ,mElEn_mediumPt_EndCap));
848  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_mediumPt_EndCap" ,mMuEn_mediumPt_EndCap));
849  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHEn_highPt_EndCap" ,mCHEn_highPt_EndCap));
850  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHEn_highPt_EndCap" ,mNHEn_highPt_EndCap));
851  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhEn_highPt_EndCap" ,mPhEn_highPt_EndCap));
852  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ElEn_highPt_EndCap" ,mElEn_highPt_EndCap));
853  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuEn_highPt_EndCap" ,mMuEn_highPt_EndCap));
854  /*
855  //now get handle on OOT PU
856  mePhFracBarrel_BXm2BXm1Empty = ibooker.book1D("PhFracBarrel_BXm2BXm1Empty", "PHFrac prev empty 2 bunches (Barrel)", 50, 0, 1);
857  mePhFracBarrel_BXm2BXm1Filled = ibooker.book1D("PhFracBarrel_BXm2BXm1Filled", "PHFrac prev filled 2 bunches (Barrel)", 50, 0, 1);
858  meNHFracBarrel_BXm2BXm1Empty = ibooker.book1D("NHFracBarrel_BXm2BXm1Empty", "NHFrac prev empty 2 bunches (Barrel)", 50, 0, 1);
859  meNHFracBarrel_BXm2BXm1Filled = ibooker.book1D("NHFracBarrel_BXm2BXm1Filled", "NHFrac prev filled 2 bunches (Barrel)", 50, 0, 1);
860  meCHFracBarrel_BXm2BXm1Empty = ibooker.book1D("CHFracBarrel_BXm2BXm1Empty", "CHFrac prev empty 2 bunches (Barrel)", 50, 0, 1);
861  meCHFracBarrel_BXm2BXm1Filled = ibooker.book1D("CHFracBarrel_BXm2BXm1Filled", "CHFrac prev filled 2 bunches (Barrel)", 50, 0, 1);
862  mePtBarrel_BXm2BXm1Empty = ibooker.book1D("PtBarrel_BXm2BXm1Empty", "pT prev empty 2 bunches (Barrel)", ptBin_, ptMin_, ptMax_);
863  mePtBarrel_BXm2BXm1Filled = ibooker.book1D("PtBarrel_BXm2BXm1Filled", "pT prev filled 2 bunches (Barrel)", ptBin_, ptMin_, ptMax_);
864  mePhFracEndCapPlus_BXm2BXm1Empty = ibooker.book1D("PhFracEndCapPlus_BXm2BXm1Empty", "PHFrac prev empty 2 bunches (EndCapPlus)", 50, 0, 1);
865  mePhFracEndCapPlus_BXm2BXm1Filled = ibooker.book1D("PhFracEndCapPlus_BXm2BXm1Filled", "PHFrac prev filled 2 bunches (EndCapPlus)", 50, 0, 1);
866  meNHFracEndCapPlus_BXm2BXm1Empty = ibooker.book1D("NHFracEndCapPlus_BXm2BXm1Empty", "NHFrac prev empty 2 bunches (EndCapPlus)", 50, 0, 1);
867  meNHFracEndCapPlus_BXm2BXm1Filled = ibooker.book1D("NHFracEndCapPlus_BXm2BXm1Filled", "NHFrac prev filled 2 bunches (EndCapPlus)", 50, 0, 1);
868  meCHFracEndCapPlus_BXm2BXm1Empty = ibooker.book1D("CHFracEndCapPlus_BXm2BXm1Empty", "CHFrac prev empty 2 bunches (EndCapPlus)", 50, 0, 1);
869  meCHFracEndCapPlus_BXm2BXm1Filled = ibooker.book1D("CHFracEndCapPlus_BXm2BXm1Filled", "CHFrac prev filled 2 bunches (EndCapPlus)", 50, 0, 1);
870  mePtEndCapPlus_BXm2BXm1Empty = ibooker.book1D("PtEndCapPlus_BXm2BXm1Empty", "pT prev empty 2 bunches (EndCapPlus)", ptBin_, ptMin_, ptMax_);
871  mePtEndCapPlus_BXm2BXm1Filled = ibooker.book1D("PtEndCapPlus_BXm2BXm1Filled", "pT prev filled 2 bunches (EndCapPlus)", ptBin_, ptMin_, ptMax_);
872  meHFHFracPlus_BXm2BXm1Empty = ibooker.book1D("HFHFracPlus_BXm2BXm1Empty", "HFHFrac prev empty 2 bunches (EndCapPlus)", 50, 0, 1);
873  meHFHFracPlus_BXm2BXm1Filled = ibooker.book1D("HFHFracPlus_BXm2BXm1Filled", "HFHFrac prev filled 2 bunches (EndCapPlus)", 50, 0, 1);
874  meHFEMFracPlus_BXm2BXm1Empty = ibooker.book1D("HFEMFracPlus_BXm2BXm1Empty", "HFEMFrac prev empty 2 bunches (EndCapPlus)", 50, 0, 1);
875  meHFEMFracPlus_BXm2BXm1Filled = ibooker.book1D("HFEMFracPlus_BXm2BXm1Filled", "HFEMFrac prev filled 2 bunches (EndCapPlus)", 50, 0, 1);
876  mePtForwardPlus_BXm2BXm1Empty = ibooker.book1D("PtForwardPlus_BXm2BXm1Empty", "pT prev empty 2 bunches (ForwardPlus)", ptBin_, ptMin_, ptMax_);
877  mePtForwardPlus_BXm2BXm1Filled = ibooker.book1D("PtForwardPlus_BXm2BXm1Filled", "pT prev filled 2 bunches (ForwardPlus)", ptBin_, ptMin_, ptMax_);
878  mePhFracEndCapMinus_BXm2BXm1Empty = ibooker.book1D("PhFracEndCapMinus_BXm2BXm1Empty", "PHFrac prev empty 2 bunches (EndCapMinus)", 50, 0, 1);
879  mePhFracEndCapMinus_BXm2BXm1Filled = ibooker.book1D("PhFracEndCapMinus_BXm2BXm1Filled", "PHFrac prev filled 2 bunches (EndCapMinus)", 50, 0, 1);
880  meNHFracEndCapMinus_BXm2BXm1Empty = ibooker.book1D("NHFracEndCapMinus_BXm2BXm1Empty", "NHFrac prev empty 2 bunches (EndCapMinus)", 50, 0, 1);
881  meNHFracEndCapMinus_BXm2BXm1Filled = ibooker.book1D("NHFracEndCapMinus_BXm2BXm1Filled", "NHFrac prev filled 2 bunches (EndCapMinus)", 50, 0, 1);
882  meCHFracEndCapMinus_BXm2BXm1Empty = ibooker.book1D("CHFracEndCapMinus_BXm2BXm1Empty", "CHFrac prev empty 2 bunches (EndCapMinus)", 50, 0, 1);
883  meCHFracEndCapMinus_BXm2BXm1Filled = ibooker.book1D("CHFracEndCapMinus_BXm2BXm1Filled", "CHFrac prev filled 2 bunches (EndCapMinus)", 50, 0, 1);
884  mePtEndCapMinus_BXm2BXm1Empty = ibooker.book1D("PtEndCapMinus_BXm2BXm1Empty", "pT prev empty 2 bunches (EndCapMinus)", ptBin_, ptMin_, ptMax_);
885  mePtEndCapMinus_BXm2BXm1Filled = ibooker.book1D("PtEndCapMinus_BXm2BXm1Filled", "pT prev filled 2 bunches (EndCapMinus)", ptBin_, ptMin_, ptMax_);
886  meHFHFracMinus_BXm2BXm1Empty = ibooker.book1D("HFHFracMinus_BXm2BXm1Empty", "HFHFrac prev empty 2 bunches (EndCapMinus)", 50, 0, 1);
887  meHFHFracMinus_BXm2BXm1Filled = ibooker.book1D("HFHFracMinus_BXm2BXm1Filled", "HFHFrac prev filled 2 bunches (EndCapMinus)", 50, 0, 1);
888  meHFEMFracMinus_BXm2BXm1Empty = ibooker.book1D("HFEMFracMinus_BXm2BXm1Empty", "HFEMFrac prev empty 2 bunches (EndCapMinus)", 50, 0, 1);
889  meHFEMFracMinus_BXm2BXm1Filled = ibooker.book1D("HFEMFracMinus_BXm2BXm1Filled", "HFEMFrac prev filled 2 bunches (EndCapMinus)", 50, 0, 1);
890  mePtForwardMinus_BXm2BXm1Empty = ibooker.book1D("PtForwardMinus_BXm2BXm1Empty", "pT prev empty 2 bunches (ForwardMinus)", ptBin_, ptMin_, ptMax_);
891  mePtForwardMinus_BXm2BXm1Filled = ibooker.book1D("PtForwardMinus_BXm2BXm1Filled", "pT prev filled 2 bunches (ForwardMinus)", ptBin_, ptMin_, ptMax_);
892  meEta_BXm2BXm1Empty = ibooker.book1D("Eta_BXm2BXm1Empty", "eta prev empty 2 bunches", etaBin_, etaMin_, etaMax_);
893  meEta_BXm2BXm1Filled = ibooker.book1D("Eta_BXm2BXm1Filled", "eta prev filled 2 bunches", etaBin_, etaMin_, etaMax_);
894 
895  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracBarrel_BXm2BXm1Empty" ,mePhFracBarrel_BXm2BXm1Empty));
896  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracBarrel_BXm2BXm1Filled" ,mePhFracBarrel_BXm2BXm1Filled));
897  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracBarrel_BXm2BXm1Empty" ,meNHFracBarrel_BXm2BXm1Empty));
898  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracBarrel_BXm2BXm1Filled" ,meNHFracBarrel_BXm2BXm1Filled));
899  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracBarrel_BXm2BXm1Empty" ,meCHFracBarrel_BXm2BXm1Empty));
900  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracBarrel_BXm2BXm1Filled" ,meCHFracBarrel_BXm2BXm1Filled));
901  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtBarrel_BXm2BXm1Empty" ,mePtBarrel_BXm2BXm1Empty));
902  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtBarrel_BXm2BXm1Filled" ,mePtBarrel_BXm2BXm1Filled));
903  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapPlus_BXm2BXm1Empty" ,mePhFracEndCapPlus_BXm2BXm1Empty));
904  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapPlus_BXm2BXm1Filled" ,mePhFracEndCapPlus_BXm2BXm1Filled));
905  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapPlus_BXm2BXm1Empty" ,meNHFracEndCapPlus_BXm2BXm1Empty));
906  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapPlus_BXm2BXm1Filled" ,meNHFracEndCapPlus_BXm2BXm1Filled));
907  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapPlus_BXm2BXm1Empty" ,meCHFracEndCapPlus_BXm2BXm1Empty));
908  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapPlus_BXm2BXm1Filled" ,meCHFracEndCapPlus_BXm2BXm1Filled));
909  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapPlus_BXm2BXm1Empty" ,mePtEndCapPlus_BXm2BXm1Empty));
910  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapPlus_BXm2BXm1Filled" ,mePtEndCapPlus_BXm2BXm1Filled));
911  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracPlus_BXm2BXm1Empty" ,meHFHFracPlus_BXm2BXm1Empty));
912  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracPlus_BXm2BXm1Filled" ,meHFHFracPlus_BXm2BXm1Filled));
913  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracPlus_BXm2BXm1Empty" ,meHFEMFracPlus_BXm2BXm1Empty));
914  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracPlus_BXm2BXm1Filled" ,meHFEMFracPlus_BXm2BXm1Filled));
915  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardPlus_BXm2BXm1Empty" ,mePtForwardPlus_BXm2BXm1Empty));
916  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardPlus_BXm2BXm1Filled" ,mePtForwardPlus_BXm2BXm1Filled));
917  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapMinus_BXm2BXm1Empty" ,mePhFracEndCapMinus_BXm2BXm1Empty));
918  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapMinus_BXm2BXm1Filled" ,mePhFracEndCapMinus_BXm2BXm1Filled));
919  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapMinus_BXm2BXm1Empty" ,meNHFracEndCapMinus_BXm2BXm1Empty));
920  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapMinus_BXm2BXm1Filled" ,meNHFracEndCapMinus_BXm2BXm1Filled));
921  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapMinus_BXm2BXm1Empty" ,meCHFracEndCapMinus_BXm2BXm1Empty));
922  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapMinus_BXm2BXm1Filled" ,meCHFracEndCapMinus_BXm2BXm1Filled));
923  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapMinus_BXm2BXm1Empty" ,mePtEndCapMinus_BXm2BXm1Empty));
924  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapMinus_BXm2BXm1Filled" ,mePtEndCapMinus_BXm2BXm1Filled));
925  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracMinus_BXm2BXm1Empty" ,meHFHFracMinus_BXm2BXm1Empty));
926  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracMinus_BXm2BXm1Filled" ,meHFHFracMinus_BXm2BXm1Filled));
927  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracMinus_BXm2BXm1Empty" ,meHFEMFracMinus_BXm2BXm1Empty));
928  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracMinus_BXm2BXm1Filled" ,meHFEMFracMinus_BXm2BXm1Filled));
929  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardMinus_BXm2BXm1Empty" ,mePtForwardMinus_BXm2BXm1Empty));
930  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardMinus_BXm2BXm1Filled" ,mePtForwardMinus_BXm2BXm1Filled));
931  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_BXm2BXm1Empty" ,meEta_BXm2BXm1Empty));
932  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_BXm2BXm1Filled",meEta_BXm2BXm1Filled));
933  */
934  mePhFracBarrel_BXm1Empty = ibooker.book1D("PhFracBarrel_BXm1Empty", "PHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
935  mePhFracBarrel_BXm1Filled = ibooker.book1D("PhFracBarrel_BXm1Filled", "PHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
936  meNHFracBarrel_BXm1Empty = ibooker.book1D("NHFracBarrel_BXm1Empty", "NHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
937  meNHFracBarrel_BXm1Filled = ibooker.book1D("NHFracBarrel_BXm1Filled", "NHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
938  meCHFracBarrel_BXm1Empty = ibooker.book1D("CHFracBarrel_BXm1Empty", "CHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
939  meCHFracBarrel_BXm1Filled = ibooker.book1D("CHFracBarrel_BXm1Filled", "CHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
940  mePtBarrel_BXm1Empty = ibooker.book1D("PtBarrel_BXm1Empty", "pT prev empty 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
941  mePtBarrel_BXm1Filled = ibooker.book1D("PtBarrel_BXm1Filled", "pT prev filled 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
942  mePhFracEndCapPlus_BXm1Empty = ibooker.book1D("PhFracEndCapPlus_BXm1Empty", "PHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
943  mePhFracEndCapPlus_BXm1Filled = ibooker.book1D("PhFracEndCapPlus_BXm1Filled", "PHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
944  meNHFracEndCapPlus_BXm1Empty = ibooker.book1D("NHFracEndCapPlus_BXm1Empty", "NHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
945  meNHFracEndCapPlus_BXm1Filled = ibooker.book1D("NHFracEndCapPlus_BXm1Filled", "NHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
946  meCHFracEndCapPlus_BXm1Empty = ibooker.book1D("CHFracEndCapPlus_BXm1Empty", "CHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
947  meCHFracEndCapPlus_BXm1Filled = ibooker.book1D("CHFracEndCapPlus_BXm1Filled", "CHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
948  mePtEndCapPlus_BXm1Empty = ibooker.book1D("PtEndCapPlus_BXm1Empty", "pT prev empty 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
949  mePtEndCapPlus_BXm1Filled = ibooker.book1D("PtEndCapPlus_BXm1Filled", "pT prev filled 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
950  meHFHFracPlus_BXm1Empty = ibooker.book1D("HFHFracPlus_BXm1Empty", "HFHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
951  meHFHFracPlus_BXm1Filled = ibooker.book1D("HFHFracPlus_BXm1Filled", "HFHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
952  meHFEMFracPlus_BXm1Empty = ibooker.book1D("HFEMFracPlus_BXm1Empty", "HFEMFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
953  meHFEMFracPlus_BXm1Filled = ibooker.book1D("HFEMFracPlus_BXm1Filled", "HFEMFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
954  mePtForwardPlus_BXm1Empty = ibooker.book1D("PtForwardPlus_BXm1Empty", "pT prev empty 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
955  mePtForwardPlus_BXm1Filled = ibooker.book1D("PtForwardPlus_BXm1Filled", "pT prev filled 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
956  mePhFracEndCapMinus_BXm1Empty = ibooker.book1D("PhFracEndCapMinus_BXm1Empty", "PHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
957  mePhFracEndCapMinus_BXm1Filled = ibooker.book1D("PhFracEndCapMinus_BXm1Filled", "PHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
958  meNHFracEndCapMinus_BXm1Empty = ibooker.book1D("NHFracEndCapMinus_BXm1Empty", "NHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
959  meNHFracEndCapMinus_BXm1Filled = ibooker.book1D("NHFracEndCapMinus_BXm1Filled", "NHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
960  meCHFracEndCapMinus_BXm1Empty = ibooker.book1D("CHFracEndCapMinus_BXm1Empty", "CHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
961  meCHFracEndCapMinus_BXm1Filled = ibooker.book1D("CHFracEndCapMinus_BXm1Filled", "CHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
962  mePtEndCapMinus_BXm1Empty = ibooker.book1D("PtEndCapMinus_BXm1Empty", "pT prev empty 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
963  mePtEndCapMinus_BXm1Filled = ibooker.book1D("PtEndCapMinus_BXm1Filled", "pT prev filled 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
964  meHFHFracMinus_BXm1Empty = ibooker.book1D("HFHFracMinus_BXm1Empty", "HFHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
965  meHFHFracMinus_BXm1Filled = ibooker.book1D("HFHFracMinus_BXm1Filled", "HFHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
966  meHFEMFracMinus_BXm1Empty = ibooker.book1D("HFEMFracMinus_BXm1Empty", "HFEMFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
967  meHFEMFracMinus_BXm1Filled = ibooker.book1D("HFEMFracMinus_BXm1Filled", "HFEMFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
968  mePtForwardMinus_BXm1Empty = ibooker.book1D("PtForwardMinus_BXm1Empty", "pT prev empty 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
969  mePtForwardMinus_BXm1Filled = ibooker.book1D("PtForwardMinus_BXm1Filled", "pT prev filled 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
970  meEta_BXm1Empty = ibooker.book1D("Eta_BXm1Empty", "eta prev empty 1 bunch", etaBin_, etaMin_, etaMax_);
971  meEta_BXm1Filled = ibooker.book1D("Eta_BXm1Filled", "eta prev filled 1 bunch", etaBin_, etaMin_, etaMax_);
972 
973  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracBarrel_BXm1Empty" ,mePhFracBarrel_BXm1Empty));
974  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracBarrel_BXm1Filled" ,mePhFracBarrel_BXm1Filled));
975  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracBarrel_BXm1Empty" ,meNHFracBarrel_BXm1Empty));
976  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracBarrel_BXm1Filled" ,meNHFracBarrel_BXm1Filled));
977  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracBarrel_BXm1Empty" ,meCHFracBarrel_BXm1Empty));
978  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracBarrel_BXm1Filled" ,meCHFracBarrel_BXm1Filled));
979  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtBarrel_BXm1Empty" ,mePtBarrel_BXm1Empty));
980  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtBarrel_BXm1Filled" ,mePtBarrel_BXm1Filled));
981  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapPlus_BXm1Empty" ,mePhFracEndCapPlus_BXm1Empty));
982  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapPlus_BXm1Filled" ,mePhFracEndCapPlus_BXm1Filled));
983  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapPlus_BXm1Empty" ,meNHFracEndCapPlus_BXm1Empty));
984  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapPlus_BXm1Filled" ,meNHFracEndCapPlus_BXm1Filled));
985  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapPlus_BXm1Empty" ,meCHFracEndCapPlus_BXm1Empty));
986  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapPlus_BXm1Filled" ,meCHFracEndCapPlus_BXm1Filled));
987  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapPlus_BXm1Empty" ,mePtEndCapPlus_BXm1Empty));
988  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapPlus_BXm1Filled" ,mePtEndCapPlus_BXm1Filled));
989  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracPlus_BXm1Empty" ,meHFHFracPlus_BXm1Empty));
990  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracPlus_BXm1Filled" ,meHFHFracPlus_BXm1Filled));
991  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracPlus_BXm1Empty" ,meHFEMFracPlus_BXm1Empty));
992  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracPlus_BXm1Filled" ,meHFEMFracPlus_BXm1Filled));
993  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardPlus_BXm1Empty" ,mePtForwardPlus_BXm1Empty));
994  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardPlus_BXm1Filled" ,mePtForwardPlus_BXm1Filled));
995  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapMinus_BXm1Empty" ,mePhFracEndCapMinus_BXm1Empty));
996  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFracEndCapMinus_BXm1Filled" ,mePhFracEndCapMinus_BXm1Filled));
997  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapMinus_BXm1Empty" ,meNHFracEndCapMinus_BXm1Empty));
998  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFracEndCapMinus_BXm1Filled" ,meNHFracEndCapMinus_BXm1Filled));
999  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapMinus_BXm1Empty" ,meCHFracEndCapMinus_BXm1Empty));
1000  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFracEndCapMinus_BXm1Filled" ,meCHFracEndCapMinus_BXm1Filled));
1001  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapMinus_BXm1Empty" ,mePtEndCapMinus_BXm1Empty));
1002  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtEndCapMinus_BXm1Filled" ,mePtEndCapMinus_BXm1Filled));
1003  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracMinus_BXm1Empty" ,meHFHFracMinus_BXm1Empty));
1004  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFracMinus_BXm1Filled" ,meHFHFracMinus_BXm1Filled));
1005  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracMinus_BXm1Empty" ,meHFEMFracMinus_BXm1Empty));
1006  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFracMinus_BXm1Filled" ,meHFEMFracMinus_BXm1Filled));
1007  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardMinus_BXm1Empty" ,mePtForwardMinus_BXm1Empty));
1008  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PtForwardMinus_BXm1Filled" ,mePtForwardMinus_BXm1Filled));
1009  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_BXm1Empty" ,meEta_BXm1Empty));
1010  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_BXm1Filled",meEta_BXm1Filled));
1011 
1012  //multiplicities
1013  mChMultiplicity_lowPt_EndCap = ibooker.book1D("ChMultiplicity_lowPt_EndCap", "ChMultiplicity_lowPt_EndCap", 60,0,60);
1014  mNeutMultiplicity_lowPt_EndCap = ibooker.book1D("NeutMultiplicity_lowPt_EndCap", "NeutMultiplicity_lowPt_EndCap", 60,0,60);
1015  mMuMultiplicity_lowPt_EndCap = ibooker.book1D("MuMultiplicity_lowPt_EndCap", "MuMultiplicity_lowPt_EndCap", 10,0,10);
1016  mChMultiplicity_mediumPt_EndCap = ibooker.book1D("ChMultiplicity_mediumPt_EndCap", "ChMultiplicity_mediumPt_EndCap", 60,0,60);
1017  mNeutMultiplicity_mediumPt_EndCap = ibooker.book1D("NeutMultiplicity_mediumPt_EndCap", "NeutMultiplicity_mediumPt_EndCap", 60,0,60);
1018  mMuMultiplicity_mediumPt_EndCap = ibooker.book1D("MuMultiplicity_mediumPt_EndCap", "MuMultiplicity_mediumPt_EndCap", 10,0,10);
1019  mChMultiplicity_highPt_EndCap = ibooker.book1D("ChMultiplicity_highPt_EndCap", "ChMultiplicity_highPt_EndCap", 60,0,60);
1020  mNeutMultiplicity_highPt_EndCap = ibooker.book1D("NeutMultiplicity_highPt_EndCap", "NeutMultiplicity_highPt_EndCap", 60,0,60);
1021  mMuMultiplicity_highPt_EndCap = ibooker.book1D("MuMultiplicity_highPt_EndCap", "MuMultiplicity_highPt_EndCap", 10,0,10);
1022 
1023  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_lowPt_EndCap" ,mChMultiplicity_lowPt_EndCap));
1024  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_lowPt_EndCap" ,mNeutMultiplicity_lowPt_EndCap));
1025  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_lowPt_EndCap" ,mMuMultiplicity_lowPt_EndCap));
1026  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_mediumPt_EndCap" ,mChMultiplicity_mediumPt_EndCap));
1027  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_mediumPt_EndCap" ,mNeutMultiplicity_mediumPt_EndCap));
1028  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_mediumPt_EndCap" ,mMuMultiplicity_mediumPt_EndCap));
1029  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChMultiplicity_highPt_EndCap" ,mChMultiplicity_highPt_EndCap));
1030  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_highPt_EndCap" ,mNeutMultiplicity_highPt_EndCap));
1031  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuMultiplicity_highPt_EndCap" ,mMuMultiplicity_highPt_EndCap));
1032 
1033  //forward monitoring
1034  //energy fraction
1035  mHFEFrac_lowPt_Forward = ibooker.book1D("HFEFrac_lowPt_Forward", "HFEFrac_lowPt_Forward", 70, -0.2, 1.2);
1036  mHFHFrac_lowPt_Forward = ibooker.book1D("HFHFrac_lowPt_Forward", "HFHFrac_lowPt_Forward", 70, -0.2, 1.2);
1037  mHFEFrac_mediumPt_Forward = ibooker.book1D("HFEFrac_mediumPt_Forward", "HFEFrac_mediumPt_Forward", 70, -0.2, 1.2);
1038  mHFHFrac_mediumPt_Forward = ibooker.book1D("HFHFrac_mediumPt_Forward", "HFHFrac_mediumPt_Forward", 70, -0.2, 1.2);
1039  mHFEFrac_highPt_Forward = ibooker.book1D("HFEFrac_highPt_Forward", "HFEFrac_highPt_Forward", 70, -0.2, 1.2);
1040  mHFHFrac_highPt_Forward = ibooker.book1D("HFHFrac_highPt_Forward", "HFHFrac_highPt_Forward", 70, -0.2, 1.2);
1041  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFrac_lowPt_Forward" ,mHFHFrac_lowPt_Forward));
1042  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEFrac_lowPt_Forward" ,mHFEFrac_lowPt_Forward));
1043  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFrac_mediumPt_Forward" ,mHFHFrac_mediumPt_Forward));
1044  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEFrac_mediumPt_Forward" ,mHFEFrac_mediumPt_Forward));
1045  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFrac_highPt_Forward" ,mHFHFrac_highPt_Forward));
1046  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEFrac_highPt_Forward" ,mHFEFrac_highPt_Forward));
1047 
1048  //energies
1049  mHFEEn_lowPt_Forward = ibooker.book1D("HFEEn_lowPt_Forward", "HFEEn_lowPt_Forward", ptBin_, 0., ptMax_);
1050  mHFHEn_lowPt_Forward = ibooker.book1D("HFHEn_lowPt_Forward", "HFHEn_lowPt_Forward", ptBin_, 0., 2.0*ptMax_);
1051  mHFEEn_mediumPt_Forward = ibooker.book1D("HFEEn_mediumPt_Forward", "HFEEn_mediumPt_Forward", ptBin_, 0., 1.5*ptMax_);
1052  mHFHEn_mediumPt_Forward = ibooker.book1D("HFHEn_mediumPt_Forward", "HFHEn_mediumPt_Forward", ptBin_, 0., 2.5*ptMax_);
1053  mHFEEn_highPt_Forward = ibooker.book1D("HFEEn_highPt_Forward", "HFEEn_highPt_Forward", ptBin_, 0., 1.5*ptMax_);
1054  mHFHEn_highPt_Forward = ibooker.book1D("HFHEn_highPt_Forward", "HFHEn_highPt_Forward", ptBin_, 0., 5.0*ptMax_);
1055  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHEn_lowPt_Forward" ,mHFHEn_lowPt_Forward));
1056  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEEn_lowPt_Forward" ,mHFEEn_lowPt_Forward));
1057  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHEn_mediumPt_Forward" ,mHFHEn_mediumPt_Forward));
1058  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEEn_mediumPt_Forward" ,mHFEEn_mediumPt_Forward));
1059  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHEn_highPt_Forward" ,mHFHEn_highPt_Forward));
1060  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEEn_highPt_Forward" ,mHFEEn_highPt_Forward));
1061  //multiplicities
1062  mNeutMultiplicity_lowPt_Forward = ibooker.book1D("NeutMultiplicity_lowPt_Forward", "NeutMultiplicity_lowPt_Forward", 60,0,60);
1063  mNeutMultiplicity_mediumPt_Forward = ibooker.book1D("NeutMultiplicity_mediumPt_Forward", "NeutMultiplicity_mediumPt_Forward", 60,0,60);
1064  mNeutMultiplicity_highPt_Forward = ibooker.book1D("NeutMultiplicity_highPt_Forward", "NeutMultiplicity_highPt_Forward", 60,0,60);
1065 
1066  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_lowPt_Forward" ,mNeutMultiplicity_lowPt_Forward));
1067  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_mediumPt_Forward" ,mNeutMultiplicity_mediumPt_Forward));
1068  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutMultiplicity_highPt_Forward" ,mNeutMultiplicity_highPt_Forward));
1069 
1070  mChargedHadronEnergy = ibooker.book1D("ChargedHadronEnergy", "charged HAD energy", 50, 0, 100);
1071  mNeutralHadronEnergy = ibooker.book1D("NeutralHadronEnergy", "neutral HAD energy", 50, 0, 100);
1072  mChargedEmEnergy = ibooker.book1D("ChargedEmEnergy", "charged EM energy ", 50, 0, 100);
1073  mChargedMuEnergy = ibooker.book1D("ChargedMuEnergy", "charged Mu energy", 50, 0, 100);
1074  mNeutralEmEnergy = ibooker.book1D("NeutralEmEnergy", "neutral EM energy", 50, 0, 100);
1075  mChargedMultiplicity = ibooker.book1D("ChargedMultiplicity", "charged multiplicity ", 50, 0, 100);
1076  mNeutralMultiplicity = ibooker.book1D("NeutralMultiplicity", "neutral multiplicity", 50, 0, 100);
1077  mMuonMultiplicity = ibooker.book1D("MuonMultiplicity", "muon multiplicity", 50, 0, 100);
1078  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedHadronEnergy" ,mChargedHadronEnergy));
1079  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralHadronEnergy" ,mNeutralHadronEnergy));
1080  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedEmEnergy" ,mChargedEmEnergy));
1081  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMuEnergy" ,mChargedMuEnergy));
1082  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralEmEnergy" ,mNeutralEmEnergy));
1083  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMultiplicity" ,mChargedMultiplicity));
1084  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralMultiplicity" ,mNeutralMultiplicity));
1085  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuonMultiplicity" ,mMuonMultiplicity));
1086 
1087  // Book NPV profiles
1088  //----------------------------------------------------------------------------
1089  mChargedHadronEnergy_profile = ibooker.bookProfile("ChargedHadronEnergy_profile", "charged HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1090  mNeutralHadronEnergy_profile = ibooker.bookProfile("NeutralHadronEnergy_profile", "neutral HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1091  mChargedEmEnergy_profile = ibooker.bookProfile("ChargedEmEnergy_profile", "charged EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1092  mChargedMuEnergy_profile = ibooker.bookProfile("ChargedMuEnergy_profile", "charged Mu energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1093  mNeutralEmEnergy_profile = ibooker.bookProfile("NeutralEmEnergy_profile", "neutral EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1094  mChargedMultiplicity_profile = ibooker.bookProfile("ChargedMultiplicity_profile", "charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1095  mNeutralMultiplicity_profile = ibooker.bookProfile("NeutralMultiplicity_profile", "neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1096  mMuonMultiplicity_profile = ibooker.bookProfile("MuonMultiplicity_profile", "muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1097 
1098  // Set NPV profiles x-axis title
1099  //----------------------------------------------------------------------------
1108 
1109  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedHadronEnergy_profile" ,mChargedHadronEnergy_profile));
1110  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralHadronEnergy_profile" ,mNeutralHadronEnergy_profile));
1111  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedEmEnergy_profile" ,mChargedEmEnergy_profile));
1112  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMuEnergy_profile" ,mChargedMuEnergy_profile));
1113  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralEmEnergy_profile" ,mNeutralEmEnergy_profile));
1114  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMultiplicity_profile" ,mChargedMultiplicity_profile));
1115  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralMultiplicity_profile" ,mNeutralMultiplicity_profile));
1116  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuonMultiplicity_profile" ,mMuonMultiplicity_profile));
1117 
1118  mNeutralFraction = ibooker.book1D("NeutralConstituentsFraction","Neutral Constituents Fraction",100,0,1);
1119  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralConstituentsFraction" ,mNeutralFraction));
1120 
1121  }
1122 
1123  //
1124  if(isMiniAODJet_){
1125  mMass_Barrel = ibooker.book1D("JetMass_Barrel", "JetMass_Barrel", 50, 0, 250);
1126  mMass_EndCap = ibooker.book1D("JetMass_EndCap", "JetMass_EndCap", 50, 0, 250);
1127  mMass_Forward = ibooker.book1D("JetMass_Forward", "JetMass_Forward", 50, 0, 250);
1128 
1129  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_Barrel" , mMass_Barrel ));
1130  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_EndCap" , mMass_EndCap ));
1131  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetMass_Forward" , mMass_Forward ));
1132  if(!filljetsubstruc_){
1133  //done only for MINIAOD
1134  mPt_CaloJet = ibooker.book1D("Pt_CaloJet", "Pt_CaloJet", ptBin_, 10, ptMax_);
1135  mEMF_CaloJet = ibooker.book1D("EMF_CaloJet", "EMF_CaloJet", 52, -0.02, 1.02);
1136  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_CaloJet" ,mPt_CaloJet));
1137  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EMF_CaloJet" ,mEMF_CaloJet));
1138  }
1139  if(filljetsubstruc_){
1140  //miniaod specific variables, especially for substructure
1141  mSoftDropMass = ibooker.book1D("SoftDropMass", "SoftDropMass", 50, 0, 250);
1142  mPrunedMass = ibooker.book1D("PrunedMass", "PrunedMass", 50, 0, 250);
1143  mTrimmedMass = ibooker.book1D("TrimmedMass", "TrimmedMass", 50, 0, 250);
1144  mFilteredMass = ibooker.book1D("FilteredMass", "FilteredMass", 50, 0, 250);
1145  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SoftDropMass" ,mSoftDropMass));
1146  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PrunedMass" ,mPrunedMass));
1147  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TrimmedMass" ,mTrimmedMass));
1148  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"FilteredMass" ,mFilteredMass));
1149 
1150  mtau2_over_tau1 = ibooker.book1D("tau2_over_tau1", "tau2_over_tau1", 50, 0, 1);
1151  mtau3_over_tau2 = ibooker.book1D("tau3_over_tau2", "tau3_over_tau2", 50, 0, 1);
1152  mCATopTag_topMass = ibooker.book1D("CATopTag_topMass", "CATopTag_topMass", 50, 50, 250);
1153  mCATopTag_minMass = ibooker.book1D("CATopTag_minMass", "CATopTag_minMass", 50, 0, 250);
1154  mCATopTag_nSubJets = ibooker.book1D("nSubJets_CATopTag", "nSubJets_CATopTag", 10, 0, 10);
1155  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"tau2_over_tau1" ,mtau2_over_tau1));
1156  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"tau3_over_tau2" ,mtau3_over_tau2));
1157  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CATopTag_topMass" ,mCATopTag_topMass));
1158  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CATopTag_minMass" ,mCATopTag_minMass));
1159  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_CATopTag" ,mCATopTag_nSubJets));
1160 
1161  mnSubJetsCMSTopTag = ibooker.book1D("nSubJets_CMSTopTag", "nSubJets_CMSTopTag", 10, 0, 10);
1162  mSubJet1_CMSTopTag_pt = ibooker.book1D("SubJet1_CMSTopTag_pt", "SubJet1_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1163  mSubJet1_CMSTopTag_eta = ibooker.book1D("SubJet1_CMSTopTag_eta", "SubJet1_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1164  mSubJet1_CMSTopTag_phi = ibooker.book1D("SubJet1_CMSTopTag_phi", "SubJet1_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1165  mSubJet1_CMSTopTag_mass = ibooker.book1D("SubJet1_CMSTopTag_mass", "SubJet1_CMSTopTag_mass", 50, 0, 250);
1166  mSubJet2_CMSTopTag_pt = ibooker.book1D("SubJet2_CMSTopTag_pt", "SubJet2_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1167  mSubJet2_CMSTopTag_eta = ibooker.book1D("SubJet2_CMSTopTag_eta", "SubJet2_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1168  mSubJet2_CMSTopTag_phi = ibooker.book1D("SubJet2_CMSTopTag_phi", "SubJet2_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1169  mSubJet2_CMSTopTag_mass = ibooker.book1D("SubJet2_CMSTopTag_mass", "SubJet2_CMSTopTag_mass", 50, 0, 250);
1170  mSubJet3_CMSTopTag_pt = ibooker.book1D("SubJet3_CMSTopTag_pt", "SubJet3_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1171  mSubJet3_CMSTopTag_eta = ibooker.book1D("SubJet3_CMSTopTag_eta", "SubJet3_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1172  mSubJet3_CMSTopTag_phi = ibooker.book1D("SubJet3_CMSTopTag_phi", "SubJet3_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1173  mSubJet3_CMSTopTag_mass = ibooker.book1D("SubJet3_CMSTopTag_mass", "SubJet3_CMSTopTag_mass", 50, 0, 250);
1174  mSubJet4_CMSTopTag_pt = ibooker.book1D("SubJet4_CMSTopTag_pt", "SubJet4_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1175  mSubJet4_CMSTopTag_eta = ibooker.book1D("SubJet4_CMSTopTag_eta", "SubJet4_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1176  mSubJet4_CMSTopTag_phi = ibooker.book1D("SubJet4_CMSTopTag_phi", "SubJet4_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1177  mSubJet4_CMSTopTag_mass = ibooker.book1D("SubJet4_CMSTopTag_mass", "SubJet4_CMSTopTag_mass", 50, 0, 250);
1178 
1179  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_CMSTopTag" ,mnSubJetsCMSTopTag));
1180  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_pt" ,mSubJet1_CMSTopTag_pt));
1181  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_eta" ,mSubJet1_CMSTopTag_eta));
1182  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_phi" ,mSubJet1_CMSTopTag_phi));
1183  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_mass" ,mSubJet1_CMSTopTag_mass));
1184  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_pt" ,mSubJet2_CMSTopTag_pt));
1185  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_eta" ,mSubJet2_CMSTopTag_eta));
1186  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_phi" ,mSubJet2_CMSTopTag_phi));
1187  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_mass" ,mSubJet2_CMSTopTag_mass));
1188  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_pt" ,mSubJet3_CMSTopTag_pt));
1189  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_eta" ,mSubJet3_CMSTopTag_eta));
1190  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_phi" ,mSubJet3_CMSTopTag_phi));
1191  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_mass" ,mSubJet3_CMSTopTag_mass));
1192  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_pt" ,mSubJet4_CMSTopTag_pt));
1193  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_eta" ,mSubJet4_CMSTopTag_eta));
1194  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_phi" ,mSubJet4_CMSTopTag_phi));
1195  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_mass" ,mSubJet4_CMSTopTag_mass));
1196 
1197  mnSubJetsSoftDrop = ibooker.book1D("nSubJets_SoftDrop", "nSubJets_SoftDrop", 10, 0, 10);
1198  mSubJet1_SoftDrop_pt = ibooker.book1D("SubJet1_SoftDrop_pt", "SubJet1_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1199  mSubJet1_SoftDrop_eta = ibooker.book1D("SubJet1_SoftDrop_eta", "SubJet1_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1200  mSubJet1_SoftDrop_phi = ibooker.book1D("SubJet1_SoftDrop_phi", "SubJet1_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1201  mSubJet1_SoftDrop_mass = ibooker.book1D("SubJet1_SoftDrop_mass", "SubJet1_SoftDrop_mass", 50, 0, 250);
1202  mSubJet2_SoftDrop_pt = ibooker.book1D("SubJet2_SoftDrop_pt", "SubJet2_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1203  mSubJet2_SoftDrop_eta = ibooker.book1D("SubJet2_SoftDrop_eta", "SubJet2_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1204  mSubJet2_SoftDrop_phi = ibooker.book1D("SubJet2_SoftDrop_phi", "SubJet2_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1205  mSubJet2_SoftDrop_mass = ibooker.book1D("SubJet2_SoftDrop_mass", "SubJet2_SoftDrop_mass", 50, 0, 250);
1206 
1207  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_SoftDrop" ,mnSubJetsSoftDrop));
1208  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_pt" ,mSubJet1_SoftDrop_pt));
1209  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_eta" ,mSubJet1_SoftDrop_eta));
1210  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_phi" ,mSubJet1_SoftDrop_phi));
1211  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_mass" ,mSubJet1_SoftDrop_mass));
1212  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_pt" ,mSubJet2_SoftDrop_pt));
1213  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_eta" ,mSubJet2_SoftDrop_eta));
1214  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_phi" ,mSubJet2_SoftDrop_phi));
1215  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_mass" ,mSubJet2_SoftDrop_mass));
1216  //miniaod specific variables, especially for substructure for boosted stuff
1217  mSoftDropMass_boosted = ibooker.book1D("SoftDropMass_boosted", "SoftDropMass_boosted", 50, 0, 250);
1218  mPrunedMass_boosted = ibooker.book1D("PrunedMass_boosted", "PrunedMass_boosted", 50, 0, 250);
1219  mTrimmedMass_boosted = ibooker.book1D("TrimmedMass_boosted", "TrimmedMass_boosted", 50, 0, 250);
1220  mFilteredMass_boosted = ibooker.book1D("FilteredMass_boosted", "FilteredMass_boosted", 50, 0, 250);
1221  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SoftDropMass_boosted" ,mSoftDropMass_boosted));
1222  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PrunedMass_boosted" ,mPrunedMass_boosted));
1223  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"TrimmedMass_boosted" ,mTrimmedMass_boosted));
1224  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"FilteredMass_boosted" ,mFilteredMass_boosted));
1225 
1226  mtau2_over_tau1_boosted = ibooker.book1D("tau2_over_tau1_boosted", "tau2_over_tau1_boosted", 50, 0, 1);
1227  mtau3_over_tau2_boosted = ibooker.book1D("tau3_over_tau2_boosted", "tau3_over_tau2_boosted", 50, 0, 1);
1228  mCATopTag_topMass_boosted = ibooker.book1D("CATopTag_topMass_boosted", "CATopTag_topMass_boosted", 50, 50, 250);
1229  mCATopTag_minMass_boosted = ibooker.book1D("CATopTag_minMass_boosted", "CATopTag_minMass_boosted", 50, 0, 250);
1230  mCATopTag_nSubJets_boosted = ibooker.book1D("nSubJets_CATopTag_boosted", "nSubJets_CATopTag_boosted", 10, 0, 10);
1231  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"tau2_over_tau1_boosted" ,mtau2_over_tau1_boosted));
1232  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"tau3_over_tau2_boosted" ,mtau3_over_tau2_boosted));
1233  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CATopTag_topMass_boosted" ,mCATopTag_topMass_boosted));
1234  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CATopTag_minMass_boosted" ,mCATopTag_minMass_boosted));
1235  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_CATopTag_boosted" ,mCATopTag_nSubJets_boosted));
1236 
1237  mnSubJetsCMSTopTag_boosted = ibooker.book1D("nSubJets_CMSTopTag_boosted", "nSubJets_CMSTopTag_boosted", 10, 0, 10);
1238  mSubJet1_CMSTopTag_pt_boosted = ibooker.book1D("SubJet1_CMSTopTag_pt_boosted", "SubJet1_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1239  mSubJet1_CMSTopTag_eta_boosted = ibooker.book1D("SubJet1_CMSTopTag_eta_boosted", "SubJet1_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1240  mSubJet1_CMSTopTag_phi_boosted = ibooker.book1D("SubJet1_CMSTopTag_phi_boosted", "SubJet1_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1241  mSubJet1_CMSTopTag_mass_boosted = ibooker.book1D("SubJet1_CMSTopTag_mass_boosted", "SubJet1_CMSTopTag_mass_boosted", 50, 0, 250);
1242  mSubJet2_CMSTopTag_pt_boosted = ibooker.book1D("SubJet2_CMSTopTag_pt_boosted", "SubJet2_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1243  mSubJet2_CMSTopTag_eta_boosted = ibooker.book1D("SubJet2_CMSTopTag_eta_boosted", "SubJet2_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1244  mSubJet2_CMSTopTag_phi_boosted = ibooker.book1D("SubJet2_CMSTopTag_phi_boosted", "SubJet2_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1245  mSubJet2_CMSTopTag_mass_boosted = ibooker.book1D("SubJet2_CMSTopTag_mass_boosted", "SubJet2_CMSTopTag_mass_boosted", 50, 0, 250);
1246  mSubJet3_CMSTopTag_pt_boosted = ibooker.book1D("SubJet3_CMSTopTag_pt_boosted", "SubJet3_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1247  mSubJet3_CMSTopTag_eta_boosted = ibooker.book1D("SubJet3_CMSTopTag_eta_boosted", "SubJet3_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1248  mSubJet3_CMSTopTag_phi_boosted = ibooker.book1D("SubJet3_CMSTopTag_phi_boosted", "SubJet3_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1249  mSubJet3_CMSTopTag_mass_boosted = ibooker.book1D("SubJet3_CMSTopTag_mass_boosted", "SubJet3_CMSTopTag_mass_boosted", 50, 0, 250);
1250  mSubJet4_CMSTopTag_pt_boosted = ibooker.book1D("SubJet4_CMSTopTag_pt_boosted", "SubJet4_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1251  mSubJet4_CMSTopTag_eta_boosted = ibooker.book1D("SubJet4_CMSTopTag_eta_boosted", "SubJet4_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1252  mSubJet4_CMSTopTag_phi_boosted = ibooker.book1D("SubJet4_CMSTopTag_phi_boosted", "SubJet4_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1253  mSubJet4_CMSTopTag_mass_boosted = ibooker.book1D("SubJet4_CMSTopTag_mass_boosted", "SubJet4_CMSTopTag_mass_boosted", 50, 0, 250);
1254 
1255  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_CMSTopTag_boosted", mnSubJetsCMSTopTag_boosted));
1256  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_pt_boosted", mSubJet1_CMSTopTag_pt_boosted));
1257  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_eta_boosted", mSubJet1_CMSTopTag_eta_boosted));
1258  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_phi_boosted", mSubJet1_CMSTopTag_phi_boosted));
1259  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_CMSTopTag_mass_boosted", mSubJet1_CMSTopTag_mass_boosted));
1260  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_pt_boosted", mSubJet2_CMSTopTag_pt_boosted));
1261  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_eta_boosted", mSubJet2_CMSTopTag_eta_boosted));
1262  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_phi_boosted", mSubJet2_CMSTopTag_phi_boosted));
1263  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_CMSTopTag_mass_boosted", mSubJet2_CMSTopTag_mass_boosted));
1264  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_pt_boosted", mSubJet3_CMSTopTag_pt_boosted));
1265  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_eta_boosted", mSubJet3_CMSTopTag_eta_boosted));
1266  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_phi_boosted", mSubJet3_CMSTopTag_phi_boosted));
1267  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet3_CMSTopTag_mass_boosted", mSubJet3_CMSTopTag_mass_boosted));
1268  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_pt_boosted", mSubJet4_CMSTopTag_pt_boosted));
1269  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_eta_boosted", mSubJet4_CMSTopTag_eta_boosted));
1270  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_phi_boosted", mSubJet4_CMSTopTag_phi_boosted));
1271  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet4_CMSTopTag_mass_boosted", mSubJet4_CMSTopTag_mass_boosted));
1272 
1273  mnSubJetsSoftDrop_boosted = ibooker.book1D("nSubJets_SoftDrop_boosted", "nSubJets_SoftDrop_boosted", 10, 0, 10);
1274  mSubJet1_SoftDrop_pt_boosted = ibooker.book1D("SubJet1_SoftDrop_pt_boosted", "SubJet1_SoftDrop_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1275  mSubJet1_SoftDrop_eta_boosted = ibooker.book1D("SubJet1_SoftDrop_eta_boosted", "SubJet1_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1276  mSubJet1_SoftDrop_phi_boosted = ibooker.book1D("SubJet1_SoftDrop_phi_boosted", "SubJet1_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1277  mSubJet1_SoftDrop_mass_boosted = ibooker.book1D("SubJet1_SoftDrop_mass_boosted", "SubJet1_SoftDrop_mass_boosted", 50, 0, 250);
1278  mSubJet2_SoftDrop_pt_boosted = ibooker.book1D("SubJet2_SoftDrop_pt_boosted", "SubJet2_SoftDrop_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1279  mSubJet2_SoftDrop_eta_boosted = ibooker.book1D("SubJet2_SoftDrop_eta_boosted", "SubJet2_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1280  mSubJet2_SoftDrop_phi_boosted = ibooker.book1D("SubJet2_SoftDrop_phi_boosted", "SubJet2_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1281  mSubJet2_SoftDrop_mass_boosted = ibooker.book1D("SubJet2_SoftDrop_mass_boosted", "SubJet2_SoftDrop_mass_boosted", 50, 0, 250);
1282 
1283  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"nSubJets_SoftDrop_boosted", mnSubJetsSoftDrop_boosted));
1284  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_pt_boosted", mSubJet1_SoftDrop_pt_boosted));
1285  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_eta_boosted", mSubJet1_SoftDrop_eta_boosted));
1286  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_phi_boosted", mSubJet1_SoftDrop_phi_boosted));
1287  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet1_SoftDrop_mass_boosted", mSubJet1_SoftDrop_mass_boosted));
1288  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_pt_boosted", mSubJet2_SoftDrop_pt_boosted));
1289  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_eta_boosted", mSubJet2_SoftDrop_eta_boosted));
1290  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_phi_boosted", mSubJet2_SoftDrop_phi_boosted));
1291  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"SubJet2_SoftDrop_mass_boosted", mSubJet2_SoftDrop_mass_boosted));
1292 
1293  }
1294  }
1295 
1296 
1297  if(jetCleaningFlag_){
1298  //so far we have only one additional selection -> implement to make it expandable
1299  folderNames_.push_back("DiJet");
1300  if(isPFJet_){//check for now only for PFJets
1301  folderNames_.push_back("ZJets");
1302  }
1303  //book for each of these selection default histograms
1304  for (std::vector<std::string>::const_iterator ic = folderNames_.begin();
1305  ic != folderNames_.end(); ic++){
1306  bookMESetSelection(DirName+"/"+*ic, ibooker);
1307  }
1308  }
1309 
1310  ibooker.setCurrentFolder("JetMET");
1311  cleanupME = ibooker.book1D("cleanup", "cleanup", 10, 0., 10.);
1312  cleanupME->setBinLabel(1,"Primary Vertex");
1313  cleanupME->setBinLabel(2,"DCS::Pixel");
1314  cleanupME->setBinLabel(3,"DCS::SiStrip");
1315  cleanupME->setBinLabel(4,"DCS::ECAL");
1316  cleanupME->setBinLabel(5,"DCS::ES");
1317  cleanupME->setBinLabel(6,"DCS::HBHE");
1318  cleanupME->setBinLabel(7,"DCS::HF");
1319  cleanupME->setBinLabel(8,"DCS::HO");
1320  cleanupME->setBinLabel(9,"DCS::Muon");
1321  map_of_MEs.insert(std::pair<std::string,MonitorElement*>("JetMET/cleanup" ,cleanupME));
1322 
1323  verticesME = ibooker.book1D("vertices", "vertices", 100, 0, 100);
1324  map_of_MEs.insert(std::pair<std::string,MonitorElement*>("JetMET/vertices" ,verticesME));
1325 
1326 
1327 
1328 }
MonitorElement * mSubJet1_CMSTopTag_eta_boosted
Definition: JetAnalyzer.h:717
MonitorElement * mCHEn_mediumPt_Barrel
Definition: JetAnalyzer.h:399
MonitorElement * mSubJet3_CMSTopTag_mass
Definition: JetAnalyzer.h:688
MonitorElement * mEFrac_EndCap
Definition: JetAnalyzer.h:251
MonitorElement * mNJets
Definition: JetAnalyzer.h:275
MonitorElement * mNHEn_lowPt_Barrel
Definition: JetAnalyzer.h:395
MonitorElement * mSubJet2_CMSTopTag_eta_boosted
Definition: JetAnalyzer.h:721
MonitorElement * mMass_lowPt_Forward
Definition: JetAnalyzer.h:465
MonitorElement * mPt_Forward_Hi
Definition: JetAnalyzer.h:270
MonitorElement * mMass_mediumPt_Forward
Definition: JetAnalyzer.h:468
MonitorElement * mePtForwardPlus_BXm1Empty
Definition: JetAnalyzer.h:622
MonitorElement * mMass_highPt_Forward
Definition: JetAnalyzer.h:471
MonitorElement * mHadEnergyInHB
Definition: JetAnalyzer.h:372
MonitorElement * mHFEEn_highPt_Forward
Definition: JetAnalyzer.h:494
MonitorElement * mSubJet2_CMSTopTag_phi_boosted
Definition: JetAnalyzer.h:722
MonitorElement * mfRBX
Definition: JetAnalyzer.h:380
MonitorElement * mSubJet1_SoftDrop_phi_boosted
Definition: JetAnalyzer.h:736
MonitorElement * mCHEn_highPt_Barrel
Definition: JetAnalyzer.h:404
MonitorElement * mPhi_Forward
Definition: JetAnalyzer.h:254
MonitorElement * mChMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:415
MonitorElement * mLooseCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:312
MonitorElement * mChMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:476
MonitorElement * mNeutralEmEnergy
Definition: JetAnalyzer.h:504
MonitorElement * mtau2_over_tau1
Definition: JetAnalyzer.h:670
double ptMin_
Definition: JetAnalyzer.h:188
MonitorElement * mPhEn_mediumPt_EndCap
Definition: JetAnalyzer.h:455
MonitorElement * mPt_Lo
Definition: JetAnalyzer.h:285
MonitorElement * mtau2_over_tau1_boosted
Definition: JetAnalyzer.h:709
MonitorElement * mePhFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:653
MonitorElement * mSubJet2_SoftDrop_phi_boosted
Definition: JetAnalyzer.h:740
MonitorElement * mEmEnergyInHF
Definition: JetAnalyzer.h:377
MonitorElement * mtau3_over_tau2
Definition: JetAnalyzer.h:671
bool jetCleaningFlag_
Definition: JetAnalyzer.h:359
MonitorElement * mPhiFirst
Definition: JetAnalyzer.h:280
MonitorElement * mCutPUJIDDiscriminant_lowPt_Forward
Definition: JetAnalyzer.h:320
MonitorElement * mCATopTag_nSubJets
Definition: JetAnalyzer.h:674
MonitorElement * mNeutralHadronEnergy
Definition: JetAnalyzer.h:501
MonitorElement * mHFEFrac_mediumPt_Forward
Definition: JetAnalyzer.h:486
MonitorElement * mPt_Forward
Definition: JetAnalyzer.h:253
MonitorElement * mCHFrac_highPt_EndCap
Definition: JetAnalyzer.h:444
MonitorElement * mNHFrac_highPt_EndCap
Definition: JetAnalyzer.h:445
MonitorElement * mSubJet4_CMSTopTag_phi
Definition: JetAnalyzer.h:691
MonitorElement * mSubJet3_CMSTopTag_pt
Definition: JetAnalyzer.h:685
MonitorElement * mChargedEmEnergy_profile
Definition: JetAnalyzer.h:562
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
MonitorElement * mHFrac_Forward
Definition: JetAnalyzer.h:256
MonitorElement * mEmEnergyInEE
Definition: JetAnalyzer.h:376
MonitorElement * mMass_Barrel
Definition: JetAnalyzer.h:746
MonitorElement * mMass_Forward
Definition: JetAnalyzer.h:748
MonitorElement * mHFHFrac_highPt_Forward
Definition: JetAnalyzer.h:489
MonitorElement * meNHFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:646
MonitorElement * mHFHEn_lowPt_Forward
Definition: JetAnalyzer.h:491
MonitorElement * mNHFrac_lowPt_EndCap
Definition: JetAnalyzer.h:439
MonitorElement * mCHFrac_lowPt_Barrel
Definition: JetAnalyzer.h:385
MonitorElement * mElEn_highPt_Barrel
Definition: JetAnalyzer.h:407
MonitorElement * jetME
Definition: JetAnalyzer.h:218
MonitorElement * mPrunedMass_boosted
Definition: JetAnalyzer.h:706
MonitorElement * mPhEn_lowPt_EndCap
Definition: JetAnalyzer.h:450
MonitorElement * mSubJet1_SoftDrop_mass
Definition: JetAnalyzer.h:698
MonitorElement * mMediumCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:314
MonitorElement * mHFEEn_lowPt_Forward
Definition: JetAnalyzer.h:490
MonitorElement * mSubJet4_CMSTopTag_mass
Definition: JetAnalyzer.h:692
MonitorElement * meNHFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:650
MonitorElement * mPhi_EndCap
Definition: JetAnalyzer.h:248
MonitorElement * mPrunedMass
Definition: JetAnalyzer.h:667
MonitorElement * mPhFrac_lowPt_EndCap
Definition: JetAnalyzer.h:440
MonitorElement * mMass_highPt_EndCap
Definition: JetAnalyzer.h:470
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_Barrel
Definition: JetAnalyzer.h:305
MonitorElement * mNHFracVSeta_highPt
Definition: JetAnalyzer.h:435
MonitorElement * mCutPUJIDDiscriminant_lowPt_Barrel
Definition: JetAnalyzer.h:318
MonitorElement * mSubJet1_CMSTopTag_mass
Definition: JetAnalyzer.h:680
MonitorElement * mN90Hits
Definition: JetAnalyzer.h:378
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * mSubJet1_SoftDrop_eta_boosted
Definition: JetAnalyzer.h:735
MonitorElement * mSubJet1_SoftDrop_pt_boosted
Definition: JetAnalyzer.h:734
MonitorElement * mCHEn_lowPt_EndCap
Definition: JetAnalyzer.h:448
MonitorElement * meNHFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:614
MonitorElement * mCutPUJIDDiscriminant_lowPt_EndCap
Definition: JetAnalyzer.h:319
MonitorElement * mCHFracVSeta_highPt
Definition: JetAnalyzer.h:434
MonitorElement * mPhEn_highPt_Barrel
Definition: JetAnalyzer.h:406
MonitorElement * mSubJet2_SoftDrop_eta_boosted
Definition: JetAnalyzer.h:739
MonitorElement * mNeutMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:474
MonitorElement * mNHEn_mediumPt_EndCap
Definition: JetAnalyzer.h:454
MonitorElement * mEta_Hi
Definition: JetAnalyzer.h:287
bool isCaloJet_
Definition: JetAnalyzer.h:803
MonitorElement * meCHFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:655
MonitorElement * mNeutralMultiplicity
Definition: JetAnalyzer.h:506
MonitorElement * mCATopTag_minMass
Definition: JetAnalyzer.h:673
MonitorElement * mMass_lowPt_Barrel
Definition: JetAnalyzer.h:463
MonitorElement * mEFrac_profile
Definition: JetAnalyzer.h:341
MonitorElement * mePhFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:645
MonitorElement * mPt_3
Definition: JetAnalyzer.h:224
MonitorElement * mSubJet2_SoftDrop_pt_boosted
Definition: JetAnalyzer.h:738
MonitorElement * mEta
Definition: JetAnalyzer.h:225
MonitorElement * mConstituents_Forward
Definition: JetAnalyzer.h:255
MonitorElement * mPt_CaloJet
Definition: JetAnalyzer.h:744
std::string DirName
Definition: JetAnalyzer.h:171
MonitorElement * mMVAPUJIDDiscriminant_lowPt_Forward
Definition: JetAnalyzer.h:304
MonitorElement * mtau3_over_tau2_boosted
Definition: JetAnalyzer.h:710
MonitorElement * mnSubJetsSoftDrop
Definition: JetAnalyzer.h:694
MonitorElement * mPt_Hi
Definition: JetAnalyzer.h:289
MonitorElement * mePhFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:613
MonitorElement * meHFHFracPlus_BXm1Filled
Definition: JetAnalyzer.h:660
MonitorElement * meNHFracEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:654
MonitorElement * mSubJet2_CMSTopTag_mass
Definition: JetAnalyzer.h:684
MonitorElement * mCHFrac_lowPt_EndCap
Definition: JetAnalyzer.h:438
MonitorElement * mMuMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:417
MonitorElement * mNHFracVSeta_mediumPt
Definition: JetAnalyzer.h:432
MonitorElement * mChargedMultiplicity_profile
Definition: JetAnalyzer.h:565
MonitorElement * mHFEFrac_lowPt_Forward
Definition: JetAnalyzer.h:484
MonitorElement * mMass_EndCap
Definition: JetAnalyzer.h:747
MonitorElement * meHFEMFracPlus_BXm1Filled
Definition: JetAnalyzer.h:661
MonitorElement * mNHFracVSeta_lowPt
Definition: JetAnalyzer.h:429
MonitorElement * mLooseJIDPassFractionVSpt
Definition: JetAnalyzer.h:292
MonitorElement * mPt_uncor
Definition: JetAnalyzer.h:227
MonitorElement * mDPhi
Definition: JetAnalyzer.h:276
MonitorElement * mresEMF
Definition: JetAnalyzer.h:381
MonitorElement * mEMF_CaloJet
Definition: JetAnalyzer.h:745
MonitorElement * mChargedMuEnergy
Definition: JetAnalyzer.h:503
MonitorElement * mLooseMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:297
double nPVhigh_
Definition: JetAnalyzer.h:201
MonitorElement * mMuMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:478
bool filljetsubstruc_
Definition: JetAnalyzer.h:360
bool runcosmics_
Definition: JetAnalyzer.h:363
MonitorElement * mConstituents_profile
Definition: JetAnalyzer.h:339
MonitorElement * mPt_Barrel_Hi
Definition: JetAnalyzer.h:260
MonitorElement * mEmEnergyInEB
Definition: JetAnalyzer.h:375
MonitorElement * mSubJet1_CMSTopTag_mass_boosted
Definition: JetAnalyzer.h:719
MonitorElement * mCATopTag_topMass_boosted
Definition: JetAnalyzer.h:711
MonitorElement * mTightCutPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:316
MonitorElement * mMediumMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:298
MonitorElement * mSubJet3_CMSTopTag_eta_boosted
Definition: JetAnalyzer.h:725
MonitorElement * mePtEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:616
MonitorElement * mSubJet1_SoftDrop_mass_boosted
Definition: JetAnalyzer.h:737
MonitorElement * mChargedHadronEnergy_profile
Definition: JetAnalyzer.h:560
MonitorElement * mPhi_Barrel
Definition: JetAnalyzer.h:242
MonitorElement * mPhFrac_lowPt_Barrel
Definition: JetAnalyzer.h:387
MonitorElement * mSubJet2_CMSTopTag_pt_boosted
Definition: JetAnalyzer.h:720
MonitorElement * mSubJet2_SoftDrop_eta
Definition: JetAnalyzer.h:700
MonitorElement * mMass_lowPt_EndCap
Definition: JetAnalyzer.h:464
MonitorElement * mConstituents_EndCap
Definition: JetAnalyzer.h:249
MonitorElement * mPhi_EndCap_Hi
Definition: JetAnalyzer.h:266
MonitorElement * mSubJet1_CMSTopTag_phi
Definition: JetAnalyzer.h:679
MonitorElement * meEta_BXm1Empty
Definition: JetAnalyzer.h:623
MonitorElement * mHFHFrac_mediumPt_Forward
Definition: JetAnalyzer.h:487
MonitorElement * mPhFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:390
MonitorElement * mFilteredMass
Definition: JetAnalyzer.h:669
MonitorElement * mSubJet1_CMSTopTag_pt
Definition: JetAnalyzer.h:677
MonitorElement * mSoftDropMass
Definition: JetAnalyzer.h:666
MonitorElement * mePtEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:612
MonitorElement * mNeutralMultiplicity_profile
Definition: JetAnalyzer.h:566
MonitorElement * meHFHFracMinus_BXm1Filled
Definition: JetAnalyzer.h:657
MonitorElement * cleanupME
Definition: JetAnalyzer.h:350
MonitorElement * mPhEn_mediumPt_Barrel
Definition: JetAnalyzer.h:401
MonitorElement * mTrimmedMass_boosted
Definition: JetAnalyzer.h:707
MonitorElement * mSubJet2_SoftDrop_mass_boosted
Definition: JetAnalyzer.h:741
MonitorElement * mLooseMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:296
MonitorElement * mNeutMultiplicity_mediumPt_EndCap
Definition: JetAnalyzer.h:477
MonitorElement * mNeutralFraction
Definition: JetAnalyzer.h:551
MonitorElement * mNHFracVSpT_EndCap
Definition: JetAnalyzer.h:423
MonitorElement * mNeutralEmEnergy_profile
Definition: JetAnalyzer.h:564
MonitorElement * mNHFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:389
MonitorElement * mPhEn_lowPt_Barrel
Definition: JetAnalyzer.h:396
MonitorElement * mSubJet2_SoftDrop_pt
Definition: JetAnalyzer.h:699
double ptMax_
Definition: JetAnalyzer.h:189
MonitorElement * mPt_1
Definition: JetAnalyzer.h:222
MonitorElement * mConstituents_Barrel
Definition: JetAnalyzer.h:243
MonitorElement * mCATopTag_minMass_boosted
Definition: JetAnalyzer.h:712
MonitorElement * meHFHFracMinus_BXm1Empty
Definition: JetAnalyzer.h:617
MonitorElement * meCHFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:611
MonitorElement * mNHEn_lowPt_EndCap
Definition: JetAnalyzer.h:449
MonitorElement * mSubJet4_CMSTopTag_pt_boosted
Definition: JetAnalyzer.h:728
MonitorElement * mMuEn_lowPt_EndCap
Definition: JetAnalyzer.h:452
MonitorElement * mPhi
Definition: JetAnalyzer.h:226
MonitorElement * meHFEMFracMinus_BXm1Filled
Definition: JetAnalyzer.h:658
MonitorElement * mNeutMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:410
MonitorElement * mSubJet3_CMSTopTag_phi_boosted
Definition: JetAnalyzer.h:726
MonitorElement * mPhFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:443
MonitorElement * mSubJet4_CMSTopTag_phi_boosted
Definition: JetAnalyzer.h:730
MonitorElement * mMuonMultiplicity_profile
Definition: JetAnalyzer.h:567
MonitorElement * mSubJet2_CMSTopTag_pt
Definition: JetAnalyzer.h:681
MonitorElement * mCutPUJIDDiscriminant_mediumPt_Forward
Definition: JetAnalyzer.h:323
MonitorElement * mCutPUJIDDiscriminant_highPt_EndCap
Definition: JetAnalyzer.h:325
MonitorElement * mChargedHadronEnergy
Definition: JetAnalyzer.h:500
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
MonitorElement * mPhi_uncor
Definition: JetAnalyzer.h:229
MonitorElement * mSubJet2_CMSTopTag_eta
Definition: JetAnalyzer.h:682
MonitorElement * mCutPUJIDDiscriminant_highPt_Barrel
Definition: JetAnalyzer.h:324
MonitorElement * mChargedEmEnergy
Definition: JetAnalyzer.h:502
MonitorElement * mNeutMultiplicity_mediumPt_Forward
Definition: JetAnalyzer.h:497
MonitorElement * mSubJet1_CMSTopTag_eta
Definition: JetAnalyzer.h:678
MonitorElement * mMass_mediumPt_EndCap
Definition: JetAnalyzer.h:467
MonitorElement * meNHFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:606
MonitorElement * mPt_profile
Definition: JetAnalyzer.h:336
MonitorElement * mPhFracVSeta_lowPt
Definition: JetAnalyzer.h:430
MonitorElement * mChMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:409
MonitorElement * mnSubJetsCMSTopTag_boosted
Definition: JetAnalyzer.h:715
MonitorElement * mEtaFirst
Definition: JetAnalyzer.h:279
MonitorElement * mElEn_lowPt_EndCap
Definition: JetAnalyzer.h:451
MonitorElement * mTightMVAPUJIDPassFractionVSeta
Definition: JetAnalyzer.h:300
MonitorElement * mNHFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:442
MonitorElement * mEFrac_Forward
Definition: JetAnalyzer.h:257
MonitorElement * mCATopTag_topMass
Definition: JetAnalyzer.h:672
MonitorElement * mSubJet3_CMSTopTag_eta
Definition: JetAnalyzer.h:686
MonitorElement * mChMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:473
MonitorElement * mMuEn_mediumPt_Barrel
Definition: JetAnalyzer.h:403
MonitorElement * mSubJet3_CMSTopTag_phi
Definition: JetAnalyzer.h:687
MonitorElement * mMuMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:481
MonitorElement * mPt_2
Definition: JetAnalyzer.h:223
MonitorElement * mMVAPUJIDDiscriminant_highPt_Barrel
Definition: JetAnalyzer.h:308
MonitorElement * mSubJet1_SoftDrop_pt
Definition: JetAnalyzer.h:695
MonitorElement * mNeutralHadronEnergy_profile
Definition: JetAnalyzer.h:561
MonitorElement * mHFrac_Barrel
Definition: JetAnalyzer.h:244
MonitorElement * mNJets_profile
Definition: JetAnalyzer.h:335
MonitorElement * mHFEFracVSpT_Forward
Definition: JetAnalyzer.h:426
MonitorElement * mePhFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:605
MonitorElement * mCHEn_lowPt_Barrel
Definition: JetAnalyzer.h:394
MonitorElement * mHFEFrac_highPt_Forward
Definition: JetAnalyzer.h:488
TH2F * getTH2F() const
MonitorElement * mElEn_highPt_EndCap
Definition: JetAnalyzer.h:461
MonitorElement * mCutPUJIDDiscriminant_mediumPt_EndCap
Definition: JetAnalyzer.h:322
MonitorElement * mEFrac
Definition: JetAnalyzer.h:238
double phiMin_
Definition: JetAnalyzer.h:184
MonitorElement * mCutPUJIDDiscriminant_mediumPt_Barrel
Definition: JetAnalyzer.h:321
MonitorElement * mPhFrac_highPt_EndCap
Definition: JetAnalyzer.h:446
MonitorElement * mPhFracVSeta_mediumPt
Definition: JetAnalyzer.h:433
MonitorElement * meHFEMFracPlus_BXm1Empty
Definition: JetAnalyzer.h:621
MonitorElement * mSubJet3_CMSTopTag_pt_boosted
Definition: JetAnalyzer.h:724
MonitorElement * mnSubJetsSoftDrop_boosted
Definition: JetAnalyzer.h:733
MonitorElement * meCHFracBarrel_BXm1Empty
Definition: JetAnalyzer.h:607
MonitorElement * mePtBarrel_BXm1Empty
Definition: JetAnalyzer.h:608
MonitorElement * mNHFracVSpT_Barrel
Definition: JetAnalyzer.h:420
MonitorElement * mHadEnergyInHF
Definition: JetAnalyzer.h:373
double nPVlow_
Definition: JetAnalyzer.h:200
MonitorElement * mSubJet1_SoftDrop_eta
Definition: JetAnalyzer.h:696
MonitorElement * mfHPD
Definition: JetAnalyzer.h:379
MonitorElement * mNeutMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:480
MonitorElement * mHFHEn_mediumPt_Forward
Definition: JetAnalyzer.h:493
MonitorElement * mJetEnergyCorr
Definition: JetAnalyzer.h:232
MonitorElement * mSubJet2_CMSTopTag_phi
Definition: JetAnalyzer.h:683
MonitorElement * mElEn_mediumPt_Barrel
Definition: JetAnalyzer.h:402
MonitorElement * mMVAPUJIDDiscriminant_highPt_Forward
Definition: JetAnalyzer.h:310
MonitorElement * mSubJet3_CMSTopTag_mass_boosted
Definition: JetAnalyzer.h:727
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * mChargedMultiplicity
Definition: JetAnalyzer.h:505
MonitorElement * mNHEn_highPt_Barrel
Definition: JetAnalyzer.h:405
std::map< std::string, MonitorElement * > map_of_MEs
Definition: JetAnalyzer.h:801
MonitorElement * mPt
Definition: JetAnalyzer.h:221
MonitorElement * mEFrac_Barrel
Definition: JetAnalyzer.h:245
MonitorElement * mCHFracVSeta_mediumPt
Definition: JetAnalyzer.h:431
MonitorElement * mePtBarrel_BXm1Filled
Definition: JetAnalyzer.h:648
MonitorElement * mCHFrac_mediumPt_EndCap
Definition: JetAnalyzer.h:441
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
MonitorElement * mNHFrac_highPt_Barrel
Definition: JetAnalyzer.h:392
MonitorElement * mMediumCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:315
MonitorElement * mPhi_Barrel_Hi
Definition: JetAnalyzer.h:261
MonitorElement * mePhFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:609
double etaMin_
Definition: JetAnalyzer.h:180
double ptThresholdUnc_
Definition: JetAnalyzer.h:208
MonitorElement * mSubJet4_CMSTopTag_eta_boosted
Definition: JetAnalyzer.h:729
MonitorElement * mMuMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:414
MonitorElement * mHFrac_EndCap
Definition: JetAnalyzer.h:250
MonitorElement * mJetEnergyCorrVSPt
Definition: JetAnalyzer.h:234
double etaMax_
Definition: JetAnalyzer.h:181
MonitorElement * mElEn_mediumPt_EndCap
Definition: JetAnalyzer.h:456
MonitorElement * mPhiVSEta
Definition: JetAnalyzer.h:239
MonitorElement * mePtEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:652
MonitorElement * mChargedMuEnergy_profile
Definition: JetAnalyzer.h:563
MonitorElement * mLooseJIDPassFractionVSptNoHF
Definition: JetAnalyzer.h:293
MonitorElement * mEta_uncor
Definition: JetAnalyzer.h:228
MonitorElement * mMediumMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:299
MonitorElement * mCHEn_highPt_EndCap
Definition: JetAnalyzer.h:458
MonitorElement * mMVAPUJIDDiscriminant_highPt_EndCap
Definition: JetAnalyzer.h:309
MonitorElement * mCHFracVSpT_EndCap
Definition: JetAnalyzer.h:422
MonitorElement * mHFHFracVSpT_Forward
Definition: JetAnalyzer.h:425
MonitorElement * mMVAPUJIDDiscriminant_lowPt_Barrel
Definition: JetAnalyzer.h:302
bool isMiniAODJet_
Definition: JetAnalyzer.h:805
MonitorElement * mNHEn_mediumPt_Barrel
Definition: JetAnalyzer.h:400
MonitorElement * mSubJet2_SoftDrop_phi
Definition: JetAnalyzer.h:701
MonitorElement * mMuMultiplicity_lowPt_Barrel
Definition: JetAnalyzer.h:411
std::string const & label() const
Definition: InputTag.h:36
MonitorElement * mMuEn_highPt_EndCap
Definition: JetAnalyzer.h:462
MonitorElement * mLooseJIDPassFractionVSeta
Definition: JetAnalyzer.h:291
MonitorElement * mHFrac_profile
Definition: JetAnalyzer.h:340
MonitorElement * mPhEn_highPt_EndCap
Definition: JetAnalyzer.h:460
MonitorElement * mSubJet4_CMSTopTag_mass_boosted
Definition: JetAnalyzer.h:731
MonitorElement * mMVAPUJIDDiscriminant_lowPt_EndCap
Definition: JetAnalyzer.h:303
MonitorElement * mMuEn_mediumPt_EndCap
Definition: JetAnalyzer.h:457
MonitorElement * mPt_EndCap_Hi
Definition: JetAnalyzer.h:265
MonitorElement * mMuEn_lowPt_Barrel
Definition: JetAnalyzer.h:398
MonitorElement * mTightMVAPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:301
MonitorElement * mCHFrac_highPt_Barrel
Definition: JetAnalyzer.h:391
MonitorElement * mMuEn_highPt_Barrel
Definition: JetAnalyzer.h:408
MonitorElement * meCHFracEndCapPlus_BXm1Empty
Definition: JetAnalyzer.h:615
MonitorElement * mTrimmedMass
Definition: JetAnalyzer.h:668
MonitorElement * mePhFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:649
MonitorElement * mHFHEn_highPt_Forward
Definition: JetAnalyzer.h:495
MonitorElement * mePtEndCapPlus_BXm1Filled
Definition: JetAnalyzer.h:656
MonitorElement * mNHEn_highPt_EndCap
Definition: JetAnalyzer.h:459
MonitorElement * mePtForwardPlus_BXm1Filled
Definition: JetAnalyzer.h:662
MonitorElement * mSubJet1_CMSTopTag_phi_boosted
Definition: JetAnalyzer.h:718
MonitorElement * mCHFrac_mediumPt_Barrel
Definition: JetAnalyzer.h:388
MonitorElement * mPhi_Hi
Definition: JetAnalyzer.h:288
void bookMESetSelection(std::string, DQMStore::IBooker &)
MonitorElement * mPtFirst
Definition: JetAnalyzer.h:281
MonitorElement * meNHFracEndCapMinus_BXm1Empty
Definition: JetAnalyzer.h:610
MonitorElement * mPhi_profile
Definition: JetAnalyzer.h:338
MonitorElement * mPt_Barrel
Definition: JetAnalyzer.h:241
MonitorElement * meCHFracBarrel_BXm1Filled
Definition: JetAnalyzer.h:647
MonitorElement * mElEn_lowPt_Barrel
Definition: JetAnalyzer.h:397
MonitorElement * mMass_highPt_Barrel
Definition: JetAnalyzer.h:469
MonitorElement * mHadEnergyInHE
Definition: JetAnalyzer.h:374
MonitorElement * mMass_mediumPt_Barrel
Definition: JetAnalyzer.h:466
MonitorElement * meHFEMFracMinus_BXm1Empty
Definition: JetAnalyzer.h:618
MonitorElement * mCATopTag_nSubJets_boosted
Definition: JetAnalyzer.h:713
MonitorElement * mChMultiplicity_highPt_EndCap
Definition: JetAnalyzer.h:479
MonitorElement * mConstituents
Definition: JetAnalyzer.h:236
MonitorElement * mNHFrac_lowPt_Barrel
Definition: JetAnalyzer.h:386
MonitorElement * mSubJet4_CMSTopTag_eta
Definition: JetAnalyzer.h:690
MonitorElement * meEta_BXm1Filled
Definition: JetAnalyzer.h:663
MonitorElement * mJetEnergyCorrVSEta
Definition: JetAnalyzer.h:233
MonitorElement * mPhFrac_highPt_Barrel
Definition: JetAnalyzer.h:393
MonitorElement * mCHFracVSpT_Barrel
Definition: JetAnalyzer.h:419
MonitorElement * mPhFracVSpT_EndCap
Definition: JetAnalyzer.h:424
MonitorElement * mChMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:412
MonitorElement * mPhi_Forward_Hi
Definition: JetAnalyzer.h:271
MonitorElement * mEta_profile
Definition: JetAnalyzer.h:337
MonitorElement * mCHFracVSeta_lowPt
Definition: JetAnalyzer.h:428
MonitorElement * mPt_EndCap
Definition: JetAnalyzer.h:247
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_EndCap
Definition: JetAnalyzer.h:306
MonitorElement * mCHEn_mediumPt_EndCap
Definition: JetAnalyzer.h:453
MonitorElement * mTightCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:317
MonitorElement * mSubJet2_SoftDrop_mass
Definition: JetAnalyzer.h:702
MonitorElement * mSubJet4_CMSTopTag_pt
Definition: JetAnalyzer.h:689
double phiMax_
Definition: JetAnalyzer.h:185
MonitorElement * mNeutMultiplicity_highPt_Forward
Definition: JetAnalyzer.h:498
MonitorElement * mePtForwardMinus_BXm1Filled
Definition: JetAnalyzer.h:659
MonitorElement * mLooseCutPUJIDPassFractionVSpt
Definition: JetAnalyzer.h:313
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * mMuonMultiplicity
Definition: JetAnalyzer.h:507
MonitorElement * mPhFracVSpT_Barrel
Definition: JetAnalyzer.h:421
MonitorElement * mSubJet1_CMSTopTag_pt_boosted
Definition: JetAnalyzer.h:716
MonitorElement * mHFHFrac_lowPt_Forward
Definition: JetAnalyzer.h:485
MonitorElement * mMVAPUJIDDiscriminant_mediumPt_Forward
Definition: JetAnalyzer.h:307
MonitorElement * mMuMultiplicity_lowPt_EndCap
Definition: JetAnalyzer.h:475
MonitorElement * meHFHFracPlus_BXm1Empty
Definition: JetAnalyzer.h:620
MonitorElement * mnSubJetsCMSTopTag
Definition: JetAnalyzer.h:676
MonitorElement * mSubJet2_CMSTopTag_mass_boosted
Definition: JetAnalyzer.h:723
MonitorElement * mConstituents_uncor
Definition: JetAnalyzer.h:230
MonitorElement * mNeutMultiplicity_mediumPt_Barrel
Definition: JetAnalyzer.h:413
MonitorElement * meCHFracEndCapMinus_BXm1Filled
Definition: JetAnalyzer.h:651
MonitorElement * mPhi_Lo
Definition: JetAnalyzer.h:284
MonitorElement * mHFrac
Definition: JetAnalyzer.h:237
MonitorElement * mCutPUJIDDiscriminant_highPt_Forward
Definition: JetAnalyzer.h:326
MonitorElement * mNeutMultiplicity_lowPt_Forward
Definition: JetAnalyzer.h:496
MonitorElement * mHFEEn_mediumPt_Forward
Definition: JetAnalyzer.h:492
MonitorElement * mSubJet1_SoftDrop_phi
Definition: JetAnalyzer.h:697
MonitorElement * mNeutMultiplicity_highPt_Barrel
Definition: JetAnalyzer.h:416
MonitorElement * verticesME
Definition: JetAnalyzer.h:351
MonitorElement * mPhFracVSeta_highPt
Definition: JetAnalyzer.h:436
MonitorElement * mFilteredMass_boosted
Definition: JetAnalyzer.h:708
MonitorElement * mePtForwardMinus_BXm1Empty
Definition: JetAnalyzer.h:619
MonitorElement * mSoftDropMass_boosted
Definition: JetAnalyzer.h:705
std::vector< std::string > folderNames_
Definition: JetAnalyzer.h:169
MonitorElement * mHadEnergyInHO
Definition: JetAnalyzer.h:371
edm::InputTag mInputCollection_
Definition: JetAnalyzer.h:112
void JetAnalyzer::bookMESetSelection ( std::string  DirName,
DQMStore::IBooker ibooker 
)
private

Definition at line 1330 of file JetAnalyzer.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::bookProfile(), MonitorElement::setAxisTitle(), and DQMStore::IBooker::setCurrentFolder().

1331 {
1332  ibooker.setCurrentFolder(DirName);
1333  // Generic jet parameters
1334  mPt = ibooker.book1D("Pt", "pt", ptBin_, ptMin_, ptMax_);
1335  mEta = ibooker.book1D("Eta", "eta", etaBin_, etaMin_, etaMax_);
1336  mPhi = ibooker.book1D("Phi", "phi", phiBin_, phiMin_, phiMax_);
1337  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt" ,mPt));
1338  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta" ,mEta));
1339  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi" ,mPhi));
1340  //if(!isJPTJet_){
1341  mConstituents = ibooker.book1D("Constituents", "# of constituents", 50, 0, 100);
1342  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents" ,mConstituents));
1343  //}
1344  mJetEnergyCorr= ibooker.book1D("JetEnergyCorr", "jet energy correction factor", 50, 0.0,3.0);
1345  mJetEnergyCorrVSEta= ibooker.bookProfile("JetEnergyCorrVSEta", "jet energy correction factor VS eta", etaBin_, etaMin_,etaMax_, 0.0,3.0);
1346  mJetEnergyCorrVSPt= ibooker.bookProfile("JetEnergyCorrVSPt", "jet energy correction factor VS pt", ptBin_, ptMin_,ptMax_, 0.0,3.0);
1347 
1348  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorr" ,mJetEnergyCorr));
1349  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorrVSEta" ,mJetEnergyCorrVSEta));
1350  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JetEnergyCorrVSPt" ,mJetEnergyCorrVSPt));
1351 
1352  //fill for Dijets: concentrates on gluon jets -> fill leading two jets
1353  //fill for ZJets: concentrates on quark jets -> fill leading jet
1354  if(fill_CHS_histos && isPFJet_){
1355  mAxis2_lowPt_Barrel = ibooker.book1D("qg_Axis2_lowPt_Barrel","qg Axis2 #sigma_{2} lowPt Barrel",50,0.,0.20);
1356  mpTD_lowPt_Barrel= ibooker.book1D("qg_pTD_lowPt_Barrel","qg fragmentation function p_{T}^{D} lowPt Barrel",50,0.15,1.05);
1357  mMultiplicityQG_lowPt_Barrel= ibooker.book1D("qg_multiplicity_lowPt_Barrel","qg multiplicity lowPt Barrel",50,0,50);
1358  mqgLikelihood_lowPt_Barrel= ibooker.book1D("qg_Likelihood_lowPt_Barrel","qg likelihood lowPt Barrel",50,-1.1,1.1);
1359  mAxis2_lowPt_EndCap = ibooker.book1D("qg_Axis2_lowPt_EndCap","qg Axis2 #sigma_{2} lowPt EndCap",50,0.,0.20);
1360  mpTD_lowPt_EndCap= ibooker.book1D("qg_pTD_lowPt_EndCap","qg fragmentation function p_{T}^{D} lowPt EndCap",50,0.15,1.05);
1361  mMultiplicityQG_lowPt_EndCap= ibooker.book1D("qg_multiplicity_lowPt_EndCap","qg multiplicity lowPt EndCap",50,0,100);
1362  mqgLikelihood_lowPt_EndCap= ibooker.book1D("qg_Likelihood_lowPt_EndCap","qg likelihood lowPt EndCap",50,-1.1,1.1);
1363  mAxis2_lowPt_Forward = ibooker.book1D("qg_Axis2_lowPt_Forward","qg Axis2 #sigma_{2} lowPt Forward",50,0.,0.20);
1364  mpTD_lowPt_Forward= ibooker.book1D("qg_pTD_lowPt_Forward","qg fragmentation function p_{T}^{D} lowPt Forward",50,0.15,1.05);
1365  mMultiplicityQG_lowPt_Forward= ibooker.book1D("qg_multiplicity_lowPt_Forward","qg multiplicity lowPt Forward",50,0,100);
1366  mqgLikelihood_lowPt_Forward= ibooker.book1D("qg_Likelihood_lowPt_Forward","qg likelihood lowPt Forward",50,-1.1,1.1);
1367 
1368  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_Barrel" ,mAxis2_lowPt_Barrel));
1369  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_Barrel" ,mpTD_lowPt_Barrel));
1370  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_Barrel" ,mMultiplicityQG_lowPt_Barrel));
1371  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_Barrel" ,mqgLikelihood_lowPt_Barrel));
1372  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_EndCap" ,mAxis2_lowPt_EndCap));
1373  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_EndCap" ,mpTD_lowPt_EndCap));
1374  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_EndCap" ,mMultiplicityQG_lowPt_EndCap));
1375  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_EndCap" ,mqgLikelihood_lowPt_EndCap));
1376  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_lowPt_Forward" ,mAxis2_lowPt_Forward));
1377  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_lowPt_Forward" ,mpTD_lowPt_Forward));
1378  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_lowPt_Forward" ,mMultiplicityQG_lowPt_Forward));
1379  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_lowPt_Forward" ,mqgLikelihood_lowPt_Forward));
1380 
1381  mAxis2_mediumPt_Barrel = ibooker.book1D("qg_Axis2_mediumPt_Barrel","qg Axis2 #sigma_{2} mediumPt Barrel",50,0.,0.20);
1382  mpTD_mediumPt_Barrel= ibooker.book1D("qg_pTD_mediumPt_Barrel","qg fragmentation function p_{T}^{D} mediumPt Barrel",50,0.15,1.05);
1383  mMultiplicityQG_mediumPt_Barrel= ibooker.book1D("qg_multiplicity_mediumPt_Barrel","qg multiplicity mediumPt Barrel",50,0,100);
1384  mqgLikelihood_mediumPt_Barrel= ibooker.book1D("qg_Likelihood_mediumPt_Barrel","qg likelihood mediumPt Barrel",50,-1.1,1.1);
1385  mAxis2_mediumPt_EndCap = ibooker.book1D("qg_Axis2_mediumPt_EndCap","qg Axis2 #sigma_{2} mediumPt EndCap",50,0.,0.20);
1386  mpTD_mediumPt_EndCap= ibooker.book1D("qg_pTD_mediumPt_EndCap","qg fragmentation function p_{T}^{D} mediumPt EndCap",50,0.15,1.05);
1387  mMultiplicityQG_mediumPt_EndCap= ibooker.book1D("qg_multiplicity_mediumPt_EndCap","qg multiplicity mediumPt EndCap",50,0,100);
1388  mqgLikelihood_mediumPt_EndCap= ibooker.book1D("qg_Likelihood_mediumPt_EndCap","qg likelihood mediumPt EndCap",50,-1.1,1.1);
1389  mAxis2_mediumPt_Forward = ibooker.book1D("qg_Axis2_mediumPt_Forward","qg Axis2 #sigma_{2} mediumPt Forward",50,0.,0.20);
1390  mpTD_mediumPt_Forward= ibooker.book1D("qg_pTD_mediumPt_Forward","qg fragmentation function p_{T}^{D} mediumPt Forward",50,0.15,1.05);
1391  mMultiplicityQG_mediumPt_Forward= ibooker.book1D("qg_multiplicity_mediumPt_Forward","qg multiplicity mediumPt Forward",50,0,100);
1392  mqgLikelihood_mediumPt_Forward= ibooker.book1D("qg_Likelihood_mediumPt_Forward","qg likelihood mediumPt Forward",50,-1.1,1.1);
1393 
1394  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_Barrel" ,mAxis2_mediumPt_Barrel));
1395  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_Barrel" ,mpTD_mediumPt_Barrel));
1396  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_Barrel" ,mMultiplicityQG_mediumPt_Barrel));
1397  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_Barrel" ,mqgLikelihood_mediumPt_Barrel));
1398  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_EndCap" ,mAxis2_mediumPt_EndCap));
1399  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_EndCap" ,mpTD_mediumPt_EndCap));
1400  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_EndCap" ,mMultiplicityQG_mediumPt_EndCap));
1401  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_EndCap" ,mqgLikelihood_mediumPt_EndCap));
1402  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_mediumPt_Forward" ,mAxis2_mediumPt_Forward));
1403  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_mediumPt_Forward" ,mpTD_mediumPt_Forward));
1404  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_mediumPt_Forward" ,mMultiplicityQG_mediumPt_Forward));
1405  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_mediumPt_Forward" ,mqgLikelihood_mediumPt_Forward));
1406 
1407  mAxis2_highPt_Barrel = ibooker.book1D("qg_Axis2_highPt_Barrel","qg Axis2 #sigma_{2} highPt Barrel",50,0.,0.20);
1408  mpTD_highPt_Barrel= ibooker.book1D("qg_pTD_highPt_Barrel","qg fragmentation function p_{T}^{D} highPt Barrel",50,0.15,1.05);
1409  mMultiplicityQG_highPt_Barrel= ibooker.book1D("qg_multiplicity_highPt_Barrel","qg multiplicity highPt Barrel",50,0,100);
1410  mqgLikelihood_highPt_Barrel= ibooker.book1D("qg_Likelihood_highPt_Barrel","qg likelihood highPt Barrel",50,-1.1,1.1);
1411  mAxis2_highPt_EndCap = ibooker.book1D("qg_Axis2_highPt_EndCap","qg Axis2 #sigma_{2} highPt EndCap",50,0.,0.20);
1412  mpTD_highPt_EndCap= ibooker.book1D("qg_pTD_highPt_EndCap","qg fragmentation function p_{T}^{D} highPt EndCap",50,0.15,1.05);
1413  mMultiplicityQG_highPt_EndCap= ibooker.book1D("qg_multiplicity_highPt_EndCap","qg multiplicity highPt EndCap",50,0,100);
1414  mqgLikelihood_highPt_EndCap= ibooker.book1D("qg_Likelihood_highPt_EndCap","qg likelihood highPt EndCap",50,-1.1,1.1);
1415  mAxis2_highPt_Forward = ibooker.book1D("qg_Axis2_highPt_Forward","qg Axis2 #sigma_{2} highPt Forward",50,0.,0.20);
1416  mpTD_highPt_Forward= ibooker.book1D("qg_pTD_highPt_Forward","qg fragmentation function p_{T}^{D} highPt Forward",50,0.15,1.05);
1417  mMultiplicityQG_highPt_Forward= ibooker.book1D("qg_multiplicity_highPt_Forward","qg multiplicity highPt Forward",50,0,100);
1418  mqgLikelihood_highPt_Forward= ibooker.book1D("qg_Likelihood_highPt_Forward","qg likelihood highPt Forward",50,-1.1,1.1);
1419 
1420  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_Barrel" ,mAxis2_highPt_Barrel));
1421  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_Barrel" ,mpTD_highPt_Barrel));
1422  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_Barrel" ,mMultiplicityQG_highPt_Barrel));
1423  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_Barrel" ,mqgLikelihood_highPt_Barrel));
1424  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_EndCap" ,mAxis2_highPt_EndCap));
1425  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_EndCap" ,mpTD_highPt_EndCap));
1426  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_EndCap" ,mMultiplicityQG_highPt_EndCap));
1427  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_EndCap" ,mqgLikelihood_highPt_EndCap));
1428  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Axis2_highPt_Forward" ,mAxis2_highPt_Forward));
1429  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_pTD_highPt_Forward" ,mpTD_highPt_Forward));
1430  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_multiplicity_highPt_Forward" ,mMultiplicityQG_highPt_Forward));
1431  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"qg_Likelihood_highPt_Forward" ,mqgLikelihood_highPt_Forward));
1432  }
1433 
1434  if(DirName.find("DiJet")!=std::string::npos){
1435  mDPhi = ibooker.book1D("DPhi", "dPhi btw the two leading jets", 100, 0., acos(-1.));
1436  mDijetAsymmetry = ibooker.book1D("DijetAsymmetry", "DijetAsymmetry", 100, -1., 1.);
1437  mDijetBalance = ibooker.book1D("DijetBalance", "DijetBalance", 100, -2., 2.);
1438  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DPhi" ,mDPhi));
1439  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DijetAsymmetry" ,mDijetAsymmetry));
1440  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DijetBalance" ,mDijetBalance));
1441 
1442  if(isPFJet_|| isMiniAODJet_){
1443  mChargedMultiplicity = ibooker.book1D("ChargedMultiplicity", "charged multiplicity ", 50, 0, 100);
1444  mNeutralMultiplicity = ibooker.book1D("NeutralMultiplicity", "neutral multiplicity", 50, 0, 100);
1445  mMuonMultiplicity = ibooker.book1D("MuonMultiplicity", "muon multiplicity", 50, 0, 100);
1446 
1447  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMultiplicity" ,mChargedMultiplicity));
1448  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralMultiplicity" ,mNeutralMultiplicity));
1449  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuonMultiplicity" ,mMuonMultiplicity));
1450 
1451  mChargedMultiplicity_profile = ibooker.bookProfile("ChargedMultiplicity_profile", "charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1452  mNeutralMultiplicity_profile = ibooker.bookProfile("NeutralMultiplicity_profile", "neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1453  mMuonMultiplicity_profile = ibooker.bookProfile("MuonMultiplicity_profile", "muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1457 
1458  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ChargedMultiplicity_profile" ,mChargedMultiplicity_profile));
1459  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralMultiplicity_profile" ,mNeutralMultiplicity_profile));
1460  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MuonMultiplicity_profile" ,mMuonMultiplicity_profile));
1461 
1462  mNeutralFraction = ibooker.book1D("NeutralConstituentsFraction","Neutral Constituents Fraction",100,0,1);
1463  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NeutralConstituentsFraction" ,mNeutralFraction));
1464  }
1465  }
1466 
1467 
1468  if(DirName.find("ZJets")!=std::string::npos){
1469  mZMass = ibooker.book1D("DiMuonMass", "DiMuonMass", 50, 71., 111.);
1470  mDPhiZJet = ibooker.book1D("DPhiZJ", "dPhi btw Z and Jet1", 100, 0., acos(-1.));
1471  mZJetAsymmetry = ibooker.book1D("ZJetAsymmetry", "ZJetAsymmetry", 100, -1., 1.);
1472  mJetZBalance_lowZPt_J_Barrel = ibooker.book1D("JZB_lowZPt_J_Barrel", "ZJetBalance (pTJet1-pTZ) (30<pTZ<90), |#eta_{jet}|<1.3", 50, -75.,75);
1473  mJetZBalance_mediumZPt_J_Barrel = ibooker.book1D("JZB_mediumZPt_J_Barrel", "ZJetBalance (90<pTZ<140), |#eta_{jet}|<1.3", 50, -75.,75);
1474  mJetZBalance_highZPt_J_Barrel = ibooker.book1D("JZB_highZPt_J_Barrel", "ZJetBalance (pTZ>140), |#eta_{jet}|<1.3", 50, -75., 75.);
1475  mJetZBalance_lowZPt_J_EndCap = ibooker.book1D("JZB_lowZPt_J_EndCap", "ZJetBalance (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, -75.,75);
1476  mJetZBalance_mediumZPt_J_EndCap = ibooker.book1D("JZB_mediumZPt_J_EndCap", "ZJetBalance (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, -75.,75);
1477  mJetZBalance_highZPt_J_EndCap = ibooker.book1D("JZB_highZPt_J_EndCap", "ZJetBalance (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, -75., 75.);
1478  mJetZBalance_lowZPt_J_Forward = ibooker.book1D("JZB_lowZPt_J_Forward", "ZJetBalance (30<pTZ<90), |#eta_{jet}|>3.0", 50, -75.,75);
1479  mJetZBalance_mediumZPt_J_Forward = ibooker.book1D("JZB_mediumZPt_J_Forward", "ZJetBalance (90<pTZ<140), |#eta_{jet}|>3.0", 50, -75.,75);
1480  mJetZBalance_highZPt_J_Forward = ibooker.book1D("JZB_highZPt_J_Forward", "ZJetBalance (pTZ>140), |#eta_{jet}|>3.0", 50, -75., 75.);
1481 
1482  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DiMuonMass" ,mZMass));
1483  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DPhiZJ" ,mDPhiZJet ));
1484  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"ZJetAsymmetry" ,mZJetAsymmetry ));
1485  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_lowZPt_J_Barrel" ,mJetZBalance_lowZPt_J_Barrel ));
1486  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_mediumZPt_J_Barrel" ,mJetZBalance_mediumZPt_J_Barrel ));
1487  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_highZPt_J_Barrel" ,mJetZBalance_highZPt_J_Barrel ));
1488  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_lowZPt_J_EndCap" ,mJetZBalance_lowZPt_J_EndCap ));
1489  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_mediumZPt_J_EndCap" ,mJetZBalance_mediumZPt_J_EndCap ));
1490  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_highZPt_J_EndCap" ,mJetZBalance_highZPt_J_EndCap ));
1491  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_lowZPt_J_Forward" ,mJetZBalance_lowZPt_J_Forward ));
1492  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_mediumZPt_J_Forward" ,mJetZBalance_mediumZPt_J_Forward ));
1493  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"JZB_highZPt_J_Forward" ,mJetZBalance_highZPt_J_Forward ));
1494 
1495  mJ1Pt_over_ZPt_J_Barrel = ibooker.book1D("J1Pt_over_ZPt_J_Barrel", "Jet1_Pt/ZPt, Barrel", 50, 0.,3.0);
1496  mJ1Pt_over_ZPt_J_EndCap = ibooker.book1D("J1Pt_over_ZPt_J_EndCap", "Jet1_Pt/ZPt, EndCap", 50, 0.,3.0);
1497  mJ1Pt_over_ZPt_J_Forward = ibooker.book1D("J1Pt_over_ZPt_J_Forward", "Jet1_Pt/ZPt, Forward", 50, 0.,3.0);
1498 
1499  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_J_Barrel" ,mJ1Pt_over_ZPt_J_Barrel ));
1500  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_J_EndCap" ,mJ1Pt_over_ZPt_J_EndCap ));
1501  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_J_Forward" ,mJ1Pt_over_ZPt_J_Forward ));
1502 
1503  mJ1Pt_over_ZPt_lowZPt_J_Barrel = ibooker.book1D("J1Pt_over_ZPt_lowZPt_J_Barrel", "Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0.,3.0);
1504  mJ1Pt_over_ZPt_mediumZPt_J_Barrel = ibooker.book1D("J1Pt_over_ZPt_mediumZPt_J_Barrel", "Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0.,3.0);
1505  mJ1Pt_over_ZPt_highZPt_J_Barrel = ibooker.book1D("J1Pt_over_ZPt_highPt_J_Barrel", "Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0.,3.0);
1506  mJ1Pt_over_ZPt_lowZPt_J_EndCap = ibooker.book1D("J1Pt_over_ZPt_lowZPt_J_EndCap", "Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1507  mJ1Pt_over_ZPt_mediumZPt_J_EndCap = ibooker.book1D("J1Pt_over_ZPt_mediumZPt_J_EndCap", "Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1508  mJ1Pt_over_ZPt_highZPt_J_EndCap = ibooker.book1D("J1Pt_over_ZPt_highZPt_J_EndCap", "Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1509  mJ1Pt_over_ZPt_lowZPt_J_Forward = ibooker.book1D("J1Pt_over_ZPt_lowZPt_J_Forward", "Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0.,3.0);
1510  mJ1Pt_over_ZPt_mediumZPt_J_Forward = ibooker.book1D("J1Pt_over_ZPt_mediumPt_J_Forward", "Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0.,3.0);
1511  mJ1Pt_over_ZPt_highZPt_J_Forward = ibooker.book1D("J1Pt_over_ZPt_highZPt_J_Forward", "Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0.,3.0);
1512 
1513  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_lowZPt_J_Barrel" ,mJ1Pt_over_ZPt_lowZPt_J_Barrel ));
1514  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_mediumZPt_J_Barrel" ,mJ1Pt_over_ZPt_mediumZPt_J_Barrel ));
1515  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_highZPt_J_Barrel" ,mJ1Pt_over_ZPt_highZPt_J_Barrel ));
1516  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_lowZPt_J_EndCap" ,mJ1Pt_over_ZPt_lowZPt_J_EndCap ));
1517  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_mediumZPt_J_EndCap" ,mJ1Pt_over_ZPt_mediumZPt_J_EndCap ));
1518  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_highZPt_J_EndCap" ,mJ1Pt_over_ZPt_highZPt_J_EndCap ));
1519  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_lowZPt_J_Forward" ,mJ1Pt_over_ZPt_lowZPt_J_Forward ));
1520  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_mediumZPt_J_Forward" ,mJ1Pt_over_ZPt_mediumZPt_J_Forward ));
1521  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"J1Pt_over_ZPt_highZPt_J_Forward" ,mJ1Pt_over_ZPt_highZPt_J_Forward ));
1522 
1523 
1524  mMPF_J_Barrel = ibooker.book1D("MPF_J_Barrel", "Jet1_Pt/ZPt, Barrel", 50, 0.,2.0);
1525  mMPF_J_EndCap = ibooker.book1D("MPF_J_EndCap", "Jet1_Pt/ZPt, EndCap", 50, 0.,2.0);
1526  mMPF_J_Forward = ibooker.book1D("MPF_J_Forward", "Jet1_Pt/ZPt, Forward", 50, 0.,2.0);
1527 
1528  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_J_Barrel" ,mMPF_J_Barrel ));
1529  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_J_EndCap" ,mMPF_J_EndCap ));
1530  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_J_Forward" ,mMPF_J_Forward ));
1531 
1532  mMPF_lowZPt_J_Barrel = ibooker.book1D("MPF_lowZPt_J_Barrel", "Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0.,2.0);
1533  mMPF_mediumZPt_J_Barrel = ibooker.book1D("MPF_mediumZPt_J_Barrel", "Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0.,2.0);
1534  mMPF_highZPt_J_Barrel = ibooker.book1D("MPF_highPt_J_Barrel", "Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0.,2.0);
1535  mMPF_lowZPt_J_EndCap = ibooker.book1D("MPF_lowZPt_J_EndCap", "Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1536  mMPF_mediumZPt_J_EndCap = ibooker.book1D("MPF_mediumZPt_J_EndCap", "Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1537  mMPF_highZPt_J_EndCap = ibooker.book1D("MPF_highZPt_J_EndCap", "Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1538  mMPF_lowZPt_J_Forward = ibooker.book1D("MPF_lowZPt_J_Forward", "Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0.,2.0);
1539  mMPF_mediumZPt_J_Forward = ibooker.book1D("MPF_mediumPt_J_Forward", "Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0.,2.0);
1540  mMPF_highZPt_J_Forward = ibooker.book1D("MPF_highZPt_J_Forward", "Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0.,2.0);
1541 
1542  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_lowZPt_J_Barrel" ,mMPF_lowZPt_J_Barrel ));
1543  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_mediumZPt_J_Barrel" ,mMPF_mediumZPt_J_Barrel ));
1544  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_highZPt_J_Barrel" ,mMPF_highZPt_J_Barrel ));
1545  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_lowZPt_J_EndCap" ,mMPF_lowZPt_J_EndCap ));
1546  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_mediumZPt_J_EndCap" ,mMPF_mediumZPt_J_EndCap ));
1547  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_highZPt_J_EndCap" ,mMPF_highZPt_J_EndCap ));
1548  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_lowZPt_J_Forward" ,mMPF_lowZPt_J_Forward ));
1549  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_mediumZPt_J_Forward" ,mMPF_mediumZPt_J_Forward ));
1550  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"MPF_highZPt_J_Forward" ,mMPF_highZPt_J_Forward ));
1551 
1552 
1553  mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel", "DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel", 50, -1.00,1.00);
1554  mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel", "DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel", 50, -1.00,1.00);
1555  mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel", "DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel", 50, -1.00,1.00);
1556  mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel", "DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel", 50, -1.00,1.00);
1557  mDeltaPt_Z_j1_over_ZPt_290_J_Barrel = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_290_J_Barrel", "DeltaPt_Z_j1_over_ZPt_290_J_Barrel", 50, -1.00,1.00);
1558  mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap", "DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap", 50, -1.00,1.00);
1559  mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap", "DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap", 50, -1.00,1.00);
1560  mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap", "DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap", 50, -1.00,1.00);
1561  mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap", "DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap", 50, -1.00,1.00);
1562  mDeltaPt_Z_j1_over_ZPt_290_J_EndCap = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_290_J_EndCap", "DeltaPt_Z_j1_over_ZPt_290_J_EndCap", 50, -1.00,1.00);
1563  mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_30_55_J_Forward", "DeltaPt_Z_j1_over_ZPt_30_55_J_Forward", 50, -1.00,1.00);
1564  mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_55_100_J_Forward", "DeltaPt_Z_j1_over_ZPt_55_100_J_Forward", 50, -1.00,1.00);
1565  mDeltaPt_Z_j1_over_ZPt_100_J_Forward = ibooker.book1D("DeltaPt_Z_j1_over_ZPt_100_J_Forward", "DeltaPt_Z_j1_over_ZPt_100_J_Forward", 50, -1.00,1.00);
1566 
1567  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel ));
1568  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel ));
1569  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel ));
1570  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel ));
1571  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_290_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_290_J_Barrel ));
1572  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap ));
1573  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap ));
1574  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap ));
1575  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap ));
1576  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_290_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_290_J_EndCap ));
1577  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward ));
1578  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward ));
1579  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"DeltaPt_Z_j1_over_ZPt_100_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_100_J_Forward ));
1580  }
1581  // Book NPV profiles
1582  //----------------------------------------------------------------------------
1583  mPt_profile = ibooker.bookProfile("Pt_profile", "pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
1584  mEta_profile = ibooker.bookProfile("Eta_profile", "eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
1585  mPhi_profile = ibooker.bookProfile("Phi_profile", "phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
1586  //if(!isJPTJet_){
1587  mConstituents_profile = ibooker.bookProfile("Constituents_profile", "# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1588  //}
1589  // met NPV profiles x-axis title
1590  //----------------------------------------------------------------------------
1591  mPt_profile ->setAxisTitle("nvtx",1);
1592  mEta_profile ->setAxisTitle("nvtx",1);
1593  mPhi_profile ->setAxisTitle("nvtx",1);
1594  //if(!isJPTJet_){
1596  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Constituents_profile",mConstituents_profile));
1597  //}
1598 
1599  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Pt_profile" ,mPt_profile));
1600  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Eta_profile",mEta_profile));
1601  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"Phi_profile",mPhi_profile));
1602  //
1603  //--- Calo jet melection only
1604 
1605  if(isCaloJet_) {
1606  mHFrac = ibooker.book1D("HFrac", "HFrac", 140, -0.2, 1.2);
1607  mEFrac = ibooker.book1D("EFrac", "EFrac", 140, -0.2, 1.2);
1608  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac" ,mHFrac));
1609  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac" ,mEFrac));
1610 
1611  mHFrac_profile = ibooker.bookProfile("HFrac_profile", "HFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
1612  mEFrac_profile = ibooker.bookProfile("EFrac_profile", "EFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
1613  mHFrac_profile ->setAxisTitle("nvtx",1);
1614  mEFrac_profile ->setAxisTitle("nvtx",1);
1615  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFrac_profile",mHFrac_profile));
1616  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"EFrac_profile",mEFrac_profile));
1617 
1618  // CaloJet specific
1619  //JetID variables
1620  mresEMF = ibooker.book1D("resEMF", "resEMF", 50, 0., 1.);
1621  mN90Hits = ibooker.book1D("N90Hits", "N90Hits", 50, 0., 100);
1622  mfHPD = ibooker.book1D("fHPD", "fHPD", 50, 0., 1.);
1623  mfRBX = ibooker.book1D("fRBX", "fRBX", 50, 0., 1.);
1624 
1625  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"resEMF" ,mresEMF));
1626  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"N90Hits",mN90Hits));
1627  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"fHPD" ,mfHPD));
1628  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"fRBX" ,mfRBX));
1629 
1630  }
1631 
1632  if(isPFJet_|| isMiniAODJet_){
1633  //barrel histograms for PFJets
1634  // energy fractions
1635  mCHFrac = ibooker.book1D("CHFrac", "CHFrac", 120, -0.1, 1.1);
1636  mNHFrac = ibooker.book1D("NHFrac", "NHFrac", 120, -0.1, 1.1);
1637  mPhFrac = ibooker.book1D("PhFrac", "PhFrac", 120, -0.1, 1.1);
1638  mHFEMFrac = ibooker.book1D("HFEMFrac","HFEMFrac", 120, -0.1, 1.1);
1639  mHFHFrac = ibooker.book1D("HFHFrac", "HFHFrac", 120, -0.1, 1.1);
1640 
1641  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac" ,mCHFrac));
1642  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac" ,mNHFrac));
1643  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac" ,mPhFrac));
1644  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFrac",mHFEMFrac));
1645  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFrac" ,mHFHFrac));
1646 
1647  // Book NPV profiles
1648  //----------------------------------------------------------------------------
1649  mCHFrac_profile = ibooker.bookProfile("CHFrac_profile", "charged HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1650  mNHFrac_profile = ibooker.bookProfile("NHFrac_profile", "neutral HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1651  mPhFrac_profile = ibooker.bookProfile("PhFrac_profile", "Photon Fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1652  mHFEMFrac_profile = ibooker.bookProfile("HFEMFrac_profile","HF electomagnetic fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1653  mHFHFrac_profile = ibooker.bookProfile("HFHFrac_profile", "HF hadronic fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1654 
1655 
1656  // met NPV profiles x-axis title
1657  //----------------------------------------------------------------------------
1658  mCHFrac_profile ->setAxisTitle("nvtx",1);
1659  mNHFrac_profile ->setAxisTitle("nvtx",1);
1660  mPhFrac_profile ->setAxisTitle("nvtx",1);
1661  mHFEMFrac_profile ->setAxisTitle("nvtx",1);
1662  mHFHFrac_profile ->setAxisTitle("nvtx",1);
1663 
1664  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"CHFrac_profile" ,mCHFrac_profile));
1665  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"NHFrac_profile" ,mNHFrac_profile));
1666  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"PhFrac_profile" ,mPhFrac_profile));
1667  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFEMFrac_profile",mHFEMFrac_profile));
1668  map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+"/"+"HFHFrac_profile" ,mHFHFrac_profile));
1669 
1670  }
1671 }
MonitorElement * mqgLikelihood_lowPt_Barrel
Definition: JetAnalyzer.h:513
MonitorElement * mJetZBalance_lowZPt_J_Barrel
Definition: JetAnalyzer.h:754
MonitorElement * mDeltaPt_Z_j1_over_ZPt_290_J_Barrel
Definition: JetAnalyzer.h:791
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel
Definition: JetAnalyzer.h:787
MonitorElement * mfRBX
Definition: JetAnalyzer.h:380
MonitorElement * mMultiplicityQG_highPt_Forward
Definition: JetAnalyzer.h:546
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap
Definition: JetAnalyzer.h:792
MonitorElement * mJetZBalance_lowZPt_J_Forward
Definition: JetAnalyzer.h:760
double ptMin_
Definition: JetAnalyzer.h:188
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward
Definition: JetAnalyzer.h:798
MonitorElement * mJetZBalance_highZPt_J_Barrel
Definition: JetAnalyzer.h:756
MonitorElement * mMPF_mediumZPt_J_Forward
Definition: JetAnalyzer.h:785
MonitorElement * mqgLikelihood_highPt_EndCap
Definition: JetAnalyzer.h:534
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_Barrel
Definition: JetAnalyzer.h:769
MonitorElement * mMultiplicityQG_mediumPt_EndCap
Definition: JetAnalyzer.h:529
MonitorElement * mHFHFrac
Definition: JetAnalyzer.h:575
MonitorElement * mNHFrac
Definition: JetAnalyzer.h:572
MonitorElement * mMPF_J_EndCap
Definition: JetAnalyzer.h:767
MonitorElement * mqgLikelihood_mediumPt_Barrel
Definition: JetAnalyzer.h:517
MonitorElement * mDeltaPt_Z_j1_over_ZPt_290_J_EndCap
Definition: JetAnalyzer.h:796
MonitorElement * mMPF_highZPt_J_Forward
Definition: JetAnalyzer.h:786
MonitorElement * mN90Hits
Definition: JetAnalyzer.h:378
MonitorElement * mCHFrac
Definition: JetAnalyzer.h:571
MonitorElement * mJetZBalance_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:755
MonitorElement * mCHFrac_profile
Definition: JetAnalyzer.h:576
MonitorElement * mpTD_mediumPt_EndCap
Definition: JetAnalyzer.h:528
bool isCaloJet_
Definition: JetAnalyzer.h:803
MonitorElement * mMPF_lowZPt_J_EndCap
Definition: JetAnalyzer.h:781
MonitorElement * mNeutralMultiplicity
Definition: JetAnalyzer.h:506
MonitorElement * mEFrac_profile
Definition: JetAnalyzer.h:341
MonitorElement * mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap
Definition: JetAnalyzer.h:795
MonitorElement * mHFEMFrac
Definition: JetAnalyzer.h:574
MonitorElement * mEta
Definition: JetAnalyzer.h:225
std::string DirName
Definition: JetAnalyzer.h:171
MonitorElement * mpTD_lowPt_Forward
Definition: JetAnalyzer.h:537
MonitorElement * mMPF_highZPt_J_Barrel
Definition: JetAnalyzer.h:780
MonitorElement * mMultiplicityQG_lowPt_EndCap
Definition: JetAnalyzer.h:525
MonitorElement * mChargedMultiplicity_profile
Definition: JetAnalyzer.h:565
MonitorElement * mAxis2_mediumPt_Barrel
Definition: JetAnalyzer.h:514
MonitorElement * mAxis2_highPt_Forward
Definition: JetAnalyzer.h:544
MonitorElement * mpTD_mediumPt_Barrel
Definition: JetAnalyzer.h:515
MonitorElement * mDPhi
Definition: JetAnalyzer.h:276
MonitorElement * mresEMF
Definition: JetAnalyzer.h:381
MonitorElement * mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel
Definition: JetAnalyzer.h:789
double nPVhigh_
Definition: JetAnalyzer.h:201
MonitorElement * mNHFrac_profile
Definition: JetAnalyzer.h:577
MonitorElement * mConstituents_profile
Definition: JetAnalyzer.h:339
MonitorElement * mpTD_highPt_EndCap
Definition: JetAnalyzer.h:532
MonitorElement * mDijetBalance
Definition: JetAnalyzer.h:330
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap
Definition: JetAnalyzer.h:793
MonitorElement * mJ1Pt_over_ZPt_J_Barrel
Definition: JetAnalyzer.h:763
MonitorElement * mJ1Pt_over_ZPt_J_EndCap
Definition: JetAnalyzer.h:764
MonitorElement * mAxis2_highPt_Barrel
Definition: JetAnalyzer.h:518
MonitorElement * mJetZBalance_mediumZPt_J_Forward
Definition: JetAnalyzer.h:761
MonitorElement * mNeutralMultiplicity_profile
Definition: JetAnalyzer.h:566
MonitorElement * mMultiplicityQG_highPt_EndCap
Definition: JetAnalyzer.h:533
MonitorElement * mNeutralFraction
Definition: JetAnalyzer.h:551
double ptMax_
Definition: JetAnalyzer.h:189
MonitorElement * mJetZBalance_lowZPt_J_EndCap
Definition: JetAnalyzer.h:757
MonitorElement * mPhi
Definition: JetAnalyzer.h:226
MonitorElement * mpTD_highPt_Barrel
Definition: JetAnalyzer.h:519
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_Forward
Definition: JetAnalyzer.h:777
MonitorElement * mMuonMultiplicity_profile
Definition: JetAnalyzer.h:567
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
bool fill_CHS_histos
Definition: JetAnalyzer.h:809
MonitorElement * mPhFrac_profile
Definition: JetAnalyzer.h:578
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_Barrel
Definition: JetAnalyzer.h:771
MonitorElement * mPt_profile
Definition: JetAnalyzer.h:336
MonitorElement * mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel
Definition: JetAnalyzer.h:788
MonitorElement * mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap
Definition: JetAnalyzer.h:794
MonitorElement * mAxis2_highPt_EndCap
Definition: JetAnalyzer.h:531
MonitorElement * mMultiplicityQG_highPt_Barrel
Definition: JetAnalyzer.h:520
MonitorElement * mMPF_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:779
MonitorElement * mJ1Pt_over_ZPt_J_Forward
Definition: JetAnalyzer.h:765
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_Forward
Definition: JetAnalyzer.h:776
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:773
MonitorElement * mEFrac
Definition: JetAnalyzer.h:238
double phiMin_
Definition: JetAnalyzer.h:184
MonitorElement * mMPF_lowZPt_J_Barrel
Definition: JetAnalyzer.h:778
double nPVlow_
Definition: JetAnalyzer.h:200
MonitorElement * mMPF_lowZPt_J_Forward
Definition: JetAnalyzer.h:784
MonitorElement * mfHPD
Definition: JetAnalyzer.h:379
MonitorElement * mDijetAsymmetry
Definition: JetAnalyzer.h:331
MonitorElement * mpTD_lowPt_Barrel
Definition: JetAnalyzer.h:511
MonitorElement * mJetEnergyCorr
Definition: JetAnalyzer.h:232
MonitorElement * mJetZBalance_highZPt_J_Forward
Definition: JetAnalyzer.h:762
MonitorElement * mAxis2_lowPt_EndCap
Definition: JetAnalyzer.h:523
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * mChargedMultiplicity
Definition: JetAnalyzer.h:505
MonitorElement * mJ1Pt_over_ZPt_highZPt_J_EndCap
Definition: JetAnalyzer.h:774
std::map< std::string, MonitorElement * > map_of_MEs
Definition: JetAnalyzer.h:801
MonitorElement * mPt
Definition: JetAnalyzer.h:221
MonitorElement * mqgLikelihood_highPt_Forward
Definition: JetAnalyzer.h:547
double etaMin_
Definition: JetAnalyzer.h:180
MonitorElement * mJetEnergyCorrVSPt
Definition: JetAnalyzer.h:234
double etaMax_
Definition: JetAnalyzer.h:181
MonitorElement * mAxis2_lowPt_Barrel
Definition: JetAnalyzer.h:510
MonitorElement * mMPF_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:782
MonitorElement * mqgLikelihood_mediumPt_EndCap
Definition: JetAnalyzer.h:530
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_EndCap
Definition: JetAnalyzer.h:772
MonitorElement * mMPF_J_Forward
Definition: JetAnalyzer.h:768
MonitorElement * mpTD_lowPt_EndCap
Definition: JetAnalyzer.h:524
bool isMiniAODJet_
Definition: JetAnalyzer.h:805
MonitorElement * mJetZBalance_mediumZPt_J_EndCap
Definition: JetAnalyzer.h:758
MonitorElement * mHFrac_profile
Definition: JetAnalyzer.h:340
MonitorElement * mMPF_highZPt_J_EndCap
Definition: JetAnalyzer.h:783
MonitorElement * mMultiplicityQG_lowPt_Barrel
Definition: JetAnalyzer.h:512
MonitorElement * mqgLikelihood_lowPt_EndCap
Definition: JetAnalyzer.h:526
MonitorElement * mAxis2_mediumPt_Forward
Definition: JetAnalyzer.h:540
MonitorElement * mAxis2_lowPt_Forward
Definition: JetAnalyzer.h:536
MonitorElement * mMultiplicityQG_mediumPt_Barrel
Definition: JetAnalyzer.h:516
MonitorElement * mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward
Definition: JetAnalyzer.h:797
MonitorElement * mPhFrac
Definition: JetAnalyzer.h:573
MonitorElement * mPhi_profile
Definition: JetAnalyzer.h:338
MonitorElement * mConstituents
Definition: JetAnalyzer.h:236
MonitorElement * mJetEnergyCorrVSEta
Definition: JetAnalyzer.h:233
MonitorElement * mMPF_J_Barrel
Definition: JetAnalyzer.h:766
MonitorElement * mJetZBalance_highZPt_J_EndCap
Definition: JetAnalyzer.h:759
MonitorElement * mMultiplicityQG_lowPt_Forward
Definition: JetAnalyzer.h:538
MonitorElement * mEta_profile
Definition: JetAnalyzer.h:337
MonitorElement * mpTD_mediumPt_Forward
Definition: JetAnalyzer.h:541
double phiMax_
Definition: JetAnalyzer.h:185
MonitorElement * mDPhiZJet
Definition: JetAnalyzer.h:751
MonitorElement * mqgLikelihood_highPt_Barrel
Definition: JetAnalyzer.h:521
MonitorElement * mqgLikelihood_mediumPt_Forward
Definition: JetAnalyzer.h:543
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * mMuonMultiplicity
Definition: JetAnalyzer.h:507
MonitorElement * mHFEMFrac_profile
Definition: JetAnalyzer.h:579
MonitorElement * mZMass
Definition: JetAnalyzer.h:752
MonitorElement * mMultiplicityQG_mediumPt_Forward
Definition: JetAnalyzer.h:542
MonitorElement * mqgLikelihood_lowPt_Forward
Definition: JetAnalyzer.h:539
MonitorElement * mDeltaPt_Z_j1_over_ZPt_100_J_Forward
Definition: JetAnalyzer.h:799
MonitorElement * mJ1Pt_over_ZPt_lowZPt_J_Forward
Definition: JetAnalyzer.h:775
MonitorElement * mZJetAsymmetry
Definition: JetAnalyzer.h:753
MonitorElement * mHFrac
Definition: JetAnalyzer.h:237
MonitorElement * mAxis2_mediumPt_EndCap
Definition: JetAnalyzer.h:527
MonitorElement * mpTD_highPt_Forward
Definition: JetAnalyzer.h:545
MonitorElement * mHFHFrac_profile
Definition: JetAnalyzer.h:580
MonitorElement * mJ1Pt_over_ZPt_mediumZPt_J_Barrel
Definition: JetAnalyzer.h:770
MonitorElement * mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel
Definition: JetAnalyzer.h:790
void JetAnalyzer::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
override

Initialize run-based parameters.

Definition at line 1674 of file JetAnalyzer.cc.

References edm::EventSetup::get(), L1GtTriggerMenu::gtTechnicalTriggerMap(), LogDebug, and edm::ESHandle< T >::product().

1675 {
1676  //LogDebug("JetAnalyzer") << "beginRun, run " << run.id();
1677  //
1678 
1679  if ( highPtJetEventFlag_->on() ) highPtJetEventFlag_->initRun( iRun, iSetup );
1680  if ( lowPtJetEventFlag_ ->on() ) lowPtJetEventFlag_ ->initRun( iRun, iSetup );
1681 
1682  if (highPtJetEventFlag_->on() && highPtJetEventFlag_->expressionsFromDB(highPtJetEventFlag_->hltDBKey(), iSetup)[0] != "CONFIG_ERROR")
1684  if (lowPtJetEventFlag_->on() && lowPtJetEventFlag_->expressionsFromDB(lowPtJetEventFlag_->hltDBKey(), iSetup)[0] != "CONFIG_ERROR")
1686 // if (!jetCorrectionService_.empty()){
1687 // energycorrected=true;
1688 // }
1689  //--- htlConfig_
1690  //processname_="HLT";
1691  bool changed(true);
1692  hltInitialized_ = hltConfig_.init(iRun,iSetup,processname_,changed);
1693  if (!hltInitialized_) {
1694  //if (!hltConfig_.init(iRun,iSetup,processname_,changed)) {
1695  processname_ = "FU";
1696  hltInitialized_ = hltConfig_.init(iRun,iSetup,processname_,changed);
1697  if(!hltInitialized_){
1698  //if (!hltConfig_.init(iRun,iSetup,processname_,changed)){
1699  LogDebug("JetAnalyzer") << "HLTConfigProvider failed to initialize.";
1700  }
1701  }
1702 
1704  iSetup.get<L1GtTriggerMenuRcd>().get(menuRcd) ;
1705  const L1GtTriggerMenu* menu = menuRcd.product();
1706  for (CItAlgo techTrig = menu->gtTechnicalTriggerMap().begin(); techTrig != menu->gtTechnicalTriggerMap().end(); ++techTrig) {
1707  if ((techTrig->second).algoName() == m_l1algoname_) {
1708  m_bitAlgTechTrig_=(techTrig->second).algoBitNumber();
1709  break;
1710  }
1711  }
1712 
1713 }
#define LogDebug(id)
std::vector< std::string > lowPtJetExpr_
Definition: JetAnalyzer.h:357
int m_bitAlgTechTrig_
Definition: JetAnalyzer.h:215
std::string m_l1algoname_
Definition: JetAnalyzer.h:214
HLTConfigProvider hltConfig_
Definition: JetAnalyzer.h:346
bool hltInitialized_
Definition: JetAnalyzer.h:343
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
std::vector< std::string > expressionsFromDB(const std::string &key, const edm::EventSetup &setup)
Reads and returns logical expressions from DB.
std::string processname_
Definition: JetAnalyzer.h:347
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
GenericTriggerEventFlag * highPtJetEventFlag_
Definition: JetAnalyzer.h:353
GenericTriggerEventFlag * lowPtJetEventFlag_
Definition: JetAnalyzer.h:354
T get() const
Definition: EventSetup.h:63
std::vector< std::string > highPtJetExpr_
Definition: JetAnalyzer.h:356
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
T const * product() const
Definition: ESHandle.h:86
void JetAnalyzer::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
override

Finish up a run.

Definition at line 1716 of file JetAnalyzer.cc.

1717 {
1718 }
static bool JetAnalyzer::jetSortingRule ( reco::Jet  x,
reco::Jet  y 
)
inlinestaticprivate

Definition at line 109 of file JetAnalyzer.h.

References reco::LeafCandidate::pt().

109 {return x.pt() > y.pt();}
double pt() const final
transverse momentum

Member Data Documentation

double JetAnalyzer::asymmetryThirdJetCut_
private

Definition at line 209 of file JetAnalyzer.h.

double JetAnalyzer::balanceThirdJetCut_
private

Definition at line 210 of file JetAnalyzer.h.

bool JetAnalyzer::bypassAllPVChecks_
private

Definition at line 344 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::CaloJetCollection> JetAnalyzer::caloJetsToken_
private

Definition at line 122 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::CaloMETCollection> JetAnalyzer::caloMetToken_
private

Definition at line 126 of file JetAnalyzer.h.

edm::ParameterSet JetAnalyzer::cleaningParameters_
private

Definition at line 148 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::cleanupME
private

Definition at line 350 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<float> > JetAnalyzer::cutBasedPUDiscriminantToken_
private

Definition at line 132 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<int> > JetAnalyzer::cutBasedPUIDToken_
private

Definition at line 133 of file JetAnalyzer.h.

JetMETDQMDCSFilter* JetAnalyzer::DCSFilterForDCSMonitoring_
private

Definition at line 583 of file JetAnalyzer.h.

JetMETDQMDCSFilter* JetAnalyzer::DCSFilterForJetMonitoring_
private

Definition at line 582 of file JetAnalyzer.h.

std::string JetAnalyzer::DirName
private

Definition at line 171 of file JetAnalyzer.h.

int JetAnalyzer::eBin_
private

Definition at line 191 of file JetAnalyzer.h.

double JetAnalyzer::eMax_
private

Definition at line 193 of file JetAnalyzer.h.

double JetAnalyzer::eMin_
private

Definition at line 192 of file JetAnalyzer.h.

int JetAnalyzer::etaBin_
private

Definition at line 179 of file JetAnalyzer.h.

double JetAnalyzer::etaMax_
private

Definition at line 181 of file JetAnalyzer.h.

double JetAnalyzer::etaMin_
private

Definition at line 180 of file JetAnalyzer.h.

bool JetAnalyzer::fill_CHS_histos
private

Definition at line 809 of file JetAnalyzer.h.

bool JetAnalyzer::fill_jet_high_level_histo
private

Definition at line 807 of file JetAnalyzer.h.

bool JetAnalyzer::filljetsubstruc_
private

Definition at line 360 of file JetAnalyzer.h.

int JetAnalyzer::fillJIDPassFrac_
private

Definition at line 213 of file JetAnalyzer.h.

std::vector<std::string> JetAnalyzer::folderNames_
private

Definition at line 169 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::gtLabel_
private

Definition at line 150 of file JetAnalyzer.h.

edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> JetAnalyzer::gtToken_
private

Definition at line 121 of file JetAnalyzer.h.

GenericTriggerEventFlag* JetAnalyzer::highPtJetEventFlag_
private

Definition at line 353 of file JetAnalyzer.h.

std::vector<std::string> JetAnalyzer::highPtJetExpr_
private

Definition at line 356 of file JetAnalyzer.h.

HLTConfigProvider JetAnalyzer::hltConfig_
private

Definition at line 346 of file JetAnalyzer.h.

bool JetAnalyzer::hltInitialized_
private

Definition at line 343 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::inputJetIDValueMap
private

Definition at line 144 of file JetAnalyzer.h.

bool JetAnalyzer::isCaloJet_
private

Definition at line 803 of file JetAnalyzer.h.

bool JetAnalyzer::isMiniAODJet_
private

Definition at line 805 of file JetAnalyzer.h.

bool JetAnalyzer::isPFJet_
private

Definition at line 804 of file JetAnalyzer.h.

bool JetAnalyzer::jetCleaningFlag_
private

Definition at line 359 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::jetCorrectorTag_
private

Definition at line 155 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::JetCorrector> JetAnalyzer::jetCorrectorToken_
private

Definition at line 156 of file JetAnalyzer.h.

int JetAnalyzer::jetHiPass_
private

Definition at line 205 of file JetAnalyzer.h.

edm::EDGetTokenT<edm::ValueMap <reco::JetID> > JetAnalyzer::jetID_ValueMapToken_
private

Definition at line 145 of file JetAnalyzer.h.

JetIDSelectionFunctor JetAnalyzer::jetIDFunctor
private

Definition at line 162 of file JetAnalyzer.h.

JetIDSelectionFunctor::Quality_t JetAnalyzer::jetidquality
private

Definition at line 160 of file JetAnalyzer.h.

std::string JetAnalyzer::JetIDQuality_
private

Definition at line 158 of file JetAnalyzer.h.

JetIDSelectionFunctor::Version_t JetAnalyzer::jetidversion
private

Definition at line 161 of file JetAnalyzer.h.

std::string JetAnalyzer::JetIDVersion_
private

Definition at line 159 of file JetAnalyzer.h.

int JetAnalyzer::jetLoPass_
private

Definition at line 204 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::jetME
private

Definition at line 218 of file JetAnalyzer.h.

std::string JetAnalyzer::jetType_
private

Definition at line 117 of file JetAnalyzer.h.

int JetAnalyzer::leadJetFlag_
private

Definition at line 206 of file JetAnalyzer.h.

GenericTriggerEventFlag* JetAnalyzer::lowPtJetEventFlag_
private

Definition at line 354 of file JetAnalyzer.h.

std::vector<std::string> JetAnalyzer::lowPtJetExpr_
private

Definition at line 357 of file JetAnalyzer.h.

int JetAnalyzer::m_bitAlgTechTrig_
private

Definition at line 215 of file JetAnalyzer.h.

std::string JetAnalyzer::m_l1algoname_
private

Definition at line 214 of file JetAnalyzer.h.

std::map< std::string,MonitorElement* > JetAnalyzer::map_of_MEs
private

Definition at line 801 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_highPt_Barrel
private

Definition at line 518 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_highPt_EndCap
private

Definition at line 531 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_highPt_Forward
private

Definition at line 544 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_lowPt_Barrel
private

Definition at line 510 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_lowPt_EndCap
private

Definition at line 523 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_lowPt_Forward
private

Definition at line 536 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_mediumPt_Barrel
private

Definition at line 514 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_mediumPt_EndCap
private

Definition at line 527 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mAxis2_mediumPt_Forward
private

Definition at line 540 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_minMass
private

Definition at line 673 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_minMass_boosted
private

Definition at line 712 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_nSubJets
private

Definition at line 674 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_nSubJets_boosted
private

Definition at line 713 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_topMass
private

Definition at line 672 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCATopTag_topMass_boosted
private

Definition at line 711 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedEmEnergy
private

Definition at line 502 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedEmEnergy_profile
private

Definition at line 562 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedHadronEnergy
private

Definition at line 500 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedHadronEnergy_profile
private

Definition at line 560 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedMuEnergy
private

Definition at line 503 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedMuEnergy_profile
private

Definition at line 563 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedMultiplicity
private

Definition at line 505 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChargedMultiplicity_profile
private

Definition at line 565 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_highPt_Barrel
private

Definition at line 404 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_highPt_EndCap
private

Definition at line 458 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_lowPt_Barrel
private

Definition at line 394 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_lowPt_EndCap
private

Definition at line 448 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_mediumPt_Barrel
private

Definition at line 399 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHEn_mediumPt_EndCap
private

Definition at line 453 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac
private

Definition at line 571 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_highPt_Barrel
private

Definition at line 391 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_highPt_EndCap
private

Definition at line 444 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_lowPt_Barrel
private

Definition at line 385 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_lowPt_EndCap
private

Definition at line 438 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_mediumPt_Barrel
private

Definition at line 388 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_mediumPt_EndCap
private

Definition at line 441 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFrac_profile
private

Definition at line 576 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFracVSeta_highPt
private

Definition at line 434 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFracVSeta_lowPt
private

Definition at line 428 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFracVSeta_mediumPt
private

Definition at line 431 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFracVSpT_Barrel
private

Definition at line 419 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCHFracVSpT_EndCap
private

Definition at line 422 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_highPt_Barrel
private

Definition at line 415 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_highPt_EndCap
private

Definition at line 479 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_lowPt_Barrel
private

Definition at line 409 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_lowPt_EndCap
private

Definition at line 473 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_mediumPt_Barrel
private

Definition at line 412 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mChMultiplicity_mediumPt_EndCap
private

Definition at line 476 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents
private

Definition at line 236 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_Barrel
private

Definition at line 243 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_Barrel_Hi
private

Definition at line 262 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_EndCap
private

Definition at line 249 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_EndCap_Hi
private

Definition at line 267 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_Forward
private

Definition at line 255 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_Forward_Hi
private

Definition at line 272 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_profile
private

Definition at line 339 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mConstituents_uncor
private

Definition at line 230 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_highPt_Barrel
private

Definition at line 324 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_highPt_EndCap
private

Definition at line 325 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_highPt_Forward
private

Definition at line 326 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_lowPt_Barrel
private

Definition at line 318 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_lowPt_EndCap
private

Definition at line 319 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_lowPt_Forward
private

Definition at line 320 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_mediumPt_Barrel
private

Definition at line 321 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_mediumPt_EndCap
private

Definition at line 322 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mCutPUJIDDiscriminant_mediumPt_Forward
private

Definition at line 323 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_100_J_Forward
private

Definition at line 799 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel
private

Definition at line 790 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap
private

Definition at line 795 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_290_J_Barrel
private

Definition at line 791 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_290_J_EndCap
private

Definition at line 796 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel
private

Definition at line 787 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap
private

Definition at line 792 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward
private

Definition at line 797 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward
private

Definition at line 798 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel
private

Definition at line 788 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap
private

Definition at line 793 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel
private

Definition at line 789 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap
private

Definition at line 794 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDijetAsymmetry
private

Definition at line 331 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDijetBalance
private

Definition at line 330 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDPhi
private

Definition at line 276 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mDPhiZJet
private

Definition at line 751 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracBarrel_BXm1Empty
private

Definition at line 607 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracBarrel_BXm1Filled
private

Definition at line 647 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracEndCapMinus_BXm1Empty
private

Definition at line 611 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracEndCapMinus_BXm1Filled
private

Definition at line 651 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracEndCapPlus_BXm1Empty
private

Definition at line 615 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meCHFracEndCapPlus_BXm1Filled
private

Definition at line 655 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEEffChargedFraction
private

Definition at line 555 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEEffNeutralFraction
private

Definition at line 554 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meEta_BXm1Empty
private

Definition at line 623 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meEta_BXm1Filled
private

Definition at line 663 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEFrac
private

Definition at line 238 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEFrac_Barrel
private

Definition at line 245 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEFrac_EndCap
private

Definition at line 251 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEFrac_Forward
private

Definition at line 257 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEFrac_profile
private

Definition at line 341 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFEMFracMinus_BXm1Empty
private

Definition at line 618 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFEMFracMinus_BXm1Filled
private

Definition at line 658 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFEMFracPlus_BXm1Empty
private

Definition at line 621 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFEMFracPlus_BXm1Filled
private

Definition at line 661 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFHFracMinus_BXm1Empty
private

Definition at line 617 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFHFracMinus_BXm1Filled
private

Definition at line 657 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFHFracPlus_BXm1Empty
private

Definition at line 620 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meHFHFracPlus_BXm1Filled
private

Definition at line 660 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_highPt_Barrel
private

Definition at line 407 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_highPt_EndCap
private

Definition at line 461 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_lowPt_Barrel
private

Definition at line 397 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_lowPt_EndCap
private

Definition at line 451 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_mediumPt_Barrel
private

Definition at line 402 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mElEn_mediumPt_EndCap
private

Definition at line 456 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEmEnergyInEB
private

Definition at line 375 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEmEnergyInEE
private

Definition at line 376 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEmEnergyInHF
private

Definition at line 377 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEMF
private

Definition at line 382 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEMF_CaloJet
private

Definition at line 745 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracBarrel_BXm1Empty
private

Definition at line 606 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracBarrel_BXm1Filled
private

Definition at line 646 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracEndCapMinus_BXm1Empty
private

Definition at line 610 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracEndCapMinus_BXm1Filled
private

Definition at line 650 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracEndCapPlus_BXm1Empty
private

Definition at line 614 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::meNHFracEndCapPlus_BXm1Filled
private

Definition at line 654 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracBarrel_BXm1Empty
private

Definition at line 605 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracBarrel_BXm1Filled
private

Definition at line 645 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracEndCapMinus_BXm1Empty
private

Definition at line 609 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracEndCapMinus_BXm1Filled
private

Definition at line 649 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracEndCapPlus_BXm1Empty
private

Definition at line 613 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePhFracEndCapPlus_BXm1Filled
private

Definition at line 653 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtBarrel_BXm1Empty
private

Definition at line 608 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtBarrel_BXm1Filled
private

Definition at line 648 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtEndCapMinus_BXm1Empty
private

Definition at line 612 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtEndCapMinus_BXm1Filled
private

Definition at line 652 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtEndCapPlus_BXm1Empty
private

Definition at line 616 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtEndCapPlus_BXm1Filled
private

Definition at line 656 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtForwardMinus_BXm1Empty
private

Definition at line 619 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtForwardMinus_BXm1Filled
private

Definition at line 659 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtForwardPlus_BXm1Empty
private

Definition at line 622 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mePtForwardPlus_BXm1Filled
private

Definition at line 662 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEResChargedFraction
private

Definition at line 557 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEResNeutralFraction
private

Definition at line 556 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEta
private

Definition at line 225 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEta_Hi
private

Definition at line 287 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEta_profile
private

Definition at line 337 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEta_uncor
private

Definition at line 228 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mEtaFirst
private

Definition at line 279 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mfHPD
private

Definition at line 379 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mFilteredMass
private

Definition at line 669 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mFilteredMass_boosted
private

Definition at line 708 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mfRBX
private

Definition at line 380 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHadEnergyInHB
private

Definition at line 372 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHadEnergyInHE
private

Definition at line 374 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHadEnergyInHF
private

Definition at line 373 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHadEnergyInHO
private

Definition at line 371 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEEn_highPt_Forward
private

Definition at line 494 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEEn_lowPt_Forward
private

Definition at line 490 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEEn_mediumPt_Forward
private

Definition at line 492 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEFrac_highPt_Forward
private

Definition at line 488 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEFrac_lowPt_Forward
private

Definition at line 484 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEFrac_mediumPt_Forward
private

Definition at line 486 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEFracVSpT_Forward
private

Definition at line 426 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEMFrac
private

Definition at line 574 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFEMFrac_profile
private

Definition at line 579 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHEn_highPt_Forward
private

Definition at line 495 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHEn_lowPt_Forward
private

Definition at line 491 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHEn_mediumPt_Forward
private

Definition at line 493 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFrac
private

Definition at line 575 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFrac_highPt_Forward
private

Definition at line 489 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFrac_lowPt_Forward
private

Definition at line 485 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFrac_mediumPt_Forward
private

Definition at line 487 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFrac_profile
private

Definition at line 580 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFHFracVSpT_Forward
private

Definition at line 425 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac
private

Definition at line 237 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_Barrel
private

Definition at line 244 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_Barrel_Hi
private

Definition at line 263 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_EndCap
private

Definition at line 250 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_EndCap_Hi
private

Definition at line 268 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_Forward
private

Definition at line 256 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_Forward_Hi
private

Definition at line 273 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mHFrac_profile
private

Definition at line 340 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::mInputCollection_
private

Definition at line 112 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_highZPt_J_Barrel
private

Definition at line 771 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_highZPt_J_EndCap
private

Definition at line 774 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_highZPt_J_Forward
private

Definition at line 777 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_J_Barrel
private

Definition at line 763 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_J_EndCap
private

Definition at line 764 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_J_Forward
private

Definition at line 765 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_lowZPt_J_Barrel
private

Definition at line 769 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_lowZPt_J_EndCap
private

Definition at line 772 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_lowZPt_J_Forward
private

Definition at line 775 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_mediumZPt_J_Barrel
private

Definition at line 770 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_mediumZPt_J_EndCap
private

Definition at line 773 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJ1Pt_over_ZPt_mediumZPt_J_Forward
private

Definition at line 776 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetEnergyCorr
private

Definition at line 232 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetEnergyCorrVSEta
private

Definition at line 233 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetEnergyCorrVSPt
private

Definition at line 234 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_highZPt_J_Barrel
private

Definition at line 756 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_highZPt_J_EndCap
private

Definition at line 759 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_highZPt_J_Forward
private

Definition at line 762 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_lowZPt_J_Barrel
private

Definition at line 754 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_lowZPt_J_EndCap
private

Definition at line 757 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_lowZPt_J_Forward
private

Definition at line 760 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_mediumZPt_J_Barrel
private

Definition at line 755 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_mediumZPt_J_EndCap
private

Definition at line 758 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mJetZBalance_mediumZPt_J_Forward
private

Definition at line 761 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseCutPUJIDPassFractionVSeta
private

Definition at line 312 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseCutPUJIDPassFractionVSpt
private

Definition at line 313 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseJIDPassFractionVSeta
private

Definition at line 291 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseJIDPassFractionVSpt
private

Definition at line 292 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseJIDPassFractionVSptNoHF
private

Definition at line 293 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseMVAPUJIDPassFractionVSeta
private

Definition at line 296 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mLooseMVAPUJIDPassFractionVSpt
private

Definition at line 297 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_Barrel
private

Definition at line 746 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_EndCap
private

Definition at line 747 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_Forward
private

Definition at line 748 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_highPt_Barrel
private

Definition at line 469 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_highPt_EndCap
private

Definition at line 470 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_highPt_Forward
private

Definition at line 471 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_lowPt_Barrel
private

Definition at line 463 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_lowPt_EndCap
private

Definition at line 464 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_lowPt_Forward
private

Definition at line 465 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_mediumPt_Barrel
private

Definition at line 466 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_mediumPt_EndCap
private

Definition at line 467 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMass_mediumPt_Forward
private

Definition at line 468 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMaxEInEmTowers
private

Definition at line 369 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMaxEInHadTowers
private

Definition at line 370 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMediumCutPUJIDPassFractionVSeta
private

Definition at line 314 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMediumCutPUJIDPassFractionVSpt
private

Definition at line 315 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMediumMVAPUJIDPassFractionVSeta
private

Definition at line 298 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMediumMVAPUJIDPassFractionVSpt
private

Definition at line 299 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_highZPt_J_Barrel
private

Definition at line 780 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_highZPt_J_EndCap
private

Definition at line 783 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_highZPt_J_Forward
private

Definition at line 786 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_J_Barrel
private

Definition at line 766 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_J_EndCap
private

Definition at line 767 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_J_Forward
private

Definition at line 768 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_lowZPt_J_Barrel
private

Definition at line 778 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_lowZPt_J_EndCap
private

Definition at line 781 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_lowZPt_J_Forward
private

Definition at line 784 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_mediumZPt_J_Barrel
private

Definition at line 779 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_mediumZPt_J_EndCap
private

Definition at line 782 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMPF_mediumZPt_J_Forward
private

Definition at line 785 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_highPt_Barrel
private

Definition at line 408 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_highPt_EndCap
private

Definition at line 462 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_lowPt_Barrel
private

Definition at line 398 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_lowPt_EndCap
private

Definition at line 452 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_mediumPt_Barrel
private

Definition at line 403 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuEn_mediumPt_EndCap
private

Definition at line 457 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_highPt_Barrel
private

Definition at line 520 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_highPt_EndCap
private

Definition at line 533 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_highPt_Forward
private

Definition at line 546 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_lowPt_Barrel
private

Definition at line 512 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_lowPt_EndCap
private

Definition at line 525 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_lowPt_Forward
private

Definition at line 538 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_mediumPt_Barrel
private

Definition at line 516 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_mediumPt_EndCap
private

Definition at line 529 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMultiplicityQG_mediumPt_Forward
private

Definition at line 542 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_highPt_Barrel
private

Definition at line 417 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_highPt_EndCap
private

Definition at line 481 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_lowPt_Barrel
private

Definition at line 411 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_lowPt_EndCap
private

Definition at line 475 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_mediumPt_Barrel
private

Definition at line 414 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuMultiplicity_mediumPt_EndCap
private

Definition at line 478 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuonMultiplicity
private

Definition at line 507 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMuonMultiplicity_profile
private

Definition at line 567 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_highPt_Barrel
private

Definition at line 308 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_highPt_EndCap
private

Definition at line 309 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_highPt_Forward
private

Definition at line 310 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_lowPt_Barrel
private

Definition at line 302 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_lowPt_EndCap
private

Definition at line 303 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_lowPt_Forward
private

Definition at line 304 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_mediumPt_Barrel
private

Definition at line 305 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_mediumPt_EndCap
private

Definition at line 306 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mMVAPUJIDDiscriminant_mediumPt_Forward
private

Definition at line 307 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mN90Hits
private

Definition at line 378 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_highPt_Barrel
private

Definition at line 416 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_highPt_EndCap
private

Definition at line 480 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_highPt_Forward
private

Definition at line 498 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_lowPt_Barrel
private

Definition at line 410 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_lowPt_EndCap
private

Definition at line 474 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_lowPt_Forward
private

Definition at line 496 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_mediumPt_Barrel
private

Definition at line 413 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_mediumPt_EndCap
private

Definition at line 477 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutMultiplicity_mediumPt_Forward
private

Definition at line 497 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralEmEnergy
private

Definition at line 504 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralEmEnergy_profile
private

Definition at line 564 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralFraction
private

Definition at line 551 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralFraction2
private

Definition at line 552 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralHadronEnergy
private

Definition at line 501 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralHadronEnergy_profile
private

Definition at line 561 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralMultiplicity
private

Definition at line 506 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNeutralMultiplicity_profile
private

Definition at line 566 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_highPt_Barrel
private

Definition at line 405 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_highPt_EndCap
private

Definition at line 459 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_lowPt_Barrel
private

Definition at line 395 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_lowPt_EndCap
private

Definition at line 449 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_mediumPt_Barrel
private

Definition at line 400 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHEn_mediumPt_EndCap
private

Definition at line 454 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac
private

Definition at line 572 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_highPt_Barrel
private

Definition at line 392 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_highPt_EndCap
private

Definition at line 445 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_lowPt_Barrel
private

Definition at line 386 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_lowPt_EndCap
private

Definition at line 439 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_mediumPt_Barrel
private

Definition at line 389 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_mediumPt_EndCap
private

Definition at line 442 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFrac_profile
private

Definition at line 577 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFracVSeta_highPt
private

Definition at line 435 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFracVSeta_lowPt
private

Definition at line 429 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFracVSeta_mediumPt
private

Definition at line 432 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFracVSpT_Barrel
private

Definition at line 420 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNHFracVSpT_EndCap
private

Definition at line 423 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNJets
private

Definition at line 275 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mNJets_profile
private

Definition at line 335 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mnSubJetsCMSTopTag
private

Definition at line 676 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mnSubJetsCMSTopTag_boosted
private

Definition at line 715 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mnSubJetsSoftDrop
private

Definition at line 694 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mnSubJetsSoftDrop_boosted
private

Definition at line 733 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_highPt_Barrel
private

Definition at line 406 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_highPt_EndCap
private

Definition at line 460 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_lowPt_Barrel
private

Definition at line 396 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_lowPt_EndCap
private

Definition at line 450 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_mediumPt_Barrel
private

Definition at line 401 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhEn_mediumPt_EndCap
private

Definition at line 455 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac
private

Definition at line 573 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_highPt_Barrel
private

Definition at line 393 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_highPt_EndCap
private

Definition at line 446 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_lowPt_Barrel
private

Definition at line 387 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_lowPt_EndCap
private

Definition at line 440 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_mediumPt_Barrel
private

Definition at line 390 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_mediumPt_EndCap
private

Definition at line 443 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFrac_profile
private

Definition at line 578 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFracVSeta_highPt
private

Definition at line 436 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFracVSeta_lowPt
private

Definition at line 430 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFracVSeta_mediumPt
private

Definition at line 433 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFracVSpT_Barrel
private

Definition at line 421 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhFracVSpT_EndCap
private

Definition at line 424 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi
private

Definition at line 226 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Barrel
private

Definition at line 242 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Barrel_Hi
private

Definition at line 261 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_EndCap
private

Definition at line 248 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_EndCap_Hi
private

Definition at line 266 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Forward
private

Definition at line 254 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Forward_Hi
private

Definition at line 271 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Hi
private

Definition at line 288 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_Lo
private

Definition at line 284 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_profile
private

Definition at line 338 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhi_uncor
private

Definition at line 229 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhiFirst
private

Definition at line 280 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPhiVSEta
private

Definition at line 239 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPrunedMass
private

Definition at line 667 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPrunedMass_boosted
private

Definition at line 706 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt
private

Definition at line 221 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_1
private

Definition at line 222 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_2
private

Definition at line 223 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_3
private

Definition at line 224 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Barrel
private

Definition at line 241 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Barrel_Hi
private

Definition at line 260 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_CaloJet
private

Definition at line 744 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_EndCap
private

Definition at line 247 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_EndCap_Hi
private

Definition at line 265 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Forward
private

Definition at line 253 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Forward_Hi
private

Definition at line 270 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Hi
private

Definition at line 289 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_Lo
private

Definition at line 285 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_profile
private

Definition at line 336 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPt_uncor
private

Definition at line 227 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_highPt_Barrel
private

Definition at line 519 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_highPt_EndCap
private

Definition at line 532 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_highPt_Forward
private

Definition at line 545 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_lowPt_Barrel
private

Definition at line 511 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_lowPt_EndCap
private

Definition at line 524 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_lowPt_Forward
private

Definition at line 537 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_mediumPt_Barrel
private

Definition at line 515 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_mediumPt_EndCap
private

Definition at line 528 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mpTD_mediumPt_Forward
private

Definition at line 541 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mPtFirst
private

Definition at line 281 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_highPt_Barrel
private

Definition at line 521 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_highPt_EndCap
private

Definition at line 534 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_highPt_Forward
private

Definition at line 547 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_lowPt_Barrel
private

Definition at line 513 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_lowPt_EndCap
private

Definition at line 526 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_lowPt_Forward
private

Definition at line 539 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_mediumPt_Barrel
private

Definition at line 517 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_mediumPt_EndCap
private

Definition at line 530 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mqgLikelihood_mediumPt_Forward
private

Definition at line 543 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mresEMF
private

Definition at line 381 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSoftDropMass
private

Definition at line 666 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSoftDropMass_boosted
private

Definition at line 705 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_eta
private

Definition at line 678 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_eta_boosted
private

Definition at line 717 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_mass
private

Definition at line 680 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_mass_boosted
private

Definition at line 719 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_phi
private

Definition at line 679 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_phi_boosted
private

Definition at line 718 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_pt
private

Definition at line 677 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_CMSTopTag_pt_boosted
private

Definition at line 716 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_eta
private

Definition at line 696 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_eta_boosted
private

Definition at line 735 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_mass
private

Definition at line 698 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_mass_boosted
private

Definition at line 737 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_phi
private

Definition at line 697 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_phi_boosted
private

Definition at line 736 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_pt
private

Definition at line 695 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet1_SoftDrop_pt_boosted
private

Definition at line 734 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_eta
private

Definition at line 682 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_eta_boosted
private

Definition at line 721 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_mass
private

Definition at line 684 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_mass_boosted
private

Definition at line 723 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_phi
private

Definition at line 683 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_phi_boosted
private

Definition at line 722 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_pt
private

Definition at line 681 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_CMSTopTag_pt_boosted
private

Definition at line 720 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_eta
private

Definition at line 700 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_eta_boosted
private

Definition at line 739 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_mass
private

Definition at line 702 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_mass_boosted
private

Definition at line 741 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_phi
private

Definition at line 701 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_phi_boosted
private

Definition at line 740 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_pt
private

Definition at line 699 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet2_SoftDrop_pt_boosted
private

Definition at line 738 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_eta
private

Definition at line 686 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_eta_boosted
private

Definition at line 725 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_mass
private

Definition at line 688 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_mass_boosted
private

Definition at line 727 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_phi
private

Definition at line 687 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_phi_boosted
private

Definition at line 726 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_pt
private

Definition at line 685 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet3_CMSTopTag_pt_boosted
private

Definition at line 724 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_eta
private

Definition at line 690 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_eta_boosted
private

Definition at line 729 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_mass
private

Definition at line 692 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_mass_boosted
private

Definition at line 731 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_phi
private

Definition at line 691 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_phi_boosted
private

Definition at line 730 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_pt
private

Definition at line 689 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mSubJet4_CMSTopTag_pt_boosted
private

Definition at line 728 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mtau2_over_tau1
private

Definition at line 670 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mtau2_over_tau1_boosted
private

Definition at line 709 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mtau3_over_tau2
private

Definition at line 671 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mtau3_over_tau2_boosted
private

Definition at line 710 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTightCutPUJIDPassFractionVSeta
private

Definition at line 316 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTightCutPUJIDPassFractionVSpt
private

Definition at line 317 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTightMVAPUJIDPassFractionVSeta
private

Definition at line 300 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTightMVAPUJIDPassFractionVSpt
private

Definition at line 301 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTrimmedMass
private

Definition at line 668 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mTrimmedMass_boosted
private

Definition at line 707 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::MuonCollection> JetAnalyzer::MuonsToken_
private

Definition at line 129 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<float> > JetAnalyzer::mvaFullPUDiscriminantToken_
private

Definition at line 131 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<int> > JetAnalyzer::mvaPUIDToken_
private

Definition at line 134 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mZJetAsymmetry
private

Definition at line 753 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::mZMass
private

Definition at line 752 of file JetAnalyzer.h.

int JetAnalyzer::nbinsPV_
private

Definition at line 199 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::nEEff
private

Definition at line 558 of file JetAnalyzer.h.

double JetAnalyzer::nPVhigh_
private

Definition at line 201 of file JetAnalyzer.h.

double JetAnalyzer::nPVlow_
private

Definition at line 200 of file JetAnalyzer.h.

edm::ParameterSet JetAnalyzer::parameters_
private
edm::EDGetTokenT<pat::JetCollection> JetAnalyzer::patJetsToken_
private

Definition at line 130 of file JetAnalyzer.h.

edm::EDGetTokenT<pat::METCollection> JetAnalyzer::patMetToken_
private

Definition at line 127 of file JetAnalyzer.h.

int JetAnalyzer::pBin_
private

Definition at line 195 of file JetAnalyzer.h.

PFJetIDSelectionFunctor JetAnalyzer::pfjetIDFunctor
private

Definition at line 167 of file JetAnalyzer.h.

PFJetIDSelectionFunctor::Quality_t JetAnalyzer::pfjetidquality
private

Definition at line 164 of file JetAnalyzer.h.

PFJetIDSelectionFunctor::Version_t JetAnalyzer::pfjetidversion
private

Definition at line 165 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::PFJetCollection> JetAnalyzer::pfJetsToken_
private

Definition at line 123 of file JetAnalyzer.h.

edm::EDGetTokenT<reco::PFMETCollection> JetAnalyzer::pfMetToken_
private

Definition at line 125 of file JetAnalyzer.h.

int JetAnalyzer::phiBin_
private

Definition at line 183 of file JetAnalyzer.h.

double JetAnalyzer::phiMax_
private

Definition at line 185 of file JetAnalyzer.h.

double JetAnalyzer::phiMin_
private

Definition at line 184 of file JetAnalyzer.h.

double JetAnalyzer::pMax_
private

Definition at line 197 of file JetAnalyzer.h.

double JetAnalyzer::pMin_
private

Definition at line 196 of file JetAnalyzer.h.

std::string JetAnalyzer::processname_
private

Definition at line 347 of file JetAnalyzer.h.

double JetAnalyzer::pt_min_boosted_
private

Definition at line 361 of file JetAnalyzer.h.

int JetAnalyzer::ptBin_
private

Definition at line 187 of file JetAnalyzer.h.

double JetAnalyzer::ptMax_
private

Definition at line 189 of file JetAnalyzer.h.

double JetAnalyzer::ptMin_
private

Definition at line 188 of file JetAnalyzer.h.

double JetAnalyzer::ptThreshold_
private

Definition at line 207 of file JetAnalyzer.h.

double JetAnalyzer::ptThresholdUnc_
private

Definition at line 208 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<float> > JetAnalyzer::qgaxis2Token_
private

Definition at line 139 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<float> > JetAnalyzer::qgLikelihoodToken_
private

Definition at line 137 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<int> > JetAnalyzer::qgMultiplicityToken_
private

Definition at line 136 of file JetAnalyzer.h.

edm::EDGetTokenT< edm::ValueMap<float> > JetAnalyzer::qgptDToken_
private

Definition at line 138 of file JetAnalyzer.h.

bool JetAnalyzer::runcosmics_
private

Definition at line 363 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::theTriggerResultsLabel_
private

Definition at line 113 of file JetAnalyzer.h.

edm::EDGetTokenT<edm::TriggerResults> JetAnalyzer::triggerResultsToken_
private

Definition at line 119 of file JetAnalyzer.h.

int JetAnalyzer::verbose_
private

Definition at line 177 of file JetAnalyzer.h.

edm::InputTag JetAnalyzer::vertexLabel_
private

Definition at line 149 of file JetAnalyzer.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > JetAnalyzer::vertexToken_
private

Definition at line 120 of file JetAnalyzer.h.

MonitorElement* JetAnalyzer::verticesME
private

Definition at line 351 of file JetAnalyzer.h.