15 #include "Math/GenVector/VectorUtil.h"
21 using namespace l1extra ;
25 mVerbose (p.getUntrackedParameter<int> (
"verbose", 0)),
26 mtowers (p.getParameter<
InputTag> (
"towers")),
27 mCone (p.getParameter<double> (
"UseTowersInCone")),
28 mTauTrigger (p.getParameter<
InputTag> (
"TauTrigger")),
30 mEtThreshold (p.getParameter<double> (
"minimumEt")),
31 mEThreshold (p.getParameter<double> (
"minimumE")),
32 mTauId (p.getParameter<int> (
"TauId"))
34 produces<CaloTowerCollection>();
48 cands->reserve( caloTowers->size() );
51 L1JetParticleCollection::const_iterator myL1Jet = jetsgen->begin();
52 for(;myL1Jet != jetsgen->end();myL1Jet++)
59 for (; idx < caloTowers->size(); idx++) {
60 const CaloTower* cal = &((*caloTowers) [idx]);
62 std::cout <<
"CaloTowerCreatorForTauHLT::produce-> " << idx <<
" tower et/eta/phi/e: "
63 << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
67 double delta = ROOT::Math::VectorUtil::DeltaR((*myL1Jet).p4().Vect(),
p);
71 cands->push_back( *cal );
double mEThreshold
E threshold.
double mEtThreshold
ET threshold.
virtual double eta() const
momentum pseudorapidity
~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.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag mTauTrigger
label of tau trigger type analysis
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
edm::InputTag mtowers
label of source collection
CaloTowerCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
double et(double vtxZ) const
virtual double phi() const
momentum azimuthal angle
void produce(edm::Event &e, const edm::EventSetup &)
process one event