/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoLocalMuon/CSCSegment/src/CSCSegmentBuilder.h
51 строка
1 KB
mmusich
add fillDescriptions to a bunch of RECO plugins used at HLT
02 янв 2025, 16:30
02 янв 2025, 16:30
587ebde
Код
Авторство
О чём код?
#ifndef CSCSegment_CSCSegmentBuilder_h #define CSCSegment_CSCSegmentBuilder_h /** \class CSCSegmentBuilder * Algorithm to build CSCSegment's from CSCRecHit2D collection * by implementing a 'build' function required by CSCSegmentProducer. * * Implementation notes: <BR> * Configured via the Producer's ParameterSet. <BR> * Presume this might become an abstract base class one day. <BR> * * \author M. Sani * * */ #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h" #include "DataFormats/CSCRecHit/interface/CSCSegmentCollection.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" class CSCGeometry; class CSCSegmentAlgorithm; class CSCSegmentBuilder { public: /** Configure the algorithm via ctor. * Receives ParameterSet percolated down from EDProducer * which owns this Builder. */ explicit CSCSegmentBuilder(const edm::ParameterSet&); /// Destructor ~CSCSegmentBuilder(); static void fillPSetDescription(edm::ParameterSetDescription& desc); /** Find rechits in each CSCChamber, build CSCSegment's in each chamber, * and fill into output collection. */ void build(const CSCRecHit2DCollection* rechits, CSCSegmentCollection& oc); /** Cache pointer to geometry _for current event_ */ void setGeometry(const CSCGeometry* geom); private: const CSCGeometry* geom_; std::map<std::string, std::unique_ptr<CSCSegmentAlgorithm>> algoMap; }; #endif