13 #include "Math/GenVector/VectorUtil.h" 22 : mVerbose(
p.getUntrackedParameter<
int>(
"verbose", 0)),
24 mCone(
p.getParameter<double>(
"UseTowersInCone")),
25 mCone2(mCone * mCone),
27 mEtThreshold(
p.getParameter<double>(
"minimumEt")),
28 mEThreshold(
p.getParameter<double>(
"minimumE")),
29 mTauId(
p.getParameter<
int>(
"TauId")) {
30 produces<CaloTowerCollection>();
50 L1JetParticleCollection::const_iterator myL1Jet = jetsgen->begin();
51 for (; myL1Jet != jetsgen->end(); myL1Jet++) {
56 bool isAccepted =
false;
58 edm::LogInfo(
"JetDebugInfo") <<
"CaloTowerCreatorForTauHLT::produce-> " <<
idx 59 <<
" tower et/eta/phi/e: " << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi()
60 <<
'/' << cal->
energy() <<
" is...";
64 double delta2 = ROOT::Math::VectorUtil::DeltaR2((*myL1Jet).p4().Vect(),
p);
68 cands->push_back(*cal);
88 ->setComment(
"L1ExtraJet collection for seeding");
89 aDesc.
add<
int>(
"TauId", 0)->setComment(
"Item from L1ExtraJet collection used for seeding");
91 aDesc.
add<
double>(
"UseTowersInCone", 0.8)->
setComment(
"Radius of cone around seed");
92 aDesc.
add<
double>(
"minimumE", 0.8)->
setComment(
"Minimum tower energy");
93 aDesc.
add<
double>(
"minimumEt", 0.5)->
setComment(
"Minimum tower ET");
94 aDesc.
addUntracked<
int>(
"verbose", 0)->setComment(
"Verbosity level; 0=silent");
95 desc.setComment(
"Produce tower collection around L1ExtraJetParticle seed.");
96 desc.add(
"caloTowerMakerHLT", aDesc);
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const int mVerbose
verbosity
const double mCone
use only towers in cone mCone around L1 candidate for regional jet reco
double et(double vtxZ) const
void produce(edm::StreamID sid, edm::Event &evt, const edm::EventSetup &stp) const override
process one event
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< l1extra::L1JetParticleCollection > mTauTrigger_token
label of tau trigger type analysis
Log< level::Info, false > LogInfo
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
const edm::EDGetTokenT< CaloTowerCollection > mtowers_token
label of source collection
CaloTowerCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
const double mEThreshold
E threshold.
const double mEtThreshold
ET threshold.
double phi() const final
momentum azimuthal angle
static void fillDescriptions(edm::ConfigurationDescriptions &desc)
double energy() const final
energy
double eta() const final
momentum pseudorapidity