CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1MuonRegionProducer Class Reference

#include <L1MuonRegionProducer.h>

Public Member Functions

 L1MuonRegionProducer (const edm::ParameterSet &cfg)
 
std::vector< std::unique_ptr< TrackingRegion > > regions () const
 
void setL1Constraint (const L1MuGMTCand &muon)
 
 ~L1MuonRegionProducer ()
 

Private Attributes

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

Detailed Description

Definition at line 16 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().

11  {
12  edm::ParameterSet regionPSet = cfg.getParameter<edm::ParameterSet>("RegionPSet");
13 
14  thePtMin = regionPSet.getParameter<double>("ptMin");
15  theOriginRadius = regionPSet.getParameter<double>("originRadius");
16  theOriginHalfLength = regionPSet.getParameter<double>("originHalfLength");
17  theOrigin = GlobalPoint(regionPSet.getParameter<double>("originXPos"),
18  regionPSet.getParameter<double>("originYPos"),
19  regionPSet.getParameter<double>("originZPos"));
20 }
T getParameter(std::string const &) const
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
L1MuonRegionProducer::~L1MuonRegionProducer ( )
inline

Definition at line 19 of file L1MuonRegionProducer.h.

19 {}

Member Function Documentation

std::vector< std::unique_ptr< TrackingRegion > > L1MuonRegionProducer::regions ( ) const

Definition at line 28 of file L1MuonRegionProducer.cc.

References funct::cos(), PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, L1MuonPixelTrackFitter::getBending(), L1MuonPixelTrackFitter::getBendingError(), mps_fire::result, and funct::sin().

28  {
29  double dx = cos(thePhiL1);
30  double dy = sin(thePhiL1);
31  double dz = sinh(theEtaL1);
32  GlobalVector direction(dx, dy, dz); // muon direction
33 
34  std::vector<std::unique_ptr<TrackingRegion> > result;
36  bending = fabs(bending);
38 
39  result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
40  direction, theOrigin, thePtMin, theOriginRadius, theOriginHalfLength, 0.15, bending + 3 * errBending));
41 
42  return result;
43 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
static double getBendingError(double invPt, double eta)
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
static double getBending(double invPt, double eta, int charge)
void L1MuonRegionProducer::setL1Constraint ( const L1MuGMTCand muon)

Definition at line 22 of file L1MuonRegionProducer.cc.

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

22  {
23  thePhiL1 = muon.phiValue() + 0.021817;
24  theEtaL1 = muon.etaValue();
25  theChargeL1 = muon.charge();
26 }
float etaValue() const
Definition: L1MuGMTCand.cc:102
float phiValue() const
Definition: L1MuGMTCand.cc:92
int charge() const
get charge (+1 -1)
Definition: L1MuGMTCand.h:132

Member Data Documentation

int L1MuonRegionProducer::theChargeL1
private

Definition at line 30 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::theEtaL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

GlobalPoint L1MuonRegionProducer::theOrigin
private

Definition at line 26 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::theOriginHalfLength
private

Definition at line 25 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::theOriginRadius
private

Definition at line 25 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::thePhiL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::thePtL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

double L1MuonRegionProducer::thePtMin
private

Definition at line 25 of file L1MuonRegionProducer.h.