1 #ifndef TOPDILEPTONHLTOFFLINEDQM 2 #define TOPDILEPTONHLTOFFLINEDQM 86 void fill(
const std::string& histName,
double xValue,
double yValue)
const {
if(
booked(histName))
hists_.find(histName)->second->Fill(xValue, yValue); };
88 void fill(
const std::string& histName,
double xValue,
double yValue,
double zValue)
const {
if(
booked(histName))
hists_.find(histName)->second->Fill(xValue, yValue, zValue); };
99 std::vector< edm::EDGetTokenT< edm::View<reco::MET> > >
mets_;
130 std::unique_ptr<StringCutObjectSelector<reco::GsfElectron>>
elecIso_;
132 std::unique_ptr<StringCutObjectSelector<reco::GsfElectron>>
elecSelect_;
135 std::unique_ptr<StringCutObjectSelector<reco::Muon>>
muonIso_;
154 std::map<std::string,MonitorElement*>
hists_;
172 hists_[
hist]->setBinLabel( 6 ,
"pt_{L2L3}(jet1)" , 1);
173 hists_[
hist]->setBinLabel( 7 ,
"pt_{L2L3}(jet2)" , 1);
174 hists_[
hist]->setBinLabel( 8 ,
"MET_{Calo}" , 1);
175 hists_[
hist]->setAxisTitle(
"logged evts" , 2);
177 if(hist==
"diMuonLogger_"){
178 hists_[
hist]->setBinLabel( 4 ,
"pt(muon)" , 1);
179 hists_[
hist]->setBinLabel( 5 ,
"pt(muon)" , 1);
181 if(hist==
"diElecLogger_"){
182 hists_[
hist]->setBinLabel( 4 ,
"pt(elec)" , 1);
183 hists_[
hist]->setBinLabel( 5 ,
"pt(elec)" , 1);
185 if(hist==
"elecMuLogger_"){
186 hists_[
hist]->setBinLabel( 4 ,
"pt(elec)" , 1);
187 hists_[
hist]->setBinLabel( 5 ,
"pt(muon)" , 1);
194 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
202 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
204 fill(channel+
"Mon_", idx+0.5 );
295 std::map<std::string, std::pair<edm::ParameterSet, std::unique_ptr<HLTOfflineDQMTopDiLepton::MonitorDiLepton>> >
selection_;
297 std::map<std::string, std::unique_ptr<SelectionStepHLTBase>>
selectmap_;
bool hasRawTriggerSummary
std::string monitorPath(const std::string &label) const
double lowerEdge_
mass window upper and lower edge
~MonitorDiLepton()=default
default destructor
edm::EDGetTokenT< reco::BeamSpot > beamspot_
beamspot
std::unique_ptr< StringCutObjectSelector< reco::GsfElectron > > elecSelect_
extra selection on electrons
std::string selectionPath(const std::string &label) const
std::unique_ptr< StringCutObjectSelector< reco::JetID > > jetIDSelect_
extra jetID selection on calo jets
std::string processName_
hlt objects
def setup(process, global_tag, zero_tesla=False)
int elecMuLogged_
number of logged interesting events
std::unique_ptr< StringCutObjectSelector< reco::BeamSpot > > beamspotSelect_
string cut selector
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_
input sources for monitoring
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
trigger::Vids electronIds_
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
std::vector< std::string > triggerPaths_
trigger paths
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
std::vector< std::string > diMuonPaths_
trigger paths for di muon channel
std::string jetCorrector_
jetCorrector
void triggerBinLabels(const std::string &channel, const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
void loggerBinLabels(const std::string &hist)
set labels for event logging histograms
bool booked(const std::string &histName) const
check if histogram was booked
std::unique_ptr< StringCutObjectSelector< reco::Muon > > muonSelect_
extra selection on muons
std::vector< std::string > diElecPaths_
trigger paths for di electron channel
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerSummaryTokenAOD
std::unique_ptr< StringCutObjectSelector< reco::GsfElectron > > elecIso_
extra isolation criterion on electron
trigger::VRmuon muonRefs_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::map< std::string, MonitorElement * > hists_
histogram container
HLTConfigProvider hltConfig_
MonitorDiLepton(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
std::unique_ptr< StringCutObjectSelector< reco::Vertex > > vertexSelect_
string cut selector
std::map< std::string, std::pair< edm::ParameterSet, std::unique_ptr< HLTOfflineDQMTopDiLepton::MonitorDiLepton > > > selection_
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
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< std::string > selectionOrder_
trigger::VRelectron electronRefs_
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
void book(DQMStore::IBooker &store_)
book histograms in subdirectory directory
std::string objectType(const std::string &label)
std::vector< reco::RecoChargedCandidateRef > VRmuon
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
define MonitorDiLepton to be used
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerSummaryTokenRAW
std::vector< reco::ElectronRef > VRelectron
std::map< std::string, std::unique_ptr< SelectionStepHLTBase > > selectmap_
std::unique_ptr< StringCutObjectSelector< reco::Muon > > muonIso_
extra isolation criterion on muon
edm::EDGetTokenT< edm::View< reco::Muon > > muons_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
primary vertex
static std::string const triggerPaths
std::vector< std::string > elecMuPaths_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::string label_
instance label
reco::LeafCandidate::LorentzVector LorentzVector
void fill(const std::string &histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
void fill(const std::string &histName, double value) const
fill histogram if it had been booked before