8 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 ) ;
edm::EDGetTokenT< edm::View< reco::Candidate > > lepsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TTbar_GenLepAnalyzer(const edm::ParameterSet &)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book1dHisto(std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(std::string const &fullpath)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::map< std::string, MonitorElement * > hists_
~TTbar_GenLepAnalyzer() override