|
|
Go to the documentation of this file.
69 caloJetBTagCollection_(
71 caloJetIDTagCollection_(
75 rho_(consumes<double>(iConfig.getParameter<
edm::
InputTag>(
"rho"))),
76 caloJetPtCut(iConfig.getParameter<double>(
"caloJetPtCut")),
78 doMet(iConfig.getParameter<
bool>(
"doMet")),
82 produces<ScoutingCaloJetCollection>();
83 produces<double>(
"rho");
84 produces<double>(
"caloMetPt");
85 produces<double>(
"caloMetPhi");
100 bool haveJetBTags =
false;
105 bool haveJetIDTags =
false;
107 haveJetIDTags =
true;
113 float bTagValue = -20;
114 float bTagMinDR2 = 0.01;
118 if (dR2 < bTagMinDR2) {
120 bTagValue =
tag.second;
124 float idTagValue = -20;
125 float idTagMinDR2 = 0.01;
129 if (dR2 < idTagMinDR2) {
131 idTagValue =
tag.second;
135 outCaloJets->emplace_back(
jet.pt(),
140 jet.maxEInEmTowers(),
141 jet.maxEInHadTowers(),
157 std::unique_ptr<double> outRho(
new double(-999));
159 outRho.reset(
new double(*
rho));
164 std::unique_ptr<double> outMetPt(
new double(-999));
165 std::unique_ptr<double> outMetPhi(
new double(-999));
188 desc.
add<
double>(
"caloJetPtCut", 20.0);
189 desc.
add<
double>(
"caloJetEtaCut", 3.0);
190 desc.
add<
bool>(
"doMet",
true);
191 desc.
add<
bool>(
"doJetBTags",
false);
192 desc.
add<
bool>(
"doJetIDTags",
false);
193 descriptions.
add(
"hltScoutingCaloProducer", desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< Vertex > VertexCollection
collection of Vertex objects
const edm::EDGetTokenT< reco::VertexCollection > vertexCollection_
HLTScoutingCaloProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::CaloJetCollection > caloJetCollection_
void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const final
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
const edm::EDGetTokenT< reco::CaloMETCollection > metCollection_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
~HLTScoutingCaloProducer() override
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
JetFloatAssociation::Container JetTagCollection
const edm::EDGetTokenT< double > rho_
const edm::EDGetTokenT< reco::JetTagCollection > caloJetIDTagCollection_
const double caloJetEtaCut
const double caloJetPtCut
const edm::EDGetTokenT< reco::JetTagCollection > caloJetBTagCollection_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)