1 #ifndef TOPSINGLELEPTONDQM
2 #define TOPSINGLELEPTONDQM
38 namespace TopHLTSingleLepton {
54 void fill(
const edm::Event&
event,
const edm::EventSetup&
setup,
edm::Handle<edm::TriggerResults> triggerTable,
edm::Handle<
edm::View<reco::Vertex> > pvs,
edm::Handle<
edm::View<reco::Muon> >
muons,
edm::Handle<
edm::ValueMap<float> > electronId,
edm::Handle<
edm::View<reco::GsfElectron> > elecs,
edm::Handle<
edm::View<reco::Jet> >
jets,
edm::Handle<reco::JetIDValueMap> jetID,
edm::Handle<reco::JetTagCollection> btagEff,
edm::Handle<reco::JetTagCollection> btagPur,
edm::Handle<reco::JetTagCollection> btagVtx, std::vector<
edm::Handle<
edm::View<reco::MET> > > mets);
76 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); };
84 std::vector<edm::InputTag>
mets_;
144 std::map<std::string,MonitorElement*>
hists_;
150 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
159 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
161 fill((channel+
"Mon_").c_str(), idx+0.5 );
163 int evts =
hists_.find((channel+
"Mon_").c_str())->second->getBinContent(idx+1);
164 double value =
hists_.find((channel+
"Eff_").c_str())->second->getBinContent(idx+1);
257 std::map<std::string, std::pair<edm::ParameterSet, TopHLTSingleLepton::MonitorEnsemble*> >
selection_;
275 std::vector< edm::EDGetTokenT< edm::View<reco::MET> > >
metsTokens_;
std::map< std::string, std::pair< edm::ParameterSet, TopHLTSingleLepton::MonitorEnsemble * > > selection_
edm::InputTag electronId_
electronId label
void book(std::string directory)
book histograms in subdirectory directory
Level verbosity_
verbosity level for booking
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
StringCutObjectSelector< reco::JetID > * jetIDSelect_
extra jetID selection on calo jets
edm::InputTag elecs_
input sources for monitoring
std::vector< edm::InputTag > mets_
considers a vector of METs
edm::EDGetTokenT< reco::JetIDValueMap > jetIDToken_
int logged_
number of logged interesting events
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecsToken_
void fill(const edm::Event &event, const edm::EventSetup &setup, edm::Handle< edm::TriggerResults > triggerTable, edm::Handle< edm::View< reco::Vertex > > pvs, edm::Handle< edm::View< reco::Muon > > muons, edm::Handle< edm::ValueMap< float > > electronId, edm::Handle< edm::View< reco::GsfElectron > > elecs, edm::Handle< edm::View< reco::Jet > > jets, edm::Handle< reco::JetIDValueMap > jetID, edm::Handle< reco::JetTagCollection > btagEff, edm::Handle< reco::JetTagCollection > btagPur, edm::Handle< reco::JetTagCollection > btagVtx, std::vector< edm::Handle< edm::View< reco::MET > > > mets)
fill monitor histograms with electronId and jetCorrections
Level
different verbosity levels
edm::EDGetTokenT< edm::View< reco::Vertex > > pvsToken_
std::string selectionPath(const std::string &label) const
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken_
edm::EDGetTokenT< reco::JetTagCollection > btagPurToken_
edm::InputTag vertex_
primary vertex
StringCutObjectSelector< reco::GsfElectron > * elecSelect_
extra selection on electrons
double lowerEdge_
mass window upper and lower edge
void triggerBinLabels(std::string channel, const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
edm::EDGetTokenT< reco::JetTagCollection > btagEffToken_
edm::InputTag btagEff_
btag discriminator labels
U second(std::pair< T, U > const &p)
std::map< std::string, MonitorElement * > hists_
histogram container
DQMStore * store_
storage manager
define MonitorEnsembple to be used
std::string monitorPath(const std::string &label) const
edm::InputTag triggerTable_
trigger table
StringCutObjectSelector< reco::GsfElectron > * elecIso_
extra isolation criterion on electron
std::vector< std::string > triggerPaths_
trigger paths
StringCutObjectSelector< reco::BeamSpot > * beamspotSelect_
string cut selector
edm::InputTag beamspot_
beamspot
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg)
default contructor
bool booked(const std::string histName) const
check if histogram was booked
StringCutObjectSelector< reco::Muon > * muonIso_
extra isolation criterion on muon
edm::EDGetTokenT< edm::TriggerResults > triggerTableToken_
~MonitorEnsemble()
default destructor
edm::EDGetTokenT< edm::View< reco::Muon > > muonsToken_
edm::InputTag jetIDLabel_
jetID as an extra selection type
std::vector< std::string > triggerPaths_
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
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
StringCutObjectSelector< reco::Vertex > * pvSelect_
extra selection on primary vertices; meant to investigate the pile-up effect
std::vector< std::string > selectionOrder_
edm::EDGetTokenT< reco::JetTagCollection > btagVtxToken_
edm::EDGetTokenT< edm::View< reco::Jet > > jetsToken_
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > metsTokens_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
std::string jetCorrector_
jetCorrector
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
TopHLTSingleLeptonDQM(const edm::ParameterSet &cfg)
default constructor
std::string selectionStep(const std::string &label)
edm::InputTag triggerTable_
trigger table
StringCutObjectSelector< reco::Vertex > * vertexSelect_
string cut selector
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
do this during the event loop
~TopHLTSingleLeptonDQM()
default destructor
edm::EDGetTokenT< edm::ValueMap< float > > electronIdToken_
double btagEffWP_
btag working points
std::string label_
instance label
std::string objectType(const std::string &label)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
StringCutObjectSelector< reco::Muon > * muonSelect_
extra selection on muons
std::vector< edm::InputTag > metsTemp_