#include <CSCHitFromWireOnly.h>
Public Types | |
typedef std::vector< int > | ChannelContainer |
Public Member Functions | |
bool | addToCluster (const CSCWireDigi &digi) |
CSCHitFromWireOnly (const edm::ParameterSet &ps) | |
float | findWireHitPosition () |
void | makeWireCluster (const CSCWireDigi &digi) |
std::vector< CSCWireHit > | runWire (const CSCDetId &id, const CSCLayer *layer, const CSCWireDigiCollection::Range &rwired) |
void | setConditions (const CSCRecoConditions *reco) |
~CSCHitFromWireOnly () | |
Public Attributes | |
CSCDetId | id_ |
const CSCLayer * | layer_ |
const CSCLayerGeometry * | layergeom_ |
Private Member Functions | |
bool | isDeadWG (const CSCDetId &id, int WG) |
Private Attributes | |
int | deltaT |
To fill BX + wiregroup in CSCWireHit. More... | |
const CSCRecoConditions * | recoConditions_ |
Hold pointer to current conditions data. More... | |
int | theLastChannel |
int | theTime |
bool | useReducedWireTime |
std::vector< CSCWireDigi > | wire_cluster |
std::vector< int > | wire_in_cluster |
std::vector< int > | wire_in_clusterAndBX |
std::vector< float > | wire_spacing |
int | wireTimeWindow_high |
int | wireTimeWindow_low |
Search for hits within the wire groups. For each of these hits, try forming clusters by looking at adjacent wiregroup. Form a wire Hit out of these clusters by finding the center-of-mass position of the hit in terms of the wire #. The DetId, wire hit position, and peaking time are stored in a CSCWireHit collection.
To keep wire hits only so they can be used in segment building. Only the DetId and wiregroup # are stored in a CSCWireHit collection
Definition at line 37 of file CSCHitFromWireOnly.h.
typedef std::vector<int> CSCHitFromWireOnly::ChannelContainer |
Definition at line 41 of file CSCHitFromWireOnly.h.
|
explicit |
Definition at line 21 of file CSCHitFromWireOnly.cc.
References deltaT, edm::ParameterSet::getParameter(), useReducedWireTime, wireTimeWindow_high, and wireTimeWindow_low.
CSCHitFromWireOnly::~CSCHitFromWireOnly | ( | ) |
Definition at line 32 of file CSCHitFromWireOnly.cc.
bool CSCHitFromWireOnly::addToCluster | ( | const CSCWireDigi & | digi | ) |
Definition at line 154 of file CSCHitFromWireOnly.cc.
References funct::abs(), deltaT, CSCWireDigi::getTimeBin(), CSCWireDigi::getWireGroup(), theLastChannel, theTime, and wire_cluster.
Referenced by runWire(), and setConditions().
float CSCHitFromWireOnly::findWireHitPosition | ( | ) |
BX to WireHit
BX to WireHit
Definition at line 178 of file CSCHitFromWireOnly.cc.
References objects.autophobj::float, CSCWireDigi::getBXandWireGroup(), CSCWireDigi::getWireGroup(), mps_fire::i, wire_cluster, wire_in_cluster, wire_in_clusterAndBX, and y.
Referenced by runWire(), and setConditions().
|
private |
Definition at line 201 of file CSCHitFromWireOnly.cc.
References CSCRecoConditions::badWireWord(), and recoConditions_.
Referenced by runWire().
void CSCHitFromWireOnly::makeWireCluster | ( | const CSCWireDigi & | digi | ) |
BX to wire
Definition at line 144 of file CSCHitFromWireOnly.cc.
References CSCWireDigi::getTimeBin(), CSCWireDigi::getWireGroup(), theLastChannel, theTime, wire_cluster, wire_in_cluster, and wire_in_clusterAndBX.
Referenced by runWire(), and setConditions().
std::vector< CSCWireHit > CSCHitFromWireOnly::runWire | ( | const CSCDetId & | id, |
const CSCLayer * | layer, | ||
const CSCWireDigiCollection::Range & | rwired | ||
) |
BX
Print statement (!!!to control WireHit content!!!) BX
Definition at line 35 of file CSCHitFromWireOnly.cc.
References addToCluster(), findWireHitPosition(), CSCLayer::geometry(), CSCWireDigi::getWireGroup(), hcalTTPDigis_cfi::id, id_, isDeadWG(), layer_, layergeom_, makeWireCluster(), theTime, useReducedWireTime, wire_cluster, wire_in_cluster, wire_in_clusterAndBX, wireTimeWindow_high, and wireTimeWindow_low.
Referenced by CSCRecHitDBuilder::build().
|
inline |
Definition at line 49 of file CSCHitFromWireOnly.h.
References addToCluster(), findWireHitPosition(), makeWireCluster(), trackingPlots::reco, and recoConditions_.
Referenced by CSCRecHitDBuilder::setConditions().
|
private |
To fill BX + wiregroup in CSCWireHit.
Definition at line 70 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), and CSCHitFromWireOnly().
CSCDetId CSCHitFromWireOnly::id_ |
Definition at line 56 of file CSCHitFromWireOnly.h.
Referenced by runWire().
const CSCLayer* CSCHitFromWireOnly::layer_ |
Definition at line 57 of file CSCHitFromWireOnly.h.
Referenced by runWire().
const CSCLayerGeometry* CSCHitFromWireOnly::layergeom_ |
Definition at line 58 of file CSCHitFromWireOnly.h.
Referenced by runWire().
|
private |
Hold pointer to current conditions data.
Definition at line 77 of file CSCHitFromWireOnly.h.
Referenced by isDeadWG(), and setConditions().
|
private |
Definition at line 67 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), and makeWireCluster().
|
private |
Definition at line 66 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), makeWireCluster(), and runWire().
|
private |
Definition at line 71 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().
|
private |
Definition at line 63 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 64 of file CSCHitFromWireOnly.h.
Referenced by findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 68 of file CSCHitFromWireOnly.h.
Referenced by findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 65 of file CSCHitFromWireOnly.h.
|
private |
Definition at line 73 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().
|
private |
Definition at line 72 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().