/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoJets/JetAnalyzers/interface/JetCorExample.h
35 строк
1 KB
Christopher Jones
Moved modules in RecoJets/JetAnalyzers to thread-friendly types
08 дек 2021, 00:25
08 дек 2021, 00:25
711d2bc
Код
Авторство
О чём код?
// Template class: JetCorExample // Description: Example of simple EDAnalyzer correcting jets "on the fly". // Author: K. Kousouris // Date: 25 - August - 2008 #ifndef JetCorExample_h #define JetCorExample_h #include <TH1.h> #include <TFile.h> #include "TNamed.h" #include <vector> #include <map> #include "FWCore/Framework/interface/one/EDAnalyzer.h" template <class Jet> class JetCorExample : public edm::one::EDAnalyzer<> { public: JetCorExample(edm::ParameterSet const& cfg); private: typedef std::vector<Jet> JetCollection; void FillHist1D(const TString& histName, const Double_t& x); void beginJob() override; void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override; void endJob() override; std::map<TString, TH1*> m_HistNames1D; TFile* m_file; /////// Configurable parameters ///////////////////////////////////// /////// Jet algorithm: it can be any Calo or PF algorithm /////////// std::string JetAlgorithm; /////// Histogram where the plots are stored //////////////////////// std::string HistoFileName; /////// Jet correction service: service providing jet corrections /// std::string JetCorrectionService; }; #endif