#include <L1MuonRegionProducer.h>
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 |
Definition at line 12 of file L1MuonRegionProducer.h.
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.
{}
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().
int L1MuonRegionProducer::theChargeL1 [private] |
Definition at line 27 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::theEtaL1 [private] |
Definition at line 27 of file L1MuonRegionProducer.h.
GlobalPoint L1MuonRegionProducer::theOrigin [private] |
Definition at line 24 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::theOriginHalfLength [private] |
Definition at line 23 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::theOriginRadius [private] |
Definition at line 23 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::thePhiL1 [private] |
Definition at line 27 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::thePtL1 [private] |
Definition at line 27 of file L1MuonRegionProducer.h.
double L1MuonRegionProducer::thePtMin [private] |
Definition at line 23 of file L1MuonRegionProducer.h.