7 leps_(iConfig.getParameter<edm::InputTag>(
"leptons"))
44 if (nleps > 0) {
hists_[
"lepPtAll" ]->Fill( lep_it->p4().pt() );
45 hists_[
"lepEtaAll"]->Fill( lep_it->p4().eta() );
47 if (nleps == 1) {
hists_[
"lepPt1" ]->Fill( lep_it->p4().pt() );
48 hists_[
"lepEta1"]->Fill( lep_it->p4().eta() );
50 if (nleps == 2) {
hists_[
"lepPt2" ]->Fill( lep_it->p4().pt() );
51 hists_[
"lepEta2"]->Fill( lep_it->p4().eta() );
53 if (nleps == 3) {
hists_[
"lepPt3" ]->Fill( lep_it->p4().pt() );
54 hists_[
"lepEta3"]->Fill( lep_it->p4().eta() );
56 if (nleps == 4) {
hists_[
"lepPt4" ]->Fill( lep_it->p4().pt() );
57 hists_[
"lepEta4"]->Fill( lep_it->p4().eta() );
61 hists_[
"lepN" ]->Fill( nleps ) ;
69 hists_[
"lepN" ] = i.
book1D(
"TTbar_lepN" ,
"N" , 10, -.5, 9.5 );
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::Candidate > > lepsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TTbar_GenLepAnalyzer(const edm::ParameterSet &)
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book1D(Args &&...args)
void setCurrentFolder(const std::string &fullpath)
std::map< std::string, MonitorElement * > hists_