Go to the documentation of this file.
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.;
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Sin< T >::type sin(const T &t)
std::vector< reco::MET > METCollection
collection of MET objects
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Cos< T >::type cos(const T &t)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< CaloTowerCollection > m_theTowersToken
double minPtTowerHt_
Minimum pt requirement for jets.
double maxEtaTowerHt_
Maximum (abs) eta requirement for jets.
bool usePt_
Use pt; otherwise, use et.
edm::InputTag towersLabel_
Input CaloTower collection.
HLTCaloTowerHtMhtProducer(const edm::ParameterSet &iConfig)
~HLTCaloTowerHtMhtProducer() override
Abs< T >::type abs(const T &t)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::XYZPoint Point
point in the space