/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/UtilAlgos/interface/BasicMuonAnalyzer.h
40 строк
2 KB
Shahzad Malik Muzaffar
[ANALYSIS] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:04
05 сен 2024, 17:04
a467cd9
Код
Авторство
О чём код?
#include <map> #include <string> #include "TH1.h" #include "PhysicsTools/UtilAlgos/interface/BasicAnalyzer.h" #include "DataFormats/MuonReco/interface/Muon.h" /** \class BasicMuonAnalyzer BasicMuonAnalyzer.h "PhysicsTools/UtilAlgos/interface/BasicMuonAnalyzer.h" \brief Example class that can be used both within FWLite and within the full framework This is an example for keeping classes that can be used both within FWLite and within the full framework. The class is derived from the BasicAnalyzer base class, which is an interface for the two wrapper classes EDAnalyzerWrapper and FWLiteAnalyzerWrapper. The latter provides basic configuration file reading and event looping equivalent to the FWLiteHistograms executable of this package. You can see the FWLiteAnalyzerWrapper class at work in the FWLiteWithBasicAnalyzer executable of this package. */ class BasicMuonAnalyzer : public edm::BasicAnalyzer { public: /// default constructor BasicMuonAnalyzer(const edm::ParameterSet& cfg, TFileDirectory& fs); BasicMuonAnalyzer(const edm::ParameterSet& cfg, TFileDirectory& fs, edm::ConsumesCollector&& iC); /// default destructor ~BasicMuonAnalyzer() override {} /// everything that needs to be done before the event loop void beginJob() override {} /// everything that needs to be done after the event loop void endJob() override {} /// everything that needs to be done during the event loop void analyze(const edm::EventBase& event) override; private: /// input tag for mouns edm::InputTag muons_; edm::EDGetTokenT<std::vector<reco::Muon> > muonsToken_; /// histograms std::map<std::string, TH1*> hists_; };