/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/RecoMuon/src/MuonSeedTrack.h
95 строк
3 KB
Matti Kortelainen
Move stored types in io_v1 namespace, reset class versions to 3
22 май 2026, 18:18
22 май 2026, 18:18
909f324
Код
Авторство
О чём код?
#ifndef Validation_RecoMuon_MuonSeedTrack_H #define Validation_RecoMuon_MuonSeedTrack_H /** \class MuonSeedTrack * * * Make a (fake) reco::Track from a TrajectorySeed. The (fake) track * can be associated to a TrackingParticle (SimTrack) using * SimTracker/TrackAssociation. The association can then be used in * Validation packages, such as Validation/RecoMuon/MuonTrackValidator.cc * * * \author Adam Everett Purdue University */ // system include files #include <memory> // user include files #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h" #include "DataFormats/TrackReco/interface/TrackFwd.h" #include "DataFormats/TrajectorySeed/interface/TrajectorySeedFwd.h" #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" #include "DQMServices/Core/interface/DQMStore.h" #include <DQMServices/Core/interface/DQMEDAnalyzer.h> class MuonServiceProxy; class MuonUpdatorAtVertex; // // class decleration // class MuonSeedTrack : public edm::one::EDProducer<> { public: /// constructor with config explicit MuonSeedTrack(const edm::ParameterSet&); /// destructor ~MuonSeedTrack() override; private: /// pre-job booking void beginJob() override; /// construct proto-tracks void produce(edm::Event&, const edm::EventSetup&) override; /// post-job void endJob() override; /// get the TrajectorySeed's TrajectoryStateOnSurface TrajectoryStateOnSurface getSeedTSOS(const TrajectorySeed& seed) const; /// set the Branch alias void setAlias(std::string alias) { alias.erase(alias.size() - 1, alias.size()); theAlias = alias; } /// Build a track at the PCA WITHOUT any vertex constriant std::pair<bool, reco::Track> buildTrackAtPCA(const TrajectorySeed&) const; // ----------member data --------------------------- /// the event setup proxy, it takes care the services update MuonServiceProxy* theService; /// the class used for updating a Trajectory State at veretex MuonUpdatorAtVertex* theUpdatorAtVtx; /// the Branch alias std::string theAlias; /// the propagator used for extracting TSOS from seed //std::string theSeedPropagatorName; /// the TrajectorySeed label edm::InputTag theSeedsLabel; edm::EDGetTokenT<TrajectorySeedCollection> theSeedsToken; /// bool theAllowNoVtxFlag; }; #endif