1 #ifndef TOPDILEPTONHLTOFFLINEDQM
2 #define TOPDILEPTONHLTOFFLINEDQM
44 namespace HLTOfflineDQMTopDiLepton {
87 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); };
98 std::vector< edm::EDGetTokenT< edm::View<reco::MET> > >
mets_;
149 std::map<std::string,MonitorElement*>
hists_;
163 hists_[hist.c_str()]->getTH1()->SetOption(
"TEXT");
164 hists_[hist.c_str()]->setBinLabel( 1 ,
"Run" , 1);
165 hists_[hist.c_str()]->setBinLabel( 2 ,
"Block" , 1);
166 hists_[hist.c_str()]->setBinLabel( 3 ,
"Event" , 1);
167 hists_[hist.c_str()]->setBinLabel( 6 ,
"pt_{L2L3}(jet1)" , 1);
168 hists_[hist.c_str()]->setBinLabel( 7 ,
"pt_{L2L3}(jet2)" , 1);
169 hists_[hist.c_str()]->setBinLabel( 8 ,
"MET_{Calo}" , 1);
170 hists_[hist.c_str()]->setAxisTitle(
"logged evts" , 2);
172 if(hist==
"diMuonLogger_"){
173 hists_[hist.c_str()]->setBinLabel( 4 ,
"pt(muon)" , 1);
174 hists_[hist.c_str()]->setBinLabel( 5 ,
"pt(muon)" , 1);
176 if(hist==
"diElecLogger_"){
177 hists_[hist.c_str()]->setBinLabel( 4 ,
"pt(elec)" , 1);
178 hists_[hist.c_str()]->setBinLabel( 5 ,
"pt(elec)" , 1);
180 if(hist==
"elecMuLogger_"){
181 hists_[hist.c_str()]->setBinLabel( 4 ,
"pt(elec)" , 1);
182 hists_[hist.c_str()]->setBinLabel( 5 ,
"pt(muon)" , 1);
189 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
197 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
199 fill((channel+
"Mon_").c_str(), idx+0.5 );
295 std::map<std::string, std::pair<edm::ParameterSet, HLTOfflineDQMTopDiLepton::MonitorDiLepton*> >
selection_;
TopDiLeptonHLTOfflineDQM(const edm::ParameterSet &cfg)
default constructor
std::string monitorPath(const std::string &label) const
double lowerEdge_
mass window upper and lower edge
StringCutObjectSelector< reco::Muon > * muonSelect_
extra selection on muons
edm::EDGetTokenT< reco::BeamSpot > beamspot_
beamspot
StringCutObjectSelector< reco::GsfElectron > * elecSelect_
extra selection on electrons
std::string selectionPath(const std::string &label) const
DecayChannel
different decay channels
std::string processName_
hlt objects
std::string selectionStep(const std::string &label)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
int elecMuLogged_
number of logged interesting events
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_
input sources for monitoring
bool booked(const std::string histName) const
check if histogram was booked
StringCutObjectSelector< reco::GsfElectron > * elecIso_
extra isolation criterion on electron
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
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::map< std::string, SelectionStepHLTBase * > selectmap_
std::vector< std::string > diMuonPaths_
trigger paths for di muon channel
U second(std::pair< T, U > const &p)
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
std::string jetCorrector_
jetCorrector
reco::LeafCandidate::LorentzVector LorentzVector
StringCutObjectSelector< reco::BeamSpot > * beamspotSelect_
string cut selector
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
void loggerBinLabels(std::string hist)
set labels for event logging histograms
std::vector< std::string > diElecPaths_
trigger paths for di electron channel
virtual void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c)
do this during the event loop
trigger::VRmuon muonRefs_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsTag_
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::map< std::string, MonitorElement * > hists_
histogram container
HLTConfigProvider hltConfig_
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
MonitorDiLepton(const char *label, const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default contructor
void triggerBinLabels(std::string channel, const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
std::map< std::string, std::pair< edm::ParameterSet, HLTOfflineDQMTopDiLepton::MonitorDiLepton * > > selection_
~MonitorDiLepton()
default destructor
~TopDiLeptonHLTOfflineDQM()
default destructor
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
std::vector< std::string > selectionOrder_
trigger::VRelectron electronRefs_
void book(DQMStore::IBooker &store_)
book histograms in subdirectory directory
std::string objectType(const std::string &label)
std::vector< reco::RecoChargedCandidateRef > VRmuon
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
define MonitorDiLepton to be used
std::vector< reco::ElectronRef > VRelectron
edm::EDGetTokenT< edm::View< reco::Muon > > muons_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertex_
primary vertex
static std::string const triggerPaths
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::vector< std::string > elecMuPaths_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::string label_
instance label
StringCutObjectSelector< reco::Muon > * muonIso_
extra isolation criterion on muon
StringCutObjectSelector< reco::JetID > * jetIDSelect_
extra jetID selection on calo jets
StringCutObjectSelector< reco::Vertex > * vertexSelect_
string cut selector