8 physicsCollision_(
false),
12 useForVertexReco_(
false),
13 nLayersWithStubs_(0) {}
16 : trackingParticle_(tpPtr), settings_(&settings) {
49 const int maxLayerID(30);
50 std::vector<bool> foundLayers(maxLayerID,
false);
55 if ((!onlyPS) || stub.psModule()) {
56 int layerID = stub.layerId();
57 if (layerID >= 0 && layerID < maxLayerID) {
58 foundLayers[layerID] =
true;
67 if ((!onlyPS) || stub.psModule()) {
68 int layerID = (
int)((stub.r() - trackerInnerRadius) / layerIDfromRadiusBin);
69 if (layerID >= 0 && layerID < maxLayerID) {
70 foundLayers[layerID] =
true;
78 unsigned int ncount = 0;
79 for (
const bool&
found : foundLayers) {
TrackingParticlePtr trackingParticle_
double trackerInnerRadius() const
unsigned int nLayersWithStubs_
unsigned int countLayers(bool onlyPS=false)
const TrackingParticleSelector & tpsUseForVtxReco() const
double layerIDfromRadiusBin() const
const std::vector< SimTrack > & g4Tracks() const
void setMatchingStubs(const std::vector< Stub > &vMatchingStubs)
const AnalysisSettings * settings_
void fillUseForVertexReco()
std::vector< Stub > assocStubs_
const TrackingParticleSelector & tpsUse() const
const TrackingParticleSelector & tpsUseForEff() const
T const * get() const
Returns C++ pointer to the item.
unsigned int genMinStubLayers() const