Public Types | |
typedef std::vector< std::pair < TrackCandidate, std::pair < reco::TrackRef, reco::TrackRef > > > | CandidateToDuplicate |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
DuplicateTrackMerger (const edm::ParameterSet &iPara) | |
constructor More... | |
virtual | ~DuplicateTrackMerger () |
destructor More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
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 |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
produce one event More... | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Attributes | |
std::string | dbFileName_ |
MVA weights file. More... | |
const GBRForest * | forest_ |
MVA discriminator. More... | |
std::string | forestLabel_ |
float * | gbrVals_ |
edm::ESHandle< MagneticField > | magfield_ |
double | maxDCA_ |
max distance between two tracks at closest approach More... | |
double | maxDdsz_ |
max difference in longitudinal impact parameter between two tracks More... | |
double | maxDdxy_ |
max difference in transverse impact parameter between two tracks More... | |
double | maxDLambda_ |
max difference in Lambda between two tracks More... | |
double | maxDPhi_ |
max difference in phi between two tracks More... | |
double | maxDQoP_ |
max difference in q/p between two tracks More... | |
TrackMerger | merger_ |
Merger. More... | |
double | minBDTG_ |
minBDTG cut value More... | |
double | minDeltaR3d_ |
minDeltaR3d cut value More... | |
double | minP_ |
min p cut value More... | |
double | minpT_ |
min pT cut value More... | |
float | tmva_d3dr_ |
float | tmva_d3dz_ |
float | tmva_ddsz_ |
MVA input variables. More... | |
float | tmva_ddxy_ |
float | tmva_dlambda_ |
float | tmva_dphi_ |
float | tmva_dqoverp_ |
float | tmva_inner_nMissingOuter_ |
float | tmva_outer_nMissingInner_ |
edm::EDGetTokenT < reco::TrackCollection > | trackSource_ |
track input collection More... | |
bool | useForestFromDB_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
selects pairs of tracks that should be single tracks
Definition at line 33 of file DuplicateTrackMerger.cc.
typedef std::vector<std::pair<TrackCandidate,std::pair<reco::TrackRef,reco::TrackRef> > > DuplicateTrackMerger::CandidateToDuplicate |
Definition at line 40 of file DuplicateTrackMerger.cc.
|
explicit |
constructor
Definition at line 107 of file DuplicateTrackMerger.cc.
References dbFileName_, edm::ParameterSet::exists(), forestLabel_, gbrVals_, edm::ParameterSet::getParameter(), maxDCA_, maxDdsz_, maxDdxy_, maxDLambda_, maxDPhi_, maxDQoP_, minBDTG_, minDeltaR3d_, minP_, minpT_, AlCaHLTBitMon_QueryRunRegistry::string, trackSource_, and useForestFromDB_.
|
virtual |
destructor
Definition at line 161 of file DuplicateTrackMerger.cc.
References forest_, gbrVals_, and useForestFromDB_.
|
overrideprotectedvirtual |
produce one event
Implements edm::stream::EDProducerBase.
Definition at line 170 of file DuplicateTrackMerger.cc.
References reco::TrackBase::charge(), CommonMethods::cp(), dbFileName_, forest_, forestLabel_, gbrVals_, edm::EventSetup::get(), edm::Event::getByToken(), GBRForest::GetClassifier(), patZpeak::handle, reco::TrackBase::hitPattern(), i, TrackMerger::init(), trajectoryStateTransform::innerFreeState(), reco::Track::innerMomentum(), reco::Track::innerPosition(), TrajectoryStateClosestToPoint::isValid(), j, M_PI, PV3DBase< T, PVType, FrameType >::mag(), mag(), magfield_, maxDCA_, maxDdsz_, maxDdxy_, maxDLambda_, maxDPhi_, maxDQoP_, TrackMerger::merge(), merger_, minBDTG_, minDeltaR3d_, minP_, minpT_, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, FreeTrajectoryState::momentum(), TrajectoryStateClosestToPoint::momentum(), reco::HitPattern::numberOfLostHits(), trajectoryStateTransform::outerFreeState(), reco::Track::outerPosition(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), funct::pow(), edm::ESHandle< class >::product(), TrajectoryStateClosestToPoint::pt(), edm::Event::put(), FreeTrajectoryState::signedInverseMomentum(), mathSSE::sqrt(), TrajectoryStateClosestToPoint::theState(), PV3DBase< T, PVType, FrameType >::theta(), tmva_d3dr_, tmva_d3dz_, tmva_ddsz_, tmva_ddxy_, tmva_dlambda_, tmva_dphi_, tmva_dqoverp_, tmva_inner_nMissingOuter_, tmva_outer_nMissingInner_, trackSource_, useForestFromDB_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
MVA weights file.
Definition at line 66 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
MVA discriminator.
Definition at line 48 of file DuplicateTrackMerger.cc.
Referenced by produce(), and ~DuplicateTrackMerger().
|
private |
Definition at line 68 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 61 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), produce(), and ~DuplicateTrackMerger().
|
private |
Definition at line 90 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
max distance between two tracks at closest approach
Definition at line 78 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in longitudinal impact parameter between two tracks
Definition at line 86 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in transverse impact parameter between two tracks
Definition at line 84 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in Lambda between two tracks
Definition at line 82 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in phi between two tracks
Definition at line 80 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in q/p between two tracks
Definition at line 88 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
|
private |
minBDTG cut value
Definition at line 72 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
minDeltaR3d cut value
Definition at line 70 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
min p cut value
Definition at line 76 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
min pT cut value
Definition at line 74 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 56 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 57 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
MVA input variables.
Definition at line 51 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 52 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 54 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 53 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 55 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 59 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
Definition at line 58 of file DuplicateTrackMerger.cc.
Referenced by produce().
|
private |
track input collection
Definition at line 64 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 67 of file DuplicateTrackMerger.cc.
Referenced by DuplicateTrackMerger(), produce(), and ~DuplicateTrackMerger().