7 leps_(iConfig.getParameter<edm::InputTag>(
"leptons"))
47 if (nleps > 0) {
hists_[
"lepPtAll" ]->Fill( lep_it->p4().pt() );
48 hists_[
"lepEtaAll"]->Fill( lep_it->p4().eta() );
50 if (nleps == 1) {
hists_[
"lepPt1" ]->Fill( lep_it->p4().pt() );
51 hists_[
"lepEta1"]->Fill( lep_it->p4().eta() );
53 if (nleps == 2) {
hists_[
"lepPt2" ]->Fill( lep_it->p4().pt() );
54 hists_[
"lepEta2"]->Fill( lep_it->p4().eta() );
56 if (nleps == 3) {
hists_[
"lepPt3" ]->Fill( lep_it->p4().pt() );
57 hists_[
"lepEta3"]->Fill( lep_it->p4().eta() );
59 if (nleps == 4) {
hists_[
"lepPt4" ]->Fill( lep_it->p4().pt() );
60 hists_[
"lepEta4"]->Fill( lep_it->p4().eta() );
64 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.
edm::EDGetTokenT< edm::View< reco::Candidate > > lepsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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 &)
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)