56 if(vertices1->size()==0)
57 LogError(
"HeavyIonVertexing") <<
"adaptive vertex collection is empty!" << endl;
59 if(vertices1->begin()->zError()<3) {
61 reco::VertexCollection::const_iterator vertex1 = vertices1->begin();
62 newVertexCollection->push_back(*vertex1);
64 LogInfo(
"HeavyIonVertexing") <<
"adaptive vertex:\n vz = ("
65 << vertex1->x() <<
", " << vertex1->y() <<
", " << vertex1->z() <<
")"
67 << vertex1->xError() <<
", " << vertex1->yError() <<
", "
68 << vertex1->zError() <<
")" << endl;
82 beamSpot = *beamSpotHandle;
86 if(vertices2->size() > 0) {
88 reco::VertexCollection::const_iterator vertex2 = vertices2->begin();
92 err(2,2)=
pow(vertex2->zError(),2);
95 newVertexCollection->push_back(newVertex);
97 LogInfo(
"HeavyIonVertexing") <<
"median vertex + beamspot: \n position = ("
98 << newVertex.x() <<
", " << newVertex.y() <<
", " << newVertex.z() <<
")"
100 << newVertex.xError() <<
", " << newVertex.yError() <<
", "
101 << newVertex.zError() <<
")" << endl;
111 newVertexCollection->push_back(newVertex);
113 LogInfo(
"HeavyIonVertexing") <<
"beam spot: \n position = ("
114 << newVertex.x() <<
", " << newVertex.y() <<
", " << newVertex.z() <<
")"
116 << newVertex.xError() <<
", " << newVertex.yError() <<
", "
117 << newVertex.zError() <<
")" << endl;
124 ev.
put(newVertexCollection);
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::InputTag theAdaptiveVertexCollection
edm::InputTag theMedianVertexCollection
edm::InputTag theBeamSpotTag
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
math::XYZPoint Point
point in the space
double BeamWidthX() const
beam width X
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
T const * product() const
double y0() const
y coordinate
const Point & position() const
position
Power< A, B >::type pow(const A &a, const B &b)
double x0() const
x coordinate