CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
TwoBodyDecayMomConstraintProducer Class Reference

#include <RecoTracker/ConstraintProducerTest/src/TwoBodyDecayMomConstraintProducer.cc>

Inheritance diagram for TwoBodyDecayMomConstraintProducer:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TwoBodyDecayMomConstraintProducer (const edm::ParameterSet &)
 
 ~TwoBodyDecayMomConstraintProducer () override=default
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

enum  MomentumForRefitting { atVertex, atInnermostSurface }
 

Private Member Functions

std::pair< bool, TrajectoryStateOnSurfaceinnermostState (const reco::TransientTrack &ttrack) const
 
bool match (const TrajectoryStateOnSurface &newTsos, const TrajectoryStateOnSurface &oldTsos) const
 
std::pair< double, double > momentaAtInnermostSurface (const TwoBodyDecay &tbd, const std::vector< reco::TransientTrack > &ttracks, const MagneticField *magField) const
 
std::pair< double, double > momentaAtVertex (const TwoBodyDecay &tbd) const
 
void produce (edm::StreamID streamid, edm::Event &, const edm::EventSetup &) const override
 

Static Private Member Functions

static MomentumForRefitting momentumForRefittingFromString (std::string momentumForRefittingString)
 

Private Attributes

const edm::InputTag bsSrcTag_
 
edm::EDGetTokenT< reco::BeamSpotbsToken_
 
const double chi2CutValue_
 
const double fixedMomentumError_
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
const MomentumForRefitting momentumForRefitting_
 
const double primaryMass_
 
const double primaryWidth_
 
const double secondaryMass_
 
const double sigmaPositionCutValue_
 
const edm::InputTag srcTag_
 
const TwoBodyDecayFitter tbdFitter_
 
edm::EDGetTokenT< reco::TrackCollectiontrackCollToken_
 
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecordtrackingGeometryToken_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: Produces track parameter constraints for refitting tracks, according to information TwoBodyDecay kinematic fit.

Original Author: Edmund Widl

Definition at line 40 of file TwoBodyDecayMomConstraintProducer.cc.

Member Enumeration Documentation

◆ MomentumForRefitting

Enumerator
atVertex 
atInnermostSurface 

Definition at line 70 of file TwoBodyDecayMomConstraintProducer.cc.

Constructor & Destructor Documentation

◆ TwoBodyDecayMomConstraintProducer()

TwoBodyDecayMomConstraintProducer::TwoBodyDecayMomConstraintProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 84 of file TwoBodyDecayMomConstraintProducer.cc.

85  : srcTag_(iConfig.getParameter<edm::InputTag>("src")),
86  bsSrcTag_(iConfig.getParameter<edm::InputTag>("beamSpot")),
87  tbdFitter_(iConfig),
88  primaryMass_(iConfig.getParameter<double>("primaryMass")),
89  primaryWidth_(iConfig.getParameter<double>("primaryWidth")),
90  secondaryMass_(iConfig.getParameter<double>("secondaryMass")),
91  sigmaPositionCutValue_(iConfig.getParameter<double>("sigmaPositionCut")),
92  chi2CutValue_(iConfig.getParameter<double>("chi2Cut")),
93  fixedMomentumError_(iConfig.getParameter<double>("fixedMomentumError")),
97  trackCollToken_ = consumes<reco::TrackCollection>(edm::InputTag(srcTag_));
98  bsToken_ = consumes<reco::BeamSpot>(edm::InputTag(bsSrcTag_));
99 
100  produces<std::vector<MomentumConstraint> >();
101  produces<TrackMomConstraintAssociationCollection>();
102 
103  // //debug
104  // histos_["deltaEta1"] = new TH1F( "deltaEta1", "deltaEta1", 200, -1., 1. );
105  // histos_["deltaP1"] = new TH1F( "deltaP1", "deltaP1", 200, -50., 50. );
106 
107  // histos_["deltaEta2"] = new TH1F( "deltaEta2", "deltaEta2", 200, -1., 1. );
108  // histos_["deltaP2"] = new TH1F( "deltaP2", "deltaP2", 200, -50., 50. );
109 }

References bsSrcTag_, bsToken_, srcTag_, and trackCollToken_.

◆ ~TwoBodyDecayMomConstraintProducer()

TwoBodyDecayMomConstraintProducer::~TwoBodyDecayMomConstraintProducer ( )
overridedefault

Member Function Documentation

◆ innermostState()

std::pair< bool, TrajectoryStateOnSurface > TwoBodyDecayMomConstraintProducer::innermostState ( const reco::TransientTrack ttrack) const
private

◆ match()

bool TwoBodyDecayMomConstraintProducer::match ( const TrajectoryStateOnSurface newTsos,
const TrajectoryStateOnSurface oldTsos 
) const
private

Definition at line 235 of file TwoBodyDecayMomConstraintProducer.cc.

236  {
237  LocalPoint lp1 = newTsos.localPosition();
238  LocalPoint lp2 = oldTsos.localPosition();
239 
240  double deltaX = lp1.x() - lp2.x();
241  double deltaY = lp1.y() - lp2.y();
242 
243  return ((fabs(deltaX) < sigmaPositionCutValue_) && (fabs(deltaY) < sigmaPositionCutValue_));
244 }

References TrajectoryStateOnSurface::localPosition(), sigmaPositionCutValue_, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

Referenced by momentaAtInnermostSurface().

◆ momentaAtInnermostSurface()

std::pair< double, double > TwoBodyDecayMomConstraintProducer::momentaAtInnermostSurface ( const TwoBodyDecay tbd,
const std::vector< reco::TransientTrack > &  ttracks,
const MagneticField magField 
) const
private

Get the innermost trajectory states

Construct the TBD trajectory states

Match the old and the new estimates for the trajectory state

Definition at line 200 of file TwoBodyDecayMomConstraintProducer.cc.

201  {
202  std::pair<double, double> result = std::make_pair(-1., -1.);
203 
205  std::pair<bool, TrajectoryStateOnSurface> oldInnermostState1 = innermostState(ttracks[0]);
206  std::pair<bool, TrajectoryStateOnSurface> oldInnermostState2 = innermostState(ttracks[1]);
207  if (!oldInnermostState1.second.isValid() || !oldInnermostState2.second.isValid())
208  return result;
209 
211  TwoBodyDecayTrajectoryState::TsosContainer trackTsos(oldInnermostState1.second, oldInnermostState2.second);
212  TwoBodyDecayTrajectoryState tbdTrajState(trackTsos, tbd, secondaryMass_, magField, true);
213  if (!tbdTrajState.isValid())
214  return result;
215 
217  bool match1 = match(tbdTrajState.trajectoryStates(true).first, oldInnermostState1.second);
218  bool match2 = match(tbdTrajState.trajectoryStates(true).second, oldInnermostState2.second);
219  if (!match1 || !match2)
220  return result;
221 
222  result = std::make_pair(fabs(1. / tbdTrajState.trajectoryStates(true).first.localParameters().qbp()),
223  fabs(1. / tbdTrajState.trajectoryStates(true).second.localParameters().qbp()));
224  return result;
225 }

References innermostState(), TwoBodyDecayTrajectoryState::isValid(), match(), mps_fire::result, secondaryMass_, and TwoBodyDecayTrajectoryState::trajectoryStates().

Referenced by produce().

◆ momentaAtVertex()

std::pair< double, double > TwoBodyDecayMomConstraintProducer::momentaAtVertex ( const TwoBodyDecay tbd) const
private

Definition at line 192 of file TwoBodyDecayMomConstraintProducer.cc.

192  {
193  // construct global trajectory parameters at the starting point
195  std::pair<AlgebraicVector, AlgebraicVector> secondaryMomenta = tbdDecayModel.cartesianSecondaryMomenta(tbd);
196 
197  return std::make_pair(secondaryMomenta.first.norm(), secondaryMomenta.second.norm());
198 }

References TwoBodyDecayModel::cartesianSecondaryMomenta(), TwoBodyDecayParameters::mass, and secondaryMass_.

Referenced by produce().

◆ momentumForRefittingFromString()

TwoBodyDecayMomConstraintProducer::MomentumForRefitting TwoBodyDecayMomConstraintProducer::momentumForRefittingFromString ( std::string  momentumForRefittingString)
staticprivate

Definition at line 247 of file TwoBodyDecayMomConstraintProducer.cc.

247  {
248  if (strMomentumForRefitting == "atVertex") {
249  return atVertex;
250  } else if (strMomentumForRefitting == "atInnermostSurface") {
251  return atInnermostSurface;
252  } else {
253  throw cms::Exception("TwoBodyDecayMomConstraintProducer") << "value of config variable 'momentumForRefitting': "
254  << "has to be 'atVertex' or 'atInnermostSurface'";
255  }
256 }

References atInnermostSurface, atVertex, and Exception.

◆ produce()

void TwoBodyDecayMomConstraintProducer::produce ( edm::StreamID  streamid,
edm::Event iEvent,
const edm::EventSetup iSetup 
) const
overrideprivatevirtual

Construct virtual measurement (for TBD)

Get transient tracks from track collection

Fit the TBD

Implements edm::global::EDProducerBase.

Definition at line 111 of file TwoBodyDecayMomConstraintProducer.cc.

113  {
114  using namespace edm;
115 
117  iEvent.getByToken(trackCollToken_, trackColl);
118 
120  iEvent.getByToken(bsToken_, beamSpot);
121 
122  auto const* magField = &iSetup.getData(magFieldToken_);
123 
124  auto trackingGeometry = iSetup.getHandle(trackingGeometryToken_);
125 
126  edm::RefProd<std::vector<MomentumConstraint> > rPairs = iEvent.getRefBeforePut<std::vector<MomentumConstraint> >();
127  std::unique_ptr<std::vector<MomentumConstraint> > pairs(new std::vector<MomentumConstraint>);
128  std::unique_ptr<TrackMomConstraintAssociationCollection> output(
130 
131  if (trackColl->size() == 2) {
134 
136  std::vector<reco::TransientTrack> ttracks(2);
137  ttracks[0] = reco::TransientTrack(reco::TrackRef(trackColl, 0), magField);
138  ttracks[0].setTrackingGeometry(trackingGeometry);
139  ttracks[1] = reco::TransientTrack(reco::TrackRef(trackColl, 1), magField);
140  ttracks[1].setTrackingGeometry(trackingGeometry);
141 
143  TwoBodyDecay tbd = tbdFitter_.estimate(ttracks, vm);
144 
145  if (!tbd.isValid() or (tbd.chi2() > chi2CutValue_))
146  return;
147 
148  std::pair<double, double> fitMomenta;
150  fitMomenta = momentaAtVertex(tbd);
152  fitMomenta = momentaAtInnermostSurface(tbd, ttracks, magField);
153  } // no other possibility!!!
154 
155  if ((fitMomenta.first > 0.) and (fitMomenta.second > 0.)) {
156  // produce constraint for first track
157  MomentumConstraint constraint1(fitMomenta.first, fixedMomentumError_);
158  pairs->push_back(constraint1);
159  output->insert(reco::TrackRef(trackColl, 0), edm::Ref<std::vector<MomentumConstraint> >(rPairs, 0));
160 
161  // produce constraint for second track
162  MomentumConstraint constraint2(fitMomenta.second, fixedMomentumError_);
163  pairs->push_back(constraint2);
164  output->insert(reco::TrackRef(trackColl, 1), edm::Ref<std::vector<MomentumConstraint> >(rPairs, 1));
165  }
166 
167  // // debug
168  // if ( tbd.isValid() and ( fitMomenta.first > 0. ) and ( fitMomenta.second > 0. ) ) {
169  // TwoBodyDecayModel model;
170  // const std::pair< AlgebraicVector, AlgebraicVector > fitMomenta = model.cartesianSecondaryMomenta( tbd );
171 
172  // TLorentzVector recoMomentum1( ttracks[0].track().px(), ttracks[0].track().py(), ttracks[0].track().pz(),
173  // sqrt((ttracks[0].track().p()*ttracks[0].track().p())+0.105658*0.105658) );
174  // TLorentzVector fitMomentum1( fitMomenta.first[0], fitMomenta.first[1], fitMomenta.first[2],
175  // sqrt( fitMomenta.first.normsq()+0.105658*0.105658) );
176  // histos_["deltaP1"]->Fill( recoMomentum1.P() - fitMomentum1.P() );
177  // histos_["deltaEta1"]->Fill( recoMomentum1.Eta() - fitMomentum1.Eta() );
178 
179  // TLorentzVector recoMomentum2( ttracks[1].track().px(), ttracks[1].track().py(), ttracks[1].track().pz(),
180  // sqrt((ttracks[1].track().p()*ttracks[1].track().p())+0.105658*0.105658) );
181  // TLorentzVector fitMomentum2( fitMomenta.second[0], fitMomenta.second[1], fitMomenta.second[2],
182  // sqrt( fitMomenta.second.normsq()+0.105658*0.105658) );
183  // histos_["deltaP2"]->Fill( recoMomentum2.P() - fitMomentum2.P() );
184  // histos_["deltaEta2"]->Fill( recoMomentum2.Eta() - fitMomentum2.Eta() );
185  // }
186  }
187 
188  iEvent.put(std::move(pairs));
189  iEvent.put(std::move(output));
190 }

References atInnermostSurface, atVertex, pwdgSkimBPark_cfi::beamSpot, bsToken_, TwoBodyDecay::chi2(), chi2CutValue_, TwoBodyDecayFitter::estimate(), fixedMomentumError_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), iEvent, TwoBodyDecay::isValid(), magFieldToken_, momentaAtInnermostSurface(), momentaAtVertex(), momentumForRefitting_, eostools::move(), or, convertSQLitetoXML_cfg::output, primaryMass_, primaryWidth_, secondaryMass_, tbdFitter_, pfDisplacedTrackerVertex_cfi::trackColl, trackCollToken_, and trackingGeometryToken_.

Member Data Documentation

◆ bsSrcTag_

const edm::InputTag TwoBodyDecayMomConstraintProducer::bsSrcTag_
private

◆ bsToken_

edm::EDGetTokenT<reco::BeamSpot> TwoBodyDecayMomConstraintProducer::bsToken_
private

◆ chi2CutValue_

const double TwoBodyDecayMomConstraintProducer::chi2CutValue_
private

Definition at line 67 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ fixedMomentumError_

const double TwoBodyDecayMomConstraintProducer::fixedMomentumError_
private

Definition at line 68 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ magFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> TwoBodyDecayMomConstraintProducer::magFieldToken_
private

Definition at line 78 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ momentumForRefitting_

const MomentumForRefitting TwoBodyDecayMomConstraintProducer::momentumForRefitting_
private

Definition at line 71 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ primaryMass_

const double TwoBodyDecayMomConstraintProducer::primaryMass_
private

Definition at line 62 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ primaryWidth_

const double TwoBodyDecayMomConstraintProducer::primaryWidth_
private

Definition at line 63 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ secondaryMass_

const double TwoBodyDecayMomConstraintProducer::secondaryMass_
private

◆ sigmaPositionCutValue_

const double TwoBodyDecayMomConstraintProducer::sigmaPositionCutValue_
private

Definition at line 66 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by match().

◆ srcTag_

const edm::InputTag TwoBodyDecayMomConstraintProducer::srcTag_
private

◆ tbdFitter_

const TwoBodyDecayFitter TwoBodyDecayMomConstraintProducer::tbdFitter_
private

Definition at line 60 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

◆ trackCollToken_

edm::EDGetTokenT<reco::TrackCollection> TwoBodyDecayMomConstraintProducer::trackCollToken_
private

◆ trackingGeometryToken_

const edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> TwoBodyDecayMomConstraintProducer::trackingGeometryToken_
private

Definition at line 79 of file TwoBodyDecayMomConstraintProducer.cc.

Referenced by produce().

edm::RefProd
Definition: EDProductfwd.h:25
TwoBodyDecayTrajectoryState::TsosContainer
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > TsosContainer
Definition: TwoBodyDecayTrajectoryState.h:14
pfDisplacedTrackerVertex_cfi.trackColl
trackColl
Definition: pfDisplacedTrackerVertex_cfi.py:6
TwoBodyDecayFitter::estimate
virtual const TwoBodyDecay estimate(const std::vector< reco::TransientTrack > &tracks, const TwoBodyDecayVirtualMeasurement &vm) const
Definition: TwoBodyDecayFitter.cc:16
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
TwoBodyDecay::isValid
bool isValid(void) const
Definition: TwoBodyDecay.h:46
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
TwoBodyDecayParameters::mass
Definition: TwoBodyDecayParameters.h:17
edm
HLT enums.
Definition: AlignableModifier.h:19
TwoBodyDecayMomConstraintProducer::primaryMass_
const double primaryMass_
Definition: TwoBodyDecayMomConstraintProducer.cc:62
TrajectoryStateOnSurface::globalPosition
GlobalPoint globalPosition() const
Definition: TrajectoryStateOnSurface.h:65
TwoBodyDecayMomConstraintProducer::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: TwoBodyDecayMomConstraintProducer.cc:78
TwoBodyDecayMomConstraintProducer::innermostState
std::pair< bool, TrajectoryStateOnSurface > innermostState(const reco::TransientTrack &ttrack) const
Definition: TwoBodyDecayMomConstraintProducer.cc:227
TwoBodyDecayMomConstraintProducer::bsToken_
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: TwoBodyDecayMomConstraintProducer.cc:76
edm::Handle< reco::TrackCollection >
TwoBodyDecayMomConstraintProducer::bsSrcTag_
const edm::InputTag bsSrcTag_
Definition: TwoBodyDecayMomConstraintProducer.cc:58
TwoBodyDecayMomConstraintProducer::momentaAtInnermostSurface
std::pair< double, double > momentaAtInnermostSurface(const TwoBodyDecay &tbd, const std::vector< reco::TransientTrack > &ttracks, const MagneticField *magField) const
Definition: TwoBodyDecayMomConstraintProducer.cc:200
edm::Ref< TrackCollection >
TwoBodyDecayMomConstraintProducer::primaryWidth_
const double primaryWidth_
Definition: TwoBodyDecayMomConstraintProducer.cc:63
MomentumConstraint
Definition: TrackConstraintAssociation.h:11
TwoBodyDecayMomConstraintProducer::momentaAtVertex
std::pair< double, double > momentaAtVertex(const TwoBodyDecay &tbd) const
Definition: TwoBodyDecayMomConstraintProducer.cc:192
TwoBodyDecayMomConstraintProducer::trackCollToken_
edm::EDGetTokenT< reco::TrackCollection > trackCollToken_
Definition: TwoBodyDecayMomConstraintProducer.cc:75
Point3DBase< float, LocalTag >
TwoBodyDecayVirtualMeasurement
Definition: TwoBodyDecayVirtualMeasurement.h:19
TwoBodyDecayMomConstraintProducer::chi2CutValue_
const double chi2CutValue_
Definition: TwoBodyDecayMomConstraintProducer.cc:67
TwoBodyDecayMomConstraintProducer::trackingGeometryToken_
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeometryToken_
Definition: TwoBodyDecayMomConstraintProducer.cc:79
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition: TrajectoryStateOnSurface.h:74
TwoBodyDecayMomConstraintProducer::atInnermostSurface
Definition: TwoBodyDecayMomConstraintProducer.cc:70
TwoBodyDecayMomConstraintProducer::momentumForRefitting_
const MomentumForRefitting momentumForRefitting_
Definition: TwoBodyDecayMomConstraintProducer.cc:71
TwoBodyDecayModel
Definition: TwoBodyDecayModel.h:15
TwoBodyDecayMomConstraintProducer::secondaryMass_
const double secondaryMass_
Definition: TwoBodyDecayMomConstraintProducer.cc:64
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
iEvent
int iEvent
Definition: GenABIO.cc:224
TwoBodyDecayMomConstraintProducer::match
bool match(const TrajectoryStateOnSurface &newTsos, const TrajectoryStateOnSurface &oldTsos) const
Definition: TwoBodyDecayMomConstraintProducer.cc:235
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
TwoBodyDecayMomConstraintProducer::fixedMomentumError_
const double fixedMomentumError_
Definition: TwoBodyDecayMomConstraintProducer.cc:68
TwoBodyDecayMomConstraintProducer::tbdFitter_
const TwoBodyDecayFitter tbdFitter_
Definition: TwoBodyDecayMomConstraintProducer.cc:60
reco::TransientTrack::outermostMeasurementState
TrajectoryStateOnSurface outermostMeasurementState() const
Definition: TransientTrack.h:84
TwoBodyDecayTrajectoryState
Definition: TwoBodyDecayTrajectoryState.h:12
TwoBodyDecayMomConstraintProducer::atVertex
Definition: TwoBodyDecayMomConstraintProducer.cc:70
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
TwoBodyDecayMomConstraintProducer::srcTag_
const edm::InputTag srcTag_
Definition: TwoBodyDecayMomConstraintProducer.cc:57
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::TransientTrack
Definition: TransientTrack.h:19
Exception
Definition: hltDiff.cc:245
TwoBodyDecay
Definition: TwoBodyDecay.h:15
TrackMomConstraintAssociationCollection
edm::AssociationMap< edm::OneToOne< reco::TrackCollection, std::vector< MomentumConstraint > > > TrackMomConstraintAssociationCollection
Definition: TrackConstraintAssociation.h:24
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TwoBodyDecayMomConstraintProducer::momentumForRefittingFromString
static MomentumForRefitting momentumForRefittingFromString(std::string momentumForRefittingString)
Definition: TwoBodyDecayMomConstraintProducer.cc:247
insideOut
Definition: NavigationDirection.h:4
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:206
mps_fire.result
result
Definition: mps_fire.py:311
TwoBodyDecay::chi2
double chi2(void) const
Definition: TwoBodyDecay.h:44
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69
edm::InputTag
Definition: InputTag.h:15
TwoBodyDecayMomConstraintProducer::sigmaPositionCutValue_
const double sigmaPositionCutValue_
Definition: TwoBodyDecayMomConstraintProducer.cc:66
reco::TransientTrack::innermostMeasurementState
TrajectoryStateOnSurface innermostMeasurementState() const
Definition: TransientTrack.h:86