19 : usePt_(iConfig.getParameter<bool>(
"usePt")),
20 minPtTowerHt_(iConfig.getParameter<double>(
"minPtTowerHt")),
21 minPtTowerMht_(iConfig.getParameter<double>(
"minPtTowerMht")),
22 maxEtaTowerHt_(iConfig.getParameter<double>(
"maxEtaTowerHt")),
23 maxEtaTowerMht_(iConfig.getParameter<double>(
"maxEtaTowerMht")),
24 towersLabel_(iConfig.getParameter<edm::
InputTag>(
"towersLabel")) {
28 produces<reco::METCollection>();
38 desc.
add<
bool>(
"usePt",
false);
39 desc.
add<
double>(
"minPtTowerHt", 1.);
40 desc.
add<
double>(
"minPtTowerMht", 1.);
41 desc.
add<
double>(
"maxEtaTowerHt", 5.);
42 desc.
add<
double>(
"maxEtaTowerMht", 5.);
44 descriptions.
add(
"hltCaloTowerHtMhtProducer", desc);
55 double ht = 0., mhx = 0., mhy = 0.;
57 if (!towers->empty()) {
58 for (
auto const&
j : *towers) {
79 result->push_back(htmht);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Sin< T >::type sin(const T &t)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< reco::MET > METCollection
collection of MET objects
HLTCaloTowerHtMhtProducer(const edm::ParameterSet &iConfig)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
~HLTCaloTowerHtMhtProducer() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
double minPtTowerHt_
Minimum pt requirement for jets.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::InputTag towersLabel_
Input CaloTower collection.
edm::EDGetTokenT< CaloTowerCollection > m_theTowersToken
double maxEtaTowerHt_
Maximum (abs) eta requirement for jets.
bool usePt_
Use pt; otherwise, use et.
math::XYZPoint Point
point in the space