#include <VertexSelector.hpp>
Inheritance diagram for caf_util::VertexSelector:

Public Member Functions | |
| VertexSelector (const char *name) | |
| ~VertexSelector () | |
| bool | processEvent (cafe::Event &event) |
| Called for every event. | |
| bool | selectObject (const TMBPrimaryVertex &vertex) |
| Abstract select method to be overridden by user. | |
| void | begin () |
| Called at beginning of processing. | |
Private Member Functions | |
| void | before (cafe::Collection< TMBPrimaryVertex > &from) |
| Called before the actual selection starts. | |
| ClassDef (VertexSelector, 0) | |
Private Attributes | |
| cafe::StatPointer | _stat |
| int | _nvsmax |
| float | _zmax |
| unsigned int | _ntracks |
| float | _dz_muon |
| std::string | _muonBranch |
| float | _dz_electron |
| std::string | _electronBranch |
| bool | _useEOPetrack |
| bool | _sort |
| cafe::Event * | _event |
| int | _nselected |
| cafe::Variables | _muvars |
| cafe::Variables | _emvars |
| TRefFinder | _finder |
Usage: add this processor to the controller Run processor, e.g.
cafe.Run ... VertexSelector(processor_name) ... You can change default behavior via configuration file.
Usage:
Required parameters: -.From: Name of the input vertex branch
Optional parameters:
Cuts (optional):
The following selectin is not working correctly at the moment with branches created by Muon and Electron Selctors (problem with TRef)
Definition at line 56 of file VertexSelector.hpp.
|
|
Definition at line 18 of file VertexSelector.cpp. References _dz_electron, _dz_muon, _electronBranch, _emvars, _finder, _muonBranch, _ntracks, _nvsmax, _sort, _useEOPetrack, _zmax, cafe::Variables::add(), cafe::SelectUserObjects< TMBPrimaryVertex >::addVariable(), cafe::Config::get(), cafe::Processor::name(), and caf_util::TRefFinder::SetVariablesTrack(). |
|
|
Definition at line 60 of file VertexSelector.hpp. |
|
|
Called before the actual selection starts. E.g. the input can be sorted here. Reimplemented from cafe::SelectUserObjects< TMBPrimaryVertex >. Definition at line 204 of file VertexSelector.cpp. References _sort, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), and cafe::Collection< T >::sort(). |
|
|
Called at beginning of processing.
Reimplemented from cafe::Processor. Definition at line 51 of file VertexSelector.cpp. References _finder, cafe::Processor::debug(), and caf_util::TRefFinder::setDebug(). |
|
||||||||||||
|
|
|
|
Called for every event.
Reimplemented from cafe::SelectUserObjects< TMBPrimaryVertex >. Definition at line 55 of file VertexSelector.cpp. References _event, _nselected, _nvsmax, _stat, cafe::StatPointer::EventSelected(), and cafe::EventBase::get(). |
|
|
Abstract select method to be overridden by user. Each object for which this method returns true will be put into the result branch, rejected objected will be put in the rejected object branch Implements cafe::SelectUserObjects< TMBPrimaryVertex >. Definition at line 75 of file VertexSelector.cpp. References _dz_electron, _dz_muon, _electronBranch, _emvars, _event, _finder, _muonBranch, _muvars, _nselected, _ntracks, _stat, _useEOPetrack, _zmax, cafe::Collection< T >::begin(), cafe::Processor::debug(), cafe::Collection< T >::end(), cafe::Processor::err(), TMBVector3::Eta(), cafe::StatPointer::EventSelected(), caf_util::TRefFinder::FindTrack(), cafe::EventBase::getCollection(), cafe::Processor::name(), TMBVertex::ntrack(), cafe::Processor::out(), TMBVector3::Phi(), TMBVector3::Pt(), cafe::Collection< T >::size(), TMBVertex::vz(), and TMBTrack::z(). |
|
|
Definition at line 76 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 74 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 77 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 85 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 81 of file VertexSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 86 of file VertexSelector.hpp. Referenced by begin(), selectObject(), and VertexSelector(). |
|
|
Definition at line 75 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 85 of file VertexSelector.hpp. Referenced by selectObject(). |
|
|
Definition at line 82 of file VertexSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 72 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 69 of file VertexSelector.hpp. Referenced by processEvent(), and VertexSelector(). |
|
|
Definition at line 79 of file VertexSelector.hpp. Referenced by before(), and VertexSelector(). |
|
|
Definition at line 67 of file VertexSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 78 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
|
|
Definition at line 71 of file VertexSelector.hpp. Referenced by selectObject(), and VertexSelector(). |
1.3.4