#include <DuplicateTrackMerger.h>
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 |
Protected Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
produce one event More... | |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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... | |
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) |
Definition at line 34 of file DuplicateTrackMerger.h.
typedef std::vector<std::pair<TrackCandidate,std::pair<reco::TrackRef,reco::TrackRef> > > reco::modules::DuplicateTrackMerger::CandidateToDuplicate |
Definition at line 41 of file DuplicateTrackMerger.h.
|
explicit |
constructor
Definition at line 16 of file DuplicateTrackMerger.cc.
References dbFileName_, edm::ParameterSet::exists(), forest_, 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 71 of file DuplicateTrackMerger.cc.
References forest_, gbrVals_, and useForestFromDB_.
|
overrideprotectedvirtual |
produce one event
Implements edm::stream::EDProducerBase.
Definition at line 80 of file DuplicateTrackMerger.cc.
References reco::TrackBase::charge(), CommonMethods::cp(), dbFileName_, forest_, forestLabel_, gbrVals_, edm::EventSetup::get(), edm::Event::getByToken(), GBRForest::GetClassifier(), patZpeak::handle, 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_, FreeTrajectoryState::momentum(), TrajectoryStateClosestToPoint::momentum(), reco::HitPattern::numberOfLostHits(), trajectoryStateTransform::outerFreeState(), reco::Track::outerPosition(), PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), funct::pow(), edm::ESHandle< class >::product(), TrajectoryStateClosestToPoint::pt(), edm::Event::put(), FreeTrajectoryState::signedInverseMomentum(), mathSSE::sqrt(), reco::t2, 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_, reco::TrackBase::trackerExpectedHitsInner(), reco::TrackBase::trackerExpectedHitsOuter(), 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 67 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
MVA discriminator.
Definition at line 49 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), produce(), and ~DuplicateTrackMerger().
|
private |
Definition at line 69 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 62 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), produce(), and ~DuplicateTrackMerger().
|
private |
Definition at line 91 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
max distance between two tracks at closest approach
Definition at line 79 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in longitudinal impact parameter between two tracks
Definition at line 87 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in transverse impact parameter between two tracks
Definition at line 85 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in Lambda between two tracks
Definition at line 83 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in phi between two tracks
Definition at line 81 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
max difference in q/p between two tracks
Definition at line 89 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
|
private |
minBDTG cut value
Definition at line 73 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
minDeltaR3d cut value
Definition at line 71 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
min p cut value
Definition at line 77 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
min pT cut value
Definition at line 75 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 57 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 58 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
|
private |
Definition at line 53 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 55 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 54 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 56 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 60 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
Definition at line 59 of file DuplicateTrackMerger.h.
Referenced by produce().
|
private |
track input collection
Definition at line 65 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), and produce().
|
private |
Definition at line 68 of file DuplicateTrackMerger.h.
Referenced by DuplicateTrackMerger(), produce(), and ~DuplicateTrackMerger().