#include <PrimitiveCombiner.h>
Classes | |
struct | resolutions |
a struct useful for resulution info sharing More... | |
struct | results |
a struct for internal usage: store results More... | |
Public Member Functions | |
void | addDt (const TriggerPrimitive &prim) |
feed the combiner with the available primitives More... | |
void | addDtHI (const TriggerPrimitive &prim) |
void | addDtHO (const TriggerPrimitive &prim) |
void | addRpcIn (const TriggerPrimitive &prim) |
void | addRpcOut (const TriggerPrimitive &prim) |
int | bendingAngle () const |
int | bendingResol () const |
int | bx () const |
output result variables More... | |
void | combine () |
do combine the primitives More... | |
int | getUncorrelatedQuality16 () const |
int | getUncorrelatedQuality7 () const |
FIXME END. More... | |
bool | isValid () const |
valid if we have at least: 1 rpc; 1 dt + 1 any More... | |
float | phiBCombined (const float &xDt, const float &zDt, const float &xRpc, const float &zRpc) |
FIXME : Calculates new phiBending, check how to use. More... | |
float | phiBCombinedResol (const float &resol_xDt, const float &resol_xRpc, const float &zDt, const float &zRpc) |
FIXME END. More... | |
PrimitiveCombiner (const resolutions &res, edm::ESHandle< DTGeometry > &muonGeom) | |
int | radialAngle () const |
Private Member Functions | |
results | combineDt (const TriggerPrimitive *dt, const TriggerPrimitive *rpc) |
Calculates new phiBending, check how to use weights. More... | |
results | combineDtRpc (const TriggerPrimitive *dt, const TriggerPrimitive *rpc) |
Calculates new phiBending, check how to use weights. More... | |
results | combineRpcRpc (const TriggerPrimitive *rpc1, const TriggerPrimitive *rpc2) |
Calculates new phiBending, check how to use weights. More... | |
results | dummyCombineDt (const TriggerPrimitive *dt) |
int | radialAngleFromGlobalPhi (const TriggerPrimitive *rpc) |
Private Attributes | |
int | _bendingAngle |
int | _bendingResol |
int | _bx |
const TriggerPrimitive * | _dtHI |
const TriggerPrimitive * | _dtHO |
edm::ESHandle< DTGeometry > | _muonGeom |
int | _radialAngle |
resolutions | _resol |
const TriggerPrimitive * | _rpcIn |
const TriggerPrimitive * | _rpcOut |
Definition at line 25 of file PrimitiveCombiner.h.
|
explicit |
Definition at line 19 of file PrimitivesCombiner.cc.
void PrimitiveCombiner::addDt | ( | const TriggerPrimitive & | prim | ) |
feed the combiner with the available primitives
Definition at line 28 of file PrimitivesCombiner.cc.
References addDtHI(), addDtHO(), Exception, L1TMuon::TriggerPrimitive::getDTData(), and L1TMuon::TriggerPrimitive::DTData::qualityCode.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
void PrimitiveCombiner::addDtHI | ( | const TriggerPrimitive & | prim | ) |
Definition at line 43 of file PrimitivesCombiner.cc.
References _dtHI, and Exception.
Referenced by addDt().
void PrimitiveCombiner::addDtHO | ( | const TriggerPrimitive & | prim | ) |
Definition at line 54 of file PrimitivesCombiner.cc.
References _dtHO, and Exception.
Referenced by addDt().
void PrimitiveCombiner::addRpcIn | ( | const TriggerPrimitive & | prim | ) |
Definition at line 65 of file PrimitivesCombiner.cc.
References _rpcIn.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
void PrimitiveCombiner::addRpcOut | ( | const TriggerPrimitive & | prim | ) |
Definition at line 71 of file PrimitivesCombiner.cc.
References _rpcOut.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
|
inline |
Definition at line 56 of file PrimitiveCombiner.h.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
|
inline |
Definition at line 57 of file PrimitiveCombiner.h.
|
inline |
output result variables
Definition at line 54 of file PrimitiveCombiner.h.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
void PrimitiveCombiner::combine | ( | ) |
do combine the primitives
Definition at line 78 of file PrimitivesCombiner.cc.
References _bendingAngle, _bendingResol, _dtHI, _dtHO, _radialAngle, _rpcIn, _rpcOut, combineDt(), combineDtRpc(), combineRpcRpc(), L1TMuon::TriggerPrimitive::getDTData(), isValid(), L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TwinMux::PrimitiveCombiner::results::radialAngle, radialAngleFromGlobalPhi(), and mathSSE::sqrt().
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
|
private |
Calculates new phiBending, check how to use weights.
PhiB calculation : atan( (x2-x1)/(z2-z1) is the bending angle needs to be corrected w.r.t.the direction phi (4096 scale) and ported to 512 scale
positive chambers
Definition at line 173 of file PrimitivesCombiner.cc.
References _muonGeom, _resol, L1TwinMux::PrimitiveCombiner::results::bendingAngle, L1TwinMux::PrimitiveCombiner::results::bendingResol, L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getCMSGlobalPoint(), L1TMuon::TriggerPrimitive::getDTData(), phiBCombined(), phiBCombinedResol(), L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TwinMux::PrimitiveCombiner::results::radialAngle, L1TMuon::TriggerPrimitive::DTData::sector, GeomDet::toLocal(), L1TMuon::TriggerPrimitive::DTData::wheel, PV3DBase< T, PVType, FrameType >::x(), L1TwinMux::PrimitiveCombiner::resolutions::xDt, and PV3DBase< T, PVType, FrameType >::z().
Referenced by combine().
|
private |
Calculates new phiBending, check how to use weights.
Definition at line 226 of file PrimitivesCombiner.cc.
References _muonGeom, _resol, L1TwinMux::PrimitiveCombiner::results::bendingAngle, L1TwinMux::PrimitiveCombiner::results::bendingResol, L1TMuon::TriggerPrimitive::detId(), DTChamberId, L1TMuon::TriggerPrimitive::getCMSGlobalPoint(), L1TMuon::TriggerPrimitive::getDTData(), phiBCombined(), phiBCombinedResol(), L1TMuon::TriggerPrimitive::DTData::radialAngle, L1TwinMux::PrimitiveCombiner::results::radialAngle, relativeConstraints::ring, L1TMuon::TriggerPrimitive::DTData::sector, relativeConstraints::station, GeomDet::toLocal(), L1TMuon::TriggerPrimitive::DTData::wheel, PV3DBase< T, PVType, FrameType >::x(), L1TwinMux::PrimitiveCombiner::resolutions::xDt, L1TwinMux::PrimitiveCombiner::resolutions::xRpc, and PV3DBase< T, PVType, FrameType >::z().
Referenced by combine().
|
private |
Calculates new phiBending, check how to use weights.
Definition at line 297 of file PrimitivesCombiner.cc.
References _muonGeom, _resol, L1TwinMux::PrimitiveCombiner::results::bendingAngle, L1TwinMux::PrimitiveCombiner::results::bendingResol, L1TMuon::TriggerPrimitive::detId(), DTChamberId, L1TMuon::TriggerPrimitive::getCMSGlobalPoint(), phiBCombined(), phiBCombinedResol(), L1TwinMux::PrimitiveCombiner::results::radialAngle, radialAngleFromGlobalPhi(), relativeConstraints::ring, relativeConstraints::station, GeomDet::toLocal(), PV3DBase< T, PVType, FrameType >::x(), L1TwinMux::PrimitiveCombiner::resolutions::xRpc, and PV3DBase< T, PVType, FrameType >::z().
Referenced by combine().
|
private |
Definition at line 157 of file PrimitivesCombiner.cc.
References _resol, L1TMuon::TriggerPrimitive::DTData::bendingAngle, L1TwinMux::PrimitiveCombiner::results::bendingAngle, L1TwinMux::PrimitiveCombiner::results::bendingResol, L1TMuon::TriggerPrimitive::getDTData(), L1TwinMux::PrimitiveCombiner::resolutions::phibDtUnCorr, L1TMuon::TriggerPrimitive::DTData::radialAngle, and L1TwinMux::PrimitiveCombiner::results::radialAngle.
|
inline |
Definition at line 111 of file PrimitiveCombiner.h.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
|
inline |
FIXME END.
Definition at line 87 of file PrimitiveCombiner.h.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce().
|
inline |
valid if we have at least: 1 rpc; 1 dt + 1 any
Definition at line 60 of file PrimitiveCombiner.h.
References runTheMatrix::ret.
Referenced by combine(), L1ITMuonBarrelPrimitiveProducer::produce(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
FIXME : Calculates new phiBending, check how to use.
Definition at line 69 of file PrimitiveCombiner.h.
Referenced by combineDt(), combineDtRpc(), and combineRpcRpc().
|
inline |
FIXME END.
FIXME : Calculates new phiBending resolution
Definition at line 77 of file PrimitiveCombiner.h.
References mathSSE::sqrt().
Referenced by combineDt(), combineDtRpc(), and combineRpcRpc().
|
inline |
Definition at line 55 of file PrimitiveCombiner.h.
Referenced by L1ITMuonBarrelPrimitiveProducer::produce(), and radialAngleFromGlobalPhi().
|
private |
Definition at line 274 of file PrimitivesCombiner.cc.
References L1TMuon::TriggerPrimitive::detId(), L1TMuon::TriggerPrimitive::getCMSGlobalPhi(), Geom::pi(), and radialAngle().
Referenced by combine(), and combineRpcRpc().
|
private |
Definition at line 169 of file PrimitiveCombiner.h.
Referenced by combine().
|
private |
Definition at line 170 of file PrimitiveCombiner.h.
Referenced by combine().
|
private |
Definition at line 167 of file PrimitiveCombiner.h.
|
private |
Definition at line 172 of file PrimitiveCombiner.h.
|
private |
Definition at line 173 of file PrimitiveCombiner.h.
|
private |
Definition at line 165 of file PrimitiveCombiner.h.
Referenced by combineDt(), combineDtRpc(), and combineRpcRpc().
|
private |
Definition at line 168 of file PrimitiveCombiner.h.
Referenced by combine().
|
private |
Definition at line 164 of file PrimitiveCombiner.h.
Referenced by combineDt(), combineDtRpc(), combineRpcRpc(), and dummyCombineDt().
|
private |
Definition at line 174 of file PrimitiveCombiner.h.
Referenced by addRpcIn(), and combine().
|
private |
Definition at line 175 of file PrimitiveCombiner.h.
Referenced by addRpcOut(), and combine().