10 if (graph.GetN() >= 1) {
11 name_ = graph.GetName();
15 for (
int iPoint = 0; iPoint <
numPoints_; ++iPoint) {
16 Double_t xPoint, yPoint;
17 graph.GetPoint(iPoint, xPoint, yPoint);
25 if (numPoints_ >= 1) {
26 TGraph graph(numPoints_);
27 graph.SetName(name_.data());
28 for (
int iPoint = 0; iPoint < numPoints_; ++iPoint) {
29 graph.SetPoint(iPoint, x_[iPoint], y_[iPoint]);
33 throw cms::Exception(
"PhysicsTGraphPayload") <<
"Invalid TGraph object !!\n";
38 stream <<
"<PhysicsTGraphPayload::print (name = " <<
name_ <<
")>:" << std::endl;
39 for (
int iPoint = 0; iPoint <
numPoints_; ++iPoint) {
40 stream <<
"point #" << iPoint <<
": x = " <<
x_[iPoint] <<
", y = " <<
y_[iPoint] << std::endl;
PhysicsTGraphPayload()
default constructor
void print(std::ostream &stream) const
print points of TGraph object
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream