|
| FFTJetVertexAdder (const edm::ParameterSet &) |
|
| ~FFTJetVertexAdder () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Description: adds a collection of fake vertices to the event record
Implementation: [Notes on implementation]
Definition at line 45 of file FFTJetVertexAdder.cc.
Implements edm::EDProducer.
Definition at line 126 of file FFTJetVertexAdder.cc.
References addExistingVertices, beamSpotToken, chi2, errX, errY, errZ, existingVerticesToken, fixedX, fixedY, fixedZ, edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), i, edm::HandleBase::isValid(), j, nDof, nVerticesToMake, outputLabel, position, edm::Event::put(), sigmaX, sigmaY, sigmaZ, edm::Event::streamID(), and useBeamSpot.
149 <<
"ERROR in FFTJetVertexAdder:"
150 " could not find beam spot information"
153 xmean = beamSpotHandle->x0();
154 ymean = beamSpotHandle->y0();
155 zmean = beamSpotHandle->z0();
157 xwidth = beamSpotHandle->BeamWidthX();
158 ywidth = beamSpotHandle->BeamWidthY();
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);
const std::string outputLabel
const bool addExistingVertices
bool getByToken(EDGetToken token, Handle< PROD > &result) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::VertexCollection > existingVerticesToken
const unsigned nVerticesToMake
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
math::XYZPoint Point
point in the space
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &) const =0
Use this engine in event methods.
static int position[264][3]
StreamID streamID() const
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken