39 int getContainedHits(
const std::vector<VertexHit> &hits,
double z0,
double &chi)
const;
65 inputTag_ (config.getParameter<edm::
InputTag>(
"inputTag")),
66 minZ_ (config.getParameter<double>(
"minZ")),
67 maxZ_ (config.getParameter<double>(
"maxZ")),
68 zStep_ (config.getParameter<double>(
"zStep")),
69 clusterPars_ (config.getParameter< std::vector<double> >(
"clusterPars")),
70 nhitsTrunc_ (config.getParameter<int>(
"nhitsTrunc")),
71 clusterTrunc_ (config.getParameter<double>(
"clusterTrunc"))
86 desc.
add<
double>(
"minZ",-20.0);
87 desc.
add<
double>(
"maxZ",20.05);
88 desc.
add<
double>(
"zStep",0.2);
89 std::vector<double>
temp; temp.push_back(0.0); temp.push_back(0.0045);
90 desc.
add<std::vector<double> >(
"clusterPars",
temp);
91 desc.
add<
int>(
"nhitsTrunc",150.);
92 desc.
add<
double>(
"clusterTrunc",2.0);
93 descriptions.
add(
"hltPixelClusterShapeFilter",desc);
124 std::vector<VertexHit> vhits;
136 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
137 bool pixelOnEdge =
false;
138 for(std::vector<SiPixelCluster::Pixel>::const_iterator pixel = pixels.begin();
139 pixel != pixels.end(); ++pixel) {
140 int pixelX = pixel->x;
141 int pixelY = pixel->y;
152 hit->localPosition().
y(),
153 hit->localPosition().
z());
158 vh.
w =
hit->cluster()->sizeY();
164 int nhits = 0, nhits_max = 0;
165 double chi = 0, chi_max = 1
e+9;
170 if(nhits > nhits_max) {
174 if(nhits >= nhits_max && chi < chi_max) {
181 int nbest=0, nminus=0, nplus=0;
186 double clusVtxQual=0.0;
187 if ((nminus+nplus)> 0)
188 clusVtxQual = (2.0*nbest)/(nminus+nplus);
190 clusVtxQual = 1000.0;
204 if (clusVtxQual < polyCut) accept =
false;
217 for(std::vector<VertexHit>::const_iterator
hit = hits.begin();
hit!= hits.end();
hit++) {
218 double p = 2 * fabs(
hit->
z - z0)/
hit->r + 0.5;
219 if(fabs(p -
hit->w) <= 1.) {
220 chi += fabs(p -
hit->w);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
#define DEFINE_FWK_MODULE(type)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
int getContainedHits(const std::vector< VertexHit > &hits, double z0, double &chi) const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
virtual bool isItEdgePixelInX(int ixbin) const =0
std::vector< double > clusterPars_
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
data_type const * data(size_t cell) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
T const * product() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T const * product() const
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual bool isItEdgePixelInY(int iybin) const =0
HLTPixelClusterShapeFilter(const edm::ParameterSet &)
~HLTPixelClusterShapeFilter()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Power< A, B >::type pow(const A &a, const B &b)
virtual const TrackerGeomDet * idToDet(DetId) const