/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoJets/JetAnalyzers/interface/JetPlotsExample.h
42 строки
2 KB
Mikhail Kirsanov
repair JetPlotsExample
16 мар 2025, 18:08
16 мар 2025, 18:08
29d57ed
Код
Авторство
О чём код?
// Template class: JetPlotsExample // Description: Example of simple EDAnalyzer for jets. // Author: K. Kousouris // Date: 25 - August - 2008 #ifndef JetPlotsExample_h #define JetPlotsExample_h #include <TH1.h> #include <TFile.h> #include "TNamed.h" #include <vector> #include <map> #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDProducer.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "DataFormats/JetReco/interface/JetCollection.h" template <class Jet> class JetPlotsExample : public edm::one::EDAnalyzer<> { public: JetPlotsExample(edm::ParameterSet const& cfg); private: typedef std::vector<Jet> JetCollection; const edm::EDGetTokenT<JetCollection> JetToken_; 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, Gen or PF algorithm ////// std::string JetAlgorithm; /////// Histogram where the plots are stored //////////////////////// std::string HistoFileName; /////// Number of jets used for the plots /////////////////////////// int NJets; }; #endif