CMS 3D CMS Logo

Public Member Functions | Private Attributes

GlobalTrackingRegionProducerFromBeamSpot Class Reference

#include <GlobalTrackingRegionProducerFromBeamSpot.h>

Inheritance diagram for GlobalTrackingRegionProducerFromBeamSpot:
TrackingRegionProducer

List of all members.

Public Member Functions

 GlobalTrackingRegionProducerFromBeamSpot (const edm::ParameterSet &cfg)
virtual std::vector
< TrackingRegion * > 
regions (const edm::Event &ev, const edm::EventSetup &) const
virtual ~GlobalTrackingRegionProducerFromBeamSpot ()

Private Attributes

edm::InputTag theBeamSpotTag
double theNSigmaZ
double theOriginHalfLength
double theOriginRadius
bool thePrecise
double thePtMin

Detailed Description

Definition at line 11 of file GlobalTrackingRegionProducerFromBeamSpot.h.


Constructor & Destructor Documentation

GlobalTrackingRegionProducerFromBeamSpot::GlobalTrackingRegionProducerFromBeamSpot ( const edm::ParameterSet cfg) [inline]

Definition at line 15 of file GlobalTrackingRegionProducerFromBeamSpot.h.

References Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), theBeamSpotTag, theNSigmaZ, theOriginHalfLength, theOriginRadius, thePrecise, and thePtMin.

                                                                       {

    edm::ParameterSet regionPSet = cfg.getParameter<edm::ParameterSet>("RegionPSet");
    thePtMin            = regionPSet.getParameter<double>("ptMin");
    theOriginRadius     = regionPSet.getParameter<double>("originRadius");
    if (!regionPSet.existsAs<double>("nSigmaZ") && !regionPSet.existsAs<double>("originHalfLength")) {
        throw cms::Exception("Configuration") << "GlobalTrackingRegionProducerFromBeamSpot: at least one of nSigmaZ, originHalfLength must be present in the cfg.\n";
    }
    theNSigmaZ          = (regionPSet.existsAs<double>("nSigmaZ")          ? regionPSet.getParameter<double>("nSigmaZ")          : 0.0);
    theOriginHalfLength = (regionPSet.existsAs<double>("originHalfLength") ? regionPSet.getParameter<double>("originHalfLength") : 0.0);
    theBeamSpotTag      = regionPSet.getParameter<edm::InputTag>("beamSpot");
    thePrecise          = regionPSet.getParameter<bool>("precise");
  }
virtual GlobalTrackingRegionProducerFromBeamSpot::~GlobalTrackingRegionProducerFromBeamSpot ( ) [inline, virtual]

Definition at line 29 of file GlobalTrackingRegionProducerFromBeamSpot.h.

{}

Member Function Documentation

virtual std::vector<TrackingRegion* > GlobalTrackingRegionProducerFromBeamSpot::regions ( const edm::Event ev,
const edm::EventSetup  
) const [inline, virtual]

Member Data Documentation