|
| 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 |
|
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 122 of file FFTJetVertexAdder.cc.
References addExistingVertices, beamSpotLabel, chi2, errX, errY, errZ, existingVerticesLabel, fixedX, fixedY, fixedZ, edm::Event::getByLabel(), i, edm::HandleBase::isValid(), j, nDof, nVerticesToMake, outputLabel, position, edm::Event::put(), sigmaX, sigmaY, sigmaZ, and useBeamSpot.
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);
const std::string outputLabel
const bool addExistingVertices
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const