20 #include "CLHEP/Random/RandGauss.h"
40 #define init_param(type, varname) varname (ps.getParameter< type >( #varname ))
93 init_param(edm::InputTag, existingVerticesLabel),
142 <<
"ERROR in FFTJetVertexAdder:"
143 " could not find beam spot information"
146 xmean = beamSpotHandle->x0();
147 ymean = beamSpotHandle->y0();
148 zmean = beamSpotHandle->z0();
150 xwidth = beamSpotHandle->BeamWidthX();
151 ywidth = beamSpotHandle->BeamWidthY();
152 zwidth = beamSpotHandle->sigmaZ();
156 for (
unsigned i=0;
i<3; ++
i)
157 for (
unsigned j=0;
j<3; ++
j)
165 const double x0 = (*rGauss_)(xmean, xwidth);
166 const double y0 = (*rGauss_)(ymean, ywidth);
167 const double z0 = (*rGauss_)(zmean, zwidth);
174 typedef reco::VertexCollection::const_iterator IV;
180 <<
"ERROR in FFTJetVertexAdder:"
181 " could not find existing collection of vertices"
184 const IV vertend(vertices->end());
185 for (IV iv=vertices->begin(); iv!=vertend; ++iv)
186 pOutput->push_back(*iv);
201 <<
"ERROR in FFTJetVertexAdder:"
202 " failed to initialize the random number generator"
const std::string outputLabel
const bool addExistingVertices
#define DEFINE_FWK_MODULE(type)
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
#define init_param(type, varname)
static int position[TOTALCHAMBERS][3]
const unsigned nVerticesToMake
const edm::InputTag beamSpotLabel
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
math::XYZPoint Point
point in the space
const edm::InputTag existingVerticesLabel
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void produce(edm::Event &, const edm::EventSetup &) override
FFTJetVertexAdder & operator=(const FFTJetVertexAdder &)
CLHEP::RandGauss * rGauss_