64 rho_(consumes<double>(iConfig.getParameter<edm::
InputTag>(
"rho"))),
65 caloJetPtCut(iConfig.getParameter<double>(
"caloJetPtCut")),
66 caloJetEtaCut(iConfig.getParameter<double>(
"caloJetEtaCut")),
67 doMet(iConfig.getParameter<bool>(
"doMet"))
70 produces<ScoutingCaloJetCollection>();
71 produces<ScoutingVertexCollection>();
72 produces<double>(
"rho");
73 produces<double>(
"caloMetPt");
74 produces<double>(
"caloMetPhi");
90 for(
auto &
jet : *caloJetCollection){
92 outCaloJets->emplace_back(
94 jet.jetArea(),
jet.maxEInEmTowers(),
jet.maxEInHadTowers(),
95 jet.hadEnergyInHB(),
jet.hadEnergyInHE(),
jet.hadEnergyInHF(),
96 jet.emEnergyInEB(),
jet.emEnergyInEE(),
jet.emEnergyInHF(),
109 outVertices->emplace_back(
110 vtx.x(), vtx.y(), vtx.z(), vtx.zError()
117 std::auto_ptr<double> outRho(
new double(-999));
119 outRho.reset(
new double(*
rho));
124 std::auto_ptr<double> outMetPt(
new double(-999));
125 std::auto_ptr<double> outMetPhi(
new double(-999));
132 iEvent.
put(outCaloJets);
133 iEvent.
put(outVertices);
134 iEvent.
put(outRho,
"rho");
135 iEvent.
put(outMetPt,
"caloMetPt");
136 iEvent.
put(outMetPhi,
"caloMetPhi");
147 desc.
add<
double>(
"caloJetPtCut", 20.0);
148 desc.
add<
double>(
"caloJetEtaCut", 3.0);
149 desc.
add<
bool>(
"doMet",
true);
150 descriptions.
add(
"hltScoutingCaloProducer", desc);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< reco::VertexCollection > vertexCollection_
const edm::EDGetTokenT< reco::CaloMETCollection > metCollection_
#define DEFINE_FWK_MODULE(type)
HLTScoutingCaloProducer(const edm::ParameterSet &)
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
const edm::EDGetTokenT< reco::CaloJetCollection > caloJetCollection_
std::vector< ScoutingVertex > ScoutingVertexCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
virtual void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const overridefinal
const edm::EDGetTokenT< double > rho_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const double caloJetPtCut
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const double caloJetEtaCut
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
~HLTScoutingCaloProducer()