13 #include "Math/GenVector/VectorUtil.h"
19 using namespace l1extra ;
23 mVerbose (p.getUntrackedParameter<int> (
"verbose", 0)),
25 mCone (p.getParameter<double> (
"UseTowersInCone")),
27 mEtThreshold (p.getParameter<double> (
"minimumEt")),
28 mEThreshold (p.getParameter<double> (
"minimumE")),
29 mTauId (p.getParameter<int> (
"TauId"))
31 produces<CaloTowerCollection>();
46 cands->reserve( caloTowers->size() );
49 L1JetParticleCollection::const_iterator myL1Jet = jetsgen->begin();
50 for(;myL1Jet != jetsgen->end();myL1Jet++)
57 for (; idx < caloTowers->size(); idx++) {
59 bool isAccepted =
false;
61 edm::LogInfo(
"JetDebugInfo") <<
"CaloTowerCreatorForTauHLT::produce-> " << idx <<
" tower et/eta/phi/e: "
62 << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
71 cands->push_back( *cal );
75 if (isAccepted)
edm::LogInfo(
"JetDebugInfo") <<
"accepted \n";
92 aDesc.
add<
int>(
"TauId",0)->setComment(
"Item from L1ExtraJet collection used for seeding");
94 aDesc.
add<
double>(
"UseTowersInCone",0.8)->
setComment(
"Radius of cone around seed");
95 aDesc.
add<
double>(
"minimumE",0.8)->
setComment(
"Minimum tower energy");
96 aDesc.
add<
double>(
"minimumEt",0.5)->
setComment(
"Minimum tower ET");
97 aDesc.
addUntracked<
int>(
"verbose",0)->setComment(
"Verbosity level; 0=silent");
98 desc.
setComment(
"Produce tower collection around L1ExtraJetParticle seed.");
99 desc.
add(
"caloTowerMakerHLT",aDesc);
void setComment(std::string const &value)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double eta() const
momentum pseudorapidity
const int mVerbose
verbosity
const double mCone
use only towers in cone mCone around L1 candidate for regional jet reco
~CaloTowerCreatorForTauHLT()
destructor
virtual double energy() const
energy
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID sid, edm::Event &evt, const edm::EventSetup &stp) const override
process one event
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< l1extra::L1JetParticleCollection > mTauTrigger_token
label of tau trigger type analysis
void setComment(std::string const &value)
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< CaloTowerCollection > mtowers_token
label of source collection
mVerbose(fConfig.getUntrackedParameter< bool >("verbose", false))
CaloTowerCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
double et(double vtxZ) const
const double mEThreshold
E threshold.
const double mEtThreshold
imitator of L1 seeds
virtual double phi() const
momentum azimuthal angle
static void fillDescriptions(edm::ConfigurationDescriptions &desc)