/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/EventGenerator/interface/WeightManager.h
38 строк
1 KB
Shahzad Malik Muzaffar
[DQM-GENERATORS] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:17
05 сен 2024, 17:17
ea9b721
Код
Авторство
О чём код?
#ifndef Validation_EventGenerator_WeightManager #define Validation_EventGenerator_WeightManager // Utility class, that computes the event weight, // either returning the weight as stored in the HepMCCollection // or returning the product of the weights stored in // a vector of GenEventInfoProducts #include "FWCore/Utilities/interface/InputTag.h" #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h" #include "FWCore/Framework/interface/ConsumesCollector.h" #include <vector> namespace edm { class ParameterSet; class Event; } // namespace edm class WeightManager { public: WeightManager(const edm::ParameterSet&, edm::ConsumesCollector iC); ~WeightManager() {} double weight(const edm::Event&); std::vector<std::vector<double>> weightsCollection(const edm::Event&); private: bool _useHepMC; std::vector<edm::InputTag> _genEventInfos; edm::InputTag _hepmcCollection; edm::EDGetTokenT<edm::HepMCProduct> hepmcCollectionToken_; std::vector<edm::EDGetTokenT<GenEventInfoProduct>> genEventInfosTokens_; }; #endif