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::L1MuonRegionProducer ( const edm::ParameterSet cfg)

Definition at line 11 of file L1MuonRegionProducer.cc.

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 }

References looper::cfg, and edm::ParameterSet::getParameter().

◆ ~L1MuonRegionProducer()

L1MuonRegionProducer::~L1MuonRegionProducer ( )
inline

Definition at line 19 of file L1MuonRegionProducer.h.

19 {}

Member Function Documentation

◆ regions()

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

Definition at line 28 of file L1MuonRegionProducer.cc.

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 }

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

◆ setL1Constraint()

void L1MuonRegionProducer::setL1Constraint ( const L1MuGMTCand muon)

Definition at line 22 of file L1MuonRegionProducer.cc.

22  {
23  thePhiL1 = muon.phiValue() + 0.021817;
24  theEtaL1 = muon.etaValue();
25  theChargeL1 = muon.charge();
26 }

Member Data Documentation

◆ theChargeL1

int L1MuonRegionProducer::theChargeL1
private

Definition at line 30 of file L1MuonRegionProducer.h.

◆ theEtaL1

double L1MuonRegionProducer::theEtaL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

◆ theOrigin

GlobalPoint L1MuonRegionProducer::theOrigin
private

Definition at line 26 of file L1MuonRegionProducer.h.

◆ theOriginHalfLength

double L1MuonRegionProducer::theOriginHalfLength
private

Definition at line 25 of file L1MuonRegionProducer.h.

◆ theOriginRadius

double L1MuonRegionProducer::theOriginRadius
private

Definition at line 25 of file L1MuonRegionProducer.h.

◆ thePhiL1

double L1MuonRegionProducer::thePhiL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

◆ thePtL1

double L1MuonRegionProducer::thePtL1
private

Definition at line 29 of file L1MuonRegionProducer.h.

◆ thePtMin

double L1MuonRegionProducer::thePtMin
private

Definition at line 25 of file L1MuonRegionProducer.h.

Vector3DBase
Definition: Vector3DBase.h:8
L1MuonRegionProducer::thePtMin
double thePtMin
Definition: L1MuonRegionProducer.h:25
muon
Definition: MuonCocktails.h:17
L1MuonRegionProducer::theEtaL1
double theEtaL1
Definition: L1MuonRegionProducer.h:29
L1MuonRegionProducer::thePhiL1
double thePhiL1
Definition: L1MuonRegionProducer.h:29
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
L1MuonPixelTrackFitter::getBending
static double getBending(double invPt, double eta, int charge)
Definition: L1MuonPixelTrackFitter.cc:755
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
L1MuonPixelTrackFitter::getBendingError
static double getBendingError(double invPt, double eta)
Definition: L1MuonPixelTrackFitter.cc:761
edm::ParameterSet
Definition: ParameterSet.h:47
L1MuonRegionProducer::theOriginHalfLength
double theOriginHalfLength
Definition: L1MuonRegionProducer.h:25
PVValHelper::dy
Definition: PVValidationHelpers.h:50
looper.cfg
cfg
Definition: looper.py:296
L1MuonRegionProducer::theOrigin
GlobalPoint theOrigin
Definition: L1MuonRegionProducer.h:26
PVValHelper::dz
Definition: PVValidationHelpers.h:51
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1MuonRegionProducer::theChargeL1
int theChargeL1
Definition: L1MuonRegionProducer.h:30
mps_fire.result
result
Definition: mps_fire.py:311
L1MuonRegionProducer::theOriginRadius
double theOriginRadius
Definition: L1MuonRegionProducer.h:25
PVValHelper::dx
Definition: PVValidationHelpers.h:49