12 #include "Math/GenVector/VectorUtil.h"
18 using namespace l1extra ;
22 mVerbose (p.getUntrackedParameter<int> (
"verbose", 0)),
23 mCone (p.getParameter<double> (
"UseTowersInCone")),
24 mEtThreshold (p.getParameter<double> (
"minimumEt")),
25 mEThreshold (p.getParameter<double> (
"minimumE")),
26 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++) {
60 std::cout <<
"CaloTowerCreatorForTauHLT::produce-> " << idx <<
" tower et/eta/phi/e: "
61 << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
65 double delta = ROOT::Math::VectorUtil::DeltaR((*myL1Jet).p4().Vect(),
p);
69 cands->push_back( *cal );
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< l1extra::L1JetParticleCollection > mTauTrigger_token
label of tau trigger type analysis
virtual float phi() const
momentum azimuthal angle
double mEThreshold
E threshold.
double mEtThreshold
imitator of L1 seeds
~CaloTowerCreatorForTauHLT()
destructor
virtual double energy() const
energy
double mCone
use only towers in cone mCone around L1 candidate for regional jet reco
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual float eta() const
momentum pseudorapidity
void produce(edm::Event &e, const edm::EventSetup &) override
process one event
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
CaloTowerCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
double et(double vtxZ) const
edm::EDGetTokenT< CaloTowerCollection > mtowers_token
label of source collection