20 #include "CLHEP/Random/RandGauss.h" 40 #define init_param(type, varname) varname (ps.getParameter< type >( #varname )) 133 auto pOutput = std::make_unique<reco::VertexCollection>();
149 <<
"ERROR in FFTJetVertexAdder:" 150 " could not find beam spot information" 153 xmean = beamSpotHandle->
x0();
154 ymean = beamSpotHandle->
y0();
155 zmean = beamSpotHandle->
z0();
159 zwidth = beamSpotHandle->
sigmaZ();
163 for (
unsigned i=0;
i<3; ++
i)
164 for (
unsigned j=0; j<3; ++j)
172 const double x0 = rGauss(xmean, xwidth);
173 const double y0 = rGauss(ymean, ywidth);
174 const double z0 = rGauss(zmean, zwidth);
181 typedef reco::VertexCollection::const_iterator IV;
187 <<
"ERROR in FFTJetVertexAdder:" 188 " could not find existing collection of vertices" 191 const IV vertend(vertices->end());
192 for (IV iv=vertices->begin(); iv!=vertend; ++iv)
193 pOutput->push_back(*iv);
206 <<
"ERROR in FFTJetVertexAdder:" 207 " failed to initialize the random number generator" double z0() const
z coordinate
const std::string outputLabel
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const bool addExistingVertices
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
math::Error< dimension >::type Error
covariance error matrix (3x3)
#define init_param(type, varname)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
edm::EDGetTokenT< reco::VertexCollection > existingVerticesToken
const unsigned nVerticesToMake
const edm::InputTag beamSpotLabel
FFTJetVertexAdder & operator=(const FFTJetVertexAdder &)=delete
math::XYZPoint Point
point in the space
double BeamWidthX() const
beam width X
const edm::InputTag existingVerticesLabel
~FFTJetVertexAdder() override
void produce(edm::Event &, const edm::EventSetup &) override
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
static int position[264][3]
StreamID streamID() const
double y0() const
y coordinate
FFTJetVertexAdder()=delete
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken
double x0() const
x coordinate