CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1MuonRegionProducer Class Reference

#include <L1MuonRegionProducer.h>

Inheritance diagram for L1MuonRegionProducer:
TrackingRegionProducer

List of all members.

Public Member Functions

 L1MuonRegionProducer (const edm::ParameterSet &cfg)
virtual std::vector
< TrackingRegion * > 
regions (const edm::Event &ev, const edm::EventSetup &es) const
void setL1Constraint (const L1MuGMTCand &muon)
virtual ~L1MuonRegionProducer ()

Private Attributes

int theChargeL1
double theEtaL1
GlobalPoint theOrigin
double theOriginHalfLength
double theOriginRadius
double thePhiL1
double thePtL1
double thePtMin

Detailed Description

Definition at line 12 of file L1MuonRegionProducer.h.


Constructor & Destructor Documentation

L1MuonRegionProducer::L1MuonRegionProducer ( const edm::ParameterSet cfg)

Definition at line 11 of file L1MuonRegionProducer.cc.

References edm::ParameterSet::getParameter().

                                                                     { 

  edm::ParameterSet regionPSet = cfg.getParameter<edm::ParameterSet>("RegionPSet");

  thePtMin            = regionPSet.getParameter<double>("ptMin");
  theOriginRadius     = regionPSet.getParameter<double>("originRadius");
  theOriginHalfLength = regionPSet.getParameter<double>("originHalfLength");
  theOrigin = GlobalPoint( regionPSet.getParameter<double>("originXPos"),
                           regionPSet.getParameter<double>("originYPos"),
                           regionPSet.getParameter<double>("originZPos"));
}   
virtual L1MuonRegionProducer::~L1MuonRegionProducer ( ) [inline, virtual]

Definition at line 16 of file L1MuonRegionProducer.h.

{} 

Member Function Documentation

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

Implements TrackingRegionProducer.

Definition at line 31 of file L1MuonRegionProducer.cc.

References funct::cos(), L1MuonPixelTrackFitter::getBending(), L1MuonPixelTrackFitter::getBendingError(), query::result, and funct::sin().

Referenced by TSGFromL1Muon::produce().

{
  double dx = cos(thePhiL1);
  double dy = sin(thePhiL1);
  double dz = sinh(theEtaL1);
  GlobalVector direction(dx,dy,dz);        // muon direction

  std::vector<TrackingRegion* > result;
  double bending = L1MuonPixelTrackFitter::getBending(1./thePtMin, theEtaL1, theChargeL1);
  bending = fabs(bending);
  double errBending = L1MuonPixelTrackFitter::getBendingError(1./thePtMin, theEtaL1);

  result.push_back( 
      new RectangularEtaPhiTrackingRegion( direction, theOrigin, 
          thePtMin, theOriginRadius, theOriginHalfLength, 0.15, bending+3*errBending) );

  return result;
}
void L1MuonRegionProducer::setL1Constraint ( const L1MuGMTCand muon)

Definition at line 23 of file L1MuonRegionProducer.cc.

References L1MuGMTCand::charge(), L1MuGMTCand::etaValue(), and L1MuGMTCand::phiValue().

Referenced by TSGFromL1Muon::produce().

{
  thePhiL1 = muon.phiValue()+0.021817;
  theEtaL1 = muon.etaValue();
  theChargeL1 = muon.charge();
}

Member Data Documentation

Definition at line 27 of file L1MuonRegionProducer.h.

Definition at line 27 of file L1MuonRegionProducer.h.

Definition at line 24 of file L1MuonRegionProducer.h.

Definition at line 23 of file L1MuonRegionProducer.h.

Definition at line 23 of file L1MuonRegionProducer.h.

Definition at line 27 of file L1MuonRegionProducer.h.

Definition at line 27 of file L1MuonRegionProducer.h.

Definition at line 23 of file L1MuonRegionProducer.h.