1 #ifndef SINGLETOPTCHANNELLEPTONDQM
2 #define SINGLETOPTCHANNELLEPTONDQM
40 namespace SingleTopTChannelLepton {
78 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); };
86 std::vector<edm::EDGetTokenT<edm::View<reco::MET> > >
mets_;
165 std::map<std::string,MonitorElement*>
hists_;
172 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
181 for(
unsigned int idx=0;
idx<labels.size(); ++
idx){
183 fill((channel+
"Mon_").c_str(), idx+0.5 );
185 int evts =
hists_.find((channel+
"Mon_").c_str())->second->getBinContent(idx+1);
186 double value =
hists_.find((channel+
"Eff_").c_str())->second->getBinContent(idx+1);
187 fill((channel+
"Eff_").c_str(), idx+0.5, 1./evts*(
accept(event, triggerTable,
selectionPath(labels[idx]))-value));
252 for(
unsigned int i = 0; i <
PFJetSteps.size(); i++)
301 std::map<std::string, std::pair<edm::ParameterSet, SingleTopTChannelLepton::MonitorEnsemble*> >
selection_;
std::vector< std::string > selectionOrder_
std::string objectType(const std::string &label)
~SingleTopTChannelLeptonDQM()
default destructor
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
double btagEffWP_
btag working points
std::vector< std::string > triggerPaths_
trigger paths
Level verbosity_
verbosity level for booking
SelectionStep< reco::MET > * METStep
std::vector< ParameterSet > VParameterSet
int logged_
number of logged interesting events
define MonitorEnsembple to be used
bool booked(const std::string histName) const
check if histogram was booked
edm::EDGetTokenT< reco::JetTagCollection > btagCombVtx_
std::vector< SelectionStep< reco::CaloJet > * > CaloJetSteps
edm::EDGetTokenT< edm::TriggerResults > triggerTable__
trigger table
edm::InputTag beamspot_
beamspot
std::string muonIso_
extra isolation criterion on muon
std::vector< std::string > triggerPaths_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::string muonSelect_
extra selection on muons
edm::EDGetTokenT< edm::View< reco::PFCandidate > > muons_
std::map< std::string, std::pair< edm::ParameterSet, SingleTopTChannelLepton::MonitorEnsemble * > > selection_
SingleTopTChannelLeptonDQM(const edm::ParameterSet &cfg)
default constructor
StringCutObjectSelector< reco::Vertex > * pvSelect_
extra selection on primary vertices; meant to investigate the pile-up effect
U second(std::pair< T, U > const &p)
edm::InputTag vertex_
primary vertex
StringCutObjectSelector< reco::Vertex > * vertexSelect_
string cut selector
std::string 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
SelectionStep< reco::Vertex > * PvStep
std::string monitorPath(const std::string &label) const
edm::EDGetTokenT< edm::View< reco::GsfElectron > > elecs_gsf_
SelectionStep< reco::GsfElectron > * ElectronStep
edm::EDGetTokenT< reco::JetTagCollection > btagPur_
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
edm::EDGetTokenT< reco::JetTagCollection > btagEff_
btag discriminator labels
edm::EDConsumerBase tmpConsumerBase
std::string selectionPath(const std::string &label) const
std::map< std::string, MonitorElement * > hists_
histogram container
edm::EDGetTokenT< edm::TriggerResults > triggerTable_
trigger table
std::vector< SelectionStep< reco::Jet > * > JetSteps
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label
std::string selectionStep(const std::string &label)
edm::EDGetTokenT< reco::JetTagCollection > btagVtx_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > elecs_
SelectionStep< reco::Muon > * MuonStep
std::vector< SelectionStep< reco::PFJet > * > PFJetSteps
std::vector< edm::EDGetTokenT< edm::View< reco::MET > > > mets_
considers a vector of METs
void fill(const edm::Event &event, const edm::EventSetup &setup)
fill monitor histograms with electronId and jetCorrections
SelectionStep< reco::PFCandidate > * PFMuonStep
edm::EDGetTokenT< edm::View< reco::Jet > > jets_
input sources for monitoring
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
do this during the event loop
StringCutObjectSelector< reco::BeamSpot > * beamspotSelect_
string cut selector
edm::EDGetTokenT< reco::Vertex > vertex__
StringCutObjectSelector< reco::JetID > * jetIDSelect_
extra jetID selection on calo jets
MonitorEnsemble(const char *label, const edm::ParameterSet &cfg, const edm::VParameterSet &vcfg, edm::ConsumesCollector &&iC)
default contructor
edm::EDGetTokenT< reco::BeamSpot > beamspot__
SelectionStep< reco::PFCandidate > * PFElectronStep
std::string jetCorrector_
jetCorrector
~MonitorEnsemble()
default destructor
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
DQMStore * store_
storage manager
void fill(const std::string histName, double xValue, double yValue) const
fill histogram if it had been booked before (2-dim version)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void book(std::string directory)
book histograms in subdirectory directory
Level
different verbosity levels
std::string label_
instance label
std::string elecIso_
extra isolation criterion on electron