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++) {
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 );
virtual double energy() const GCC11_FINAL
energy
double mEThreshold
E threshold.
double mEtThreshold
ET threshold.
~CaloTowerCreatorForTauHLT()
destructor
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
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.
void produce(edm::Event &e, const edm::EventSetup &) override
process one event
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag mTauTrigger
label of tau trigger type analysis
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
PtEtaPhiELorentzVectorD PtEtaPhiELorentzVector
Lorentz vector with cartesian internal representation.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::InputTag mtowers
label of source collection
CaloTowerCreatorForTauHLT(const edm::ParameterSet &)
constructor from parameter set
double et(double vtxZ) const