CMS 3D CMS Logo

TauRegionalPixelSeedGenerator Class Reference

#include <RecoTauTag/HLTProducers/src/TauRegionalPixelSeedGenerator.h>

Inheritance diagram for TauRegionalPixelSeedGenerator:

TrackingRegionProducer

List of all members.

Public Member Functions

virtual std::vector
< TrackingRegion * > 
regions (const edm::Event &e, const edm::EventSetup &es) const
 TauRegionalPixelSeedGenerator (const edm::ParameterSet &conf_)
virtual ~TauRegionalPixelSeedGenerator ()

Private Attributes

edm::ParameterSet conf_
float m_deltaEta
float m_deltaPhi
float m_halfLength
edm::InputTag m_jetSrc
float m_originRadius
float m_ptMin
edm::InputTag m_vertexSrc


Detailed Description

Definition at line 32 of file TauRegionalPixelSeedGenerator.h.


Constructor & Destructor Documentation

TauRegionalPixelSeedGenerator::TauRegionalPixelSeedGenerator ( const edm::ParameterSet conf_  )  [inline, explicit]

Definition at line 35 of file TauRegionalPixelSeedGenerator.h.

References edm::ParameterSet::getParameter(), m_deltaEta, m_deltaPhi, m_halfLength, m_jetSrc, m_originRadius, m_ptMin, and m_vertexSrc.

00035                                                                         {
00036       edm::LogInfo ("TauRegionalPixelSeedGenerator") << "Enter the TauRegionalPixelSeedGenerator";
00037 
00038       edm::ParameterSet regionPSet = conf_.getParameter<edm::ParameterSet>("RegionPSet");
00039 
00040       m_ptMin        = regionPSet.getParameter<double>("ptMin");
00041       m_originRadius = regionPSet.getParameter<double>("originRadius");
00042       m_halfLength   = regionPSet.getParameter<double>("originHalfLength");
00043       m_deltaEta     = regionPSet.getParameter<double>("deltaEtaRegion");
00044       m_deltaPhi     = regionPSet.getParameter<double>("deltaPhiRegion");
00045       m_jetSrc       = regionPSet.getParameter<edm::InputTag>("JetSrc");
00046       m_vertexSrc    = regionPSet.getParameter<edm::InputTag>("vertexSrc");
00047     }

virtual TauRegionalPixelSeedGenerator::~TauRegionalPixelSeedGenerator (  )  [inline, virtual]

Definition at line 49 of file TauRegionalPixelSeedGenerator.h.

00049 {}


Member Function Documentation

virtual std::vector<TrackingRegion* > TauRegionalPixelSeedGenerator::regions ( const edm::Event e,
const edm::EventSetup es 
) const [inline, virtual]

Implements TrackingRegionProducer.

Definition at line 52 of file TauRegionalPixelSeedGenerator.h.

References edm::Event::getByLabel(), pfTauBenchmarkGeneric_cfi::jets, m_deltaEta, m_deltaPhi, m_halfLength, m_jetSrc, m_originRadius, m_ptMin, m_vertexSrc, and HLT_VtxMuL3::result.

00052                                                                                                   {
00053       std::vector<TrackingRegion* > result;
00054 
00055       double originZ;
00056       double deltaZVertex;
00057       
00058       // get the primary vertex
00059       edm::Handle<reco::VertexCollection> h_vertices;
00060       e.getByLabel(m_vertexSrc, h_vertices);
00061       const reco::VertexCollection & vertices = * h_vertices;
00062       if (not vertices.empty()) {
00063         originZ      = vertices.front().z();
00064         deltaZVertex = m_halfLength;
00065       } else {
00066         originZ      =  0.;
00067         deltaZVertex = 15.;
00068       }
00069       
00070       // get the jet direction
00071       edm::Handle<reco::CaloJetCollection> h_jets;
00072       e.getByLabel(m_jetSrc, h_jets);
00073       const reco::CaloJetCollection & jets = * h_jets;
00074       
00075       for (reco::CaloJetCollection::const_iterator iJet = jets.begin(); iJet != jets.end(); ++iJet)
00076       {
00077           GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
00078           GlobalPoint  vertex(0, 0, originZ);
00079           RectangularEtaPhiTrackingRegion* etaphiRegion = new RectangularEtaPhiTrackingRegion( jetVector,
00080                                                                                                vertex,
00081                                                                                                m_ptMin,
00082                                                                                                m_originRadius,
00083                                                                                                deltaZVertex,
00084                                                                                                m_deltaEta,
00085                                                                                                m_deltaPhi );
00086           result.push_back(etaphiRegion);
00087       }
00088 
00089       return result;
00090     }


Member Data Documentation

edm::ParameterSet TauRegionalPixelSeedGenerator::conf_ [private]

Definition at line 93 of file TauRegionalPixelSeedGenerator.h.

float TauRegionalPixelSeedGenerator::m_deltaEta [private]

Definition at line 98 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

float TauRegionalPixelSeedGenerator::m_deltaPhi [private]

Definition at line 99 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

float TauRegionalPixelSeedGenerator::m_halfLength [private]

Definition at line 97 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

edm::InputTag TauRegionalPixelSeedGenerator::m_jetSrc [private]

Definition at line 100 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

float TauRegionalPixelSeedGenerator::m_originRadius [private]

Definition at line 96 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

float TauRegionalPixelSeedGenerator::m_ptMin [private]

Definition at line 95 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().

edm::InputTag TauRegionalPixelSeedGenerator::m_vertexSrc [private]

Definition at line 101 of file TauRegionalPixelSeedGenerator.h.

Referenced by regions(), and TauRegionalPixelSeedGenerator().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:33:06 2009 for CMSSW by  doxygen 1.5.4