|
void | analyze (const edm::Event &event, const edm::EventSetup &es) override |
|
void | beginJob () override |
|
| PatVertexAnalyzer (const edm::ParameterSet ¶ms) |
| constructor and destructor More...
|
|
| ~PatVertexAnalyzer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 26 of file PatVertexAnalyzer.cc.
Definition at line 80 of file PatVertexAnalyzer.cc.
References DEFINE_FWK_MODULE, genParticlesToken_, nTracks_, nVertices_, MetAnalyzer::pv(), srcToken_, reco::Vertex::tracksSize(), reco::Vertex::x(), x_, xDelta_, xErr_, reco::Vertex::xError(), xPull_, reco::Vertex::y(), y_, yDelta_, yErr_, reco::Vertex::yError(), yPull_, reco::Vertex::z(), z_, zDelta_, zErr_, reco::Vertex::zError(), and zPull_.
97 if (!pvHandle->empty()) {
edm::EDGetTokenT< reco::GenParticleCollection > genParticlesToken_
double zError() const
error on z
double y() const
y coordinate
edm::EDGetTokenT< reco::VertexCollection > srcToken_
double z() const
z coordinate
double x() const
x coordinate
double xError() const
error on x
XYZPointD XYZPoint
point in space with cartesian internal representation
double yError() const
error on y
size_t tracksSize() const
number of tracks
void PatVertexAnalyzer::beginJob |
( |
void |
| ) |
|
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 58 of file PatVertexAnalyzer.cc.
References TFileService::make(), nTracks_, nVertices_, x_, xDelta_, xErr_, xPull_, y_, yDelta_, yErr_, yPull_, z_, zDelta_, zErr_, and zPull_.
64 nVertices_ = fs->
make<TH1F>(
"nVertices",
"number of reconstructed primary vertices", 50, 0, 50);
65 nTracks_ = fs->
make<TH1F>(
"nTracks",
"number of tracks at primary vertex", 100, 0, 300);
66 x_ = fs->
make<TH1F>(
"pvX",
"primary vertex x", 100, -0.1, 0.1);
67 y_ = fs->make<TH1F>(
"pvY",
"primary vertex y", 100, -0.1, 0.1);
68 z_ = fs->make<TH1F>(
"pvZ",
"primary vertex z", 100, -30, 30);
69 xErr_ = fs->make<TH1F>(
"pvErrorX",
"primary vertex x error", 100, 0, 0.005);
70 yErr_ = fs->make<TH1F>(
"pvErrorY",
"primary vertex y error", 100, 0, 0.005);
71 zErr_ = fs->make<TH1F>(
"pvErrorZ",
"primary vertex z error", 100, 0, 0.01);
72 xDelta_ = fs->make<TH1F>(
"pvDeltaX",
"x shift wrt simulated vertex", 100, -0.01, 0.01);
73 yDelta_ = fs->make<TH1F>(
"pvDeltaY",
"y shift wrt simulated vertex", 100, -0.01, 0.01);
74 zDelta_ = fs->make<TH1F>(
"pvDeltaZ",
"z shift wrt simulated vertex", 100, -0.02, 0.02);
75 xPull_ = fs->make<TH1F>(
"pvPullX",
"primary vertex x pull", 100, -5, 5);
76 yPull_ = fs->make<TH1F>(
"pvPullY",
"primary vertex y pull", 100, -5, 5);
77 zPull_ = fs->make<TH1F>(
"pvPullZ",
"primary vertex z pull", 100, -5, 5);
T * make(const Args &...args) const
make new ROOT object