#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 36 of file CSCHitFromWireOnly.h.
typedef std::vector<int> CSCHitFromWireOnly::ChannelContainer |
Definition at line 38 of file CSCHitFromWireOnly.h.
|
explicit |
Definition at line 20 of file CSCHitFromWireOnly.cc.
References deltaT, edm::ParameterSet::getParameter(), useReducedWireTime, wireTimeWindow_high, and wireTimeWindow_low.
CSCHitFromWireOnly::~CSCHitFromWireOnly | ( | ) |
Definition at line 29 of file CSCHitFromWireOnly.cc.
bool CSCHitFromWireOnly::addToCluster | ( | const CSCWireDigi & | digi | ) |
Definition at line 139 of file CSCHitFromWireOnly.cc.
References funct::abs(), deltaT, CSCWireDigi::getTimeBin(), CSCWireDigi::getWireGroup(), theLastChannel, theTime, and wire_cluster.
Referenced by runWire().
float CSCHitFromWireOnly::findWireHitPosition | ( | ) |
BX to WireHit
BX to WireHit
Definition at line 159 of file CSCHitFromWireOnly.cc.
References nano_mu_digi_cff::float, CSCWireDigi::getBXandWireGroup(), CSCWireDigi::getWireGroup(), mps_fire::i, wire_cluster, wire_in_cluster, wire_in_clusterAndBX, and y.
Referenced by runWire().
|
private |
Definition at line 180 of file CSCHitFromWireOnly.cc.
References CSCRecoConditions::badWireWord(), and recoConditions_.
Referenced by runWire().
void CSCHitFromWireOnly::makeWireCluster | ( | const CSCWireDigi & | digi | ) |
BX to wire
Definition at line 130 of file CSCHitFromWireOnly.cc.
References CSCWireDigi::getTimeBin(), CSCWireDigi::getWireGroup(), theLastChannel, theTime, wire_cluster, wire_in_cluster, and wire_in_clusterAndBX.
Referenced by runWire().
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 31 of file CSCHitFromWireOnly.cc.
References addToCluster(), findWireHitPosition(), CSCWireDigi::getWireGroup(), l1ctLayer2EG_cff::id, id_, isDeadWG(), nano_mu_digi_cff::layer, 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 47 of file CSCHitFromWireOnly.h.
References dt_dqm_sourceclient_common_cff::reco, and recoConditions_.
Referenced by CSCRecHitDBuilder::setConditions().
|
private |
To fill BX + wiregroup in CSCWireHit.
Definition at line 66 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), and CSCHitFromWireOnly().
CSCDetId CSCHitFromWireOnly::id_ |
Definition at line 52 of file CSCHitFromWireOnly.h.
Referenced by runWire().
const CSCLayer* CSCHitFromWireOnly::layer_ |
Definition at line 53 of file CSCHitFromWireOnly.h.
Referenced by runWire().
const CSCLayerGeometry* CSCHitFromWireOnly::layergeom_ |
Definition at line 54 of file CSCHitFromWireOnly.h.
Referenced by runWire().
|
private |
Hold pointer to current conditions data.
Definition at line 73 of file CSCHitFromWireOnly.h.
Referenced by isDeadWG(), and setConditions().
|
private |
Definition at line 63 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), and makeWireCluster().
|
private |
Definition at line 62 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), makeWireCluster(), and runWire().
|
private |
Definition at line 67 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().
|
private |
Definition at line 59 of file CSCHitFromWireOnly.h.
Referenced by addToCluster(), findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 60 of file CSCHitFromWireOnly.h.
Referenced by findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 64 of file CSCHitFromWireOnly.h.
Referenced by findWireHitPosition(), makeWireCluster(), and runWire().
|
private |
Definition at line 61 of file CSCHitFromWireOnly.h.
|
private |
Definition at line 69 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().
|
private |
Definition at line 68 of file CSCHitFromWireOnly.h.
Referenced by CSCHitFromWireOnly(), and runWire().