7 leps_(iConfig.getParameter<edm::InputTag>(
"leptons"))
45 if (nleps > 0) {
hists_[
"lepPtAll" ]->Fill( lep_it->p4().pt() );
46 hists_[
"lepEtaAll"]->Fill( lep_it->p4().eta() );
48 if (nleps == 1) {
hists_[
"lepPt1" ]->Fill( lep_it->p4().pt() );
49 hists_[
"lepEta1"]->Fill( lep_it->p4().eta() );
51 if (nleps == 2) {
hists_[
"lepPt2" ]->Fill( lep_it->p4().pt() );
52 hists_[
"lepEta2"]->Fill( lep_it->p4().eta() );
54 if (nleps == 3) {
hists_[
"lepPt3" ]->Fill( lep_it->p4().pt() );
55 hists_[
"lepEta3"]->Fill( lep_it->p4().eta() );
57 if (nleps == 4) {
hists_[
"lepPt4" ]->Fill( lep_it->p4().pt() );
58 hists_[
"lepEta4"]->Fill( lep_it->p4().eta() );
62 hists_[
"lepN" ]->Fill( nleps ) ;
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
TTbar_GenLepAnalyzer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
DQMStore * dbe
ME's "container".
std::map< std::string, MonitorElement * > hists_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
virtual void endRun(edm::Run const &, edm::EventSetup const &)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)