34 virtual void endJob()
override ;
54 photonSrcToken_(consumes<edm::
View<pat::Photon> >(iConfig.getUntrackedParameter<edm::InputTag>(
"photonSrc"))),
55 elecSrcToken_(consumes<edm::
View<pat::Electron> >(iConfig.getUntrackedParameter<edm::InputTag>(
"electronSrc"))),
56 muonSrcToken_(consumes<edm::
View<pat::Muon> >(iConfig.getUntrackedParameter<edm::InputTag>(
"muonSrc"))),
57 tauSrcToken_(consumes<edm::
View<pat::
Tau> >(iConfig.getUntrackedParameter<edm::InputTag>(
"tauSrc"))),
58 jetSrcToken_(consumes<edm::
View<pat::Jet> >(iConfig.getUntrackedParameter<edm::InputTag>(
"jetSrc"))),
59 metSrcToken_(consumes<edm::
View<pat::
MET> >(iConfig.getUntrackedParameter<edm::InputTag>(
"metSrc")))
111 histContainer_[
"met" ]->Fill(mets->empty() ? 0 : (*mets)[0].et());
123 histContainer_[
"photons"]=fs->
make<TH1F>(
"photons",
"photon multiplicity", 10, 0, 10);
125 histContainer_[
"muons" ]=fs->
make<TH1F>(
"muons",
"muon multiplicity", 10, 0, 10);
126 histContainer_[
"taus" ]=fs->
make<TH1F>(
"taus",
"tau multiplicity", 10, 0, 10);
127 histContainer_[
"jets" ]=fs->
make<TH1F>(
"jets",
"jet multiplicity", 10, 0, 10);
128 histContainer_[
"met" ]=fs->
make<TH1F>(
"met",
"missing E_{T}", 20, 0, 100);
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< pat::Tau > > tauSrcToken_
edm::EDGetTokenT< edm::View< pat::Jet > > jetSrcToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
everything that needs to be done during the event loop
T * make(const Args &...args) const
make new ROOT object
PatBasicAnalyzer(const edm::ParameterSet &)
default constructor
edm::EDGetTokenT< edm::View< pat::Muon > > muonSrcToken_
edm::EDGetTokenT< edm::View< pat::MET > > metSrcToken_
~PatBasicAnalyzer()
default destructor
std::map< std::string, TH1F * > histContainer_
edm::EDGetTokenT< edm::View< pat::Electron > > elecSrcToken_
virtual void beginJob() override
everything that needs to be done before the event loop
virtual void endJob() override
everything that needs to be done after the event loop
edm::EDGetTokenT< edm::View< pat::Photon > > photonSrcToken_