#include <CSCMake2DRecHit.h>
Public Member Functions | |
CSCMake2DRecHit (const edm::ParameterSet &) | |
float | findWireBx (const std::vector< int > &timeBinsOn, float tpeak, const CSCDetId &id) |
CSCRecHit2D | hitFromStripAndWire (const CSCDetId &id, const CSCLayer *layer, const CSCWireHit &wHit, const CSCStripHit &sHit) |
Make 2D hits when have both wire and strip hit available in same layer. More... | |
bool | isHitInFiducial (const CSCLayer *layer, const CSCRecHit2D &rh) |
Test if rechit is in fiducial volume. More... | |
void | setConditions (const CSCRecoConditions *reco) |
Pass pointer to conditions data onwards. More... | |
~CSCMake2DRecHit () | |
Public Attributes | |
CSCDetId | id_ |
const CSCLayer * | layer_ |
const CSCLayerGeometry * | layergeom_ |
const CSCChamberSpecs * | specs_ |
Private Attributes | |
float | maxGattiChi2 |
const std::auto_ptr < CSCFindPeakTime > | peakTimeFinder_ |
const CSCRecoConditions * | recoConditions_ |
int | stripWireDeltaTime |
bool | useCalib |
bool | useGasGainCorrections |
bool | useGatti |
bool | useTimingCorrections |
CSCXonStrip_MatchGatti * | xMatchGatti_ |
The overlap between strip hits and wire hits is used to determined 2D RecHit. For layers where only strip or wire hits are present, pseudo 2D hits are formed.
Definition at line 30 of file CSCMake2DRecHit.h.
|
explicit |
Definition at line 25 of file CSCMake2DRecHit.cc.
References edm::ParameterSet::getParameter(), stripWireDeltaTime, useCalib, useGasGainCorrections, useTimingCorrections, and xMatchGatti_.
CSCMake2DRecHit::~CSCMake2DRecHit | ( | ) |
float CSCMake2DRecHit::findWireBx | ( | const std::vector< int > & | timeBinsOn, |
float | tpeak, | ||
const CSCDetId & | id | ||
) |
Definition at line 301 of file CSCMake2DRecHit.cc.
References funct::abs(), CSCRecoConditions::anodeBXoffset(), deltar::bestMatch(), diffTreeTool::diff, j, and recoConditions_.
Referenced by hitFromStripAndWire().
CSCRecHit2D CSCMake2DRecHit::hitFromStripAndWire | ( | const CSCDetId & | id, |
const CSCLayer * | layer, | ||
const CSCWireHit & | wHit, | ||
const CSCStripHit & | sHit | ||
) |
Make 2D hits when have both wire and strip hit available in same layer.
Correct the 3x3 ADC sum into the energy deposited in the layer. Note: this correction will give you dE. In order to get the dE/dX, you will need to divide by the path length... If the algorithm to compute the corrected energy fails, flag it by a specific nonsense value: If the user has chosen not to use the gas gain correction —> -998. If the gas gain correction from the database is a bad value -> -997. If it is an edge strip -----------—————————> -996. If gas-gain is OK, but the ADC vector is the wrong size -—> -999. If the user has created the Rechit without the energy deposit> -995.
store rechit
Retrive the L1APhase+strips combination
L1A
Retrive the Bx + wgroups combination
BX
L1A;
BX
To see RecHit content (L1A feature included) (to be commented out)
Definition at line 43 of file CSCMake2DRecHit.cc.
References ecalMGPA::adc(), CSCLayer::chamber(), CSCRecoConditions::chamberTimingCorrection(), CSCRecoConditions::chipCorrection(), CSCStripHit::deadStrip(), CSCWireHit::deadWG(), f, findWireBx(), CSCXonStrip_MatchGatti::findXOnStrip(), CSCRecoConditions::gasGainCorrection(), CSCLayer::geometry(), CSCDetId::iChamberType(), id_, CSCLayerGeometry::inside(), relval_steps::k, layer_, layergeom_, CSCLayerGeometry::localError(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), CSCLayerGeometry::middleWireOfGroup(), CSCChamberSpecs::nStrips(), CSCLayerGeometry::numberOfWiresPerGroup(), peakTimeFinder_, position, edm::RangeMap< ID, C, P >::put(), HLT_25ns14e33_v1_cff::quality, recoConditions_, CSCStripHit::s_adc(), CSCStripHit::s_adcRaw(), funct::sin(), edm::RangeMap< ID, C, P >::size(), CSCChamber::specs(), specs_, CSCLayerGeometry::stripAngle(), CSCLayerGeometry::stripPitch(), RecoTauPiZeroBuilderPlugins_cfi::strips, CSCStripHit::strips(), CSCStripHit::stripsl1a(), CSCStripHit::stripsTotal(), CSCLayerGeometry::stripWireIntersection(), tree::t, CSCWireHit::timeBinsOn(), tmax, CSCStripHit::tmax(), GeomDet::toGlobal(), useGasGainCorrections, useTimingCorrections, CSCWireHit::wgroups(), CSCWireHit::wgroupsBXandWire(), PV3DBase< T, PVType, FrameType >::x(), xMatchGatti_, PV3DBase< T, PVType, FrameType >::y(), CSCLayerGeometry::yOfWire(), and CSCLayerGeometry::yResolution().
Referenced by CSCRecHitDBuilder::build().
bool CSCMake2DRecHit::isHitInFiducial | ( | const CSCLayer * | layer, |
const CSCRecHit2D & | rh | ||
) |
Test if rechit is in fiducial volume.
Definition at line 278 of file CSCMake2DRecHit.cc.
References CSCLayer::geometry(), CSCLayerGeometry::inside(), layergeom_, and CSCRecHit2D::localPosition().
Referenced by CSCRecHitDBuilder::build().
void CSCMake2DRecHit::setConditions | ( | const CSCRecoConditions * | reco | ) |
Pass pointer to conditions data onwards.
Definition at line 295 of file CSCMake2DRecHit.cc.
References dt_dqm_sourceclient_common_cff::reco, recoConditions_, CSCXonStrip_MatchGatti::setConditions(), and xMatchGatti_.
Referenced by CSCRecHitDBuilder::setConditions().
CSCDetId CSCMake2DRecHit::id_ |
Definition at line 54 of file CSCMake2DRecHit.h.
Referenced by hitFromStripAndWire().
const CSCLayer* CSCMake2DRecHit::layer_ |
Definition at line 51 of file CSCMake2DRecHit.h.
Referenced by hitFromStripAndWire().
const CSCLayerGeometry* CSCMake2DRecHit::layergeom_ |
Definition at line 52 of file CSCMake2DRecHit.h.
Referenced by hitFromStripAndWire(), and isHitInFiducial().
|
private |
Definition at line 63 of file CSCMake2DRecHit.h.
|
private |
Definition at line 70 of file CSCMake2DRecHit.h.
Referenced by hitFromStripAndWire().
|
private |
Definition at line 68 of file CSCMake2DRecHit.h.
Referenced by findWireBx(), hitFromStripAndWire(), and setConditions().
const CSCChamberSpecs* CSCMake2DRecHit::specs_ |
Definition at line 53 of file CSCMake2DRecHit.h.
Referenced by hitFromStripAndWire().
|
private |
Definition at line 61 of file CSCMake2DRecHit.h.
Referenced by CSCMake2DRecHit().
|
private |
Definition at line 58 of file CSCMake2DRecHit.h.
Referenced by CSCMake2DRecHit().
|
private |
Definition at line 60 of file CSCMake2DRecHit.h.
Referenced by CSCMake2DRecHit(), and hitFromStripAndWire().
|
private |
Definition at line 62 of file CSCMake2DRecHit.h.
|
private |
Definition at line 59 of file CSCMake2DRecHit.h.
Referenced by CSCMake2DRecHit(), and hitFromStripAndWire().
|
private |
Definition at line 65 of file CSCMake2DRecHit.h.
Referenced by CSCMake2DRecHit(), hitFromStripAndWire(), setConditions(), and ~CSCMake2DRecHit().