1 #ifndef TOPSINGLELEPTONHLTOFFLINEDQM 2 #define TOPSINGLELEPTONHLTOFFLINEDQM 80 void fill(
const std::string histName,
double xValue,
double yValue,
double zValue)
const {
if(
booked(histName.c_str()))
hists_.find(histName.c_str())->
second->Fill(xValue, yValue, zValue); };
87 std::vector< edm::EDGetTokenT< edm::View<reco::MET> > >
mets_;
156 std::map<std::string,MonitorElement*>
hists_;
171 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
179 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
181 fill((channel+
"Mon_").c_str(), idx+0.5 );
236 if( vertexSelect_ )
delete vertexSelect_;
237 if( beamspotSelect_ )
delete beamspotSelect_;
280 std::map<std::string, std::pair<edm::ParameterSet, HLTOfflineDQMTopSingleLepton::MonitorSingleLepton*> >
selection_;
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerSummaryTokenAOD
define MonitorSingleLepton to be used
bool hasRawTriggerSummary
HLTConfigProvider hltConfig_
StringCutObjectSelector< reco::JetID > * jetIDSelect_
extra jetID selection on calo jets
std::map< std::string, SelectionStepHLTBase * > selectmap_
StringCutObjectSelector< reco::GsfElectron > * elecSelect_
extra selection on electrons
std::string monitorPath(const std::string &label) const
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
def analyze(function, filename, filter=None)
int logged_
number of logged interesting events
std::string jetCorrector_
jetCorrector
StringCutObjectSelector< reco::Vertex > * pvSelect_
extra selection on primary vertices; meant to investigate the pile-up effect
def setup(process, global_tag, zero_tesla=False)
std::map< std::string, MonitorElement * > hists_
histogram container
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
trigger::VRelectron electronRefs_
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_
input sources for monitoring
~TopSingleLeptonHLTOfflineDQM()
default destructor
double lowerEdge_
mass window upper and lower edge
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
void book(DQMStore::IBooker &store_)
book histograms in subdirectory directory
std::vector< std::string > selectionOrder_
~MonitorSingleLepton()
default destructor
void bookHistograms(fwlite::EventContainer &eventCont)
MonitorSingleLepton(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
U second(std::pair< T, U > const &p)
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
primary vertex
void fill(const edm::Event &event, const edm::EventSetup &setup, const HLTConfigProvider &hltConfig, const std::vector< std::string > triggerPaths)
fill monitor histograms with electronId and jetCorrections
StringCutObjectSelector< reco::BeamSpot > * beamspotSelect_
string cut selector
edm::EDGetTokenT< edm::View< reco::Muon > > muons_
std::map< std::string, std::pair< edm::ParameterSet, HLTOfflineDQMTopSingleLepton::MonitorSingleLepton * > > selection_
std::vector< std::string > triggerPaths_
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
bool booked(const std::string histName) const
check if histogram was booked
std::string label_
instance label
void triggerBinLabels(std::string channel, const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
trigger::VRpfjet pfjetRefs_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerSummaryTokenRAW
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
std::vector< std::string > triggerPaths_
trigger paths
StringCutObjectSelector< reco::Muon > * muonIso_
extra isolation criterion on muon
StringCutObjectSelector< reco::Vertex > * vertexSelect_
string cut selector
StringCutObjectSelector< reco::GsfElectron > * elecIso_
extra isolation criterion on electron
std::string processName_
hlt objects
edm::EDGetTokenT< reco::BeamSpot > beamspot_
beamspot
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< reco::PFJetRef > VRpfjet
double btagEffWP_
btag working points
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
std::string selectionPath(const std::string &label) const
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::vector< reco::RecoChargedCandidateRef > VRmuon
std::string objectType(const std::string &label)
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
trigger::VRmuon muonRefs_
std::vector< reco::ElectronRef > VRelectron
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
StringCutObjectSelector< reco::Muon > * muonSelect_
extra selection on muons
static std::string const triggerPaths
trigger::Vids electronIds_