CMS 3D CMS Logo

ProcessorBase.h
Go to the documentation of this file.
1 /*
2  * ProcessorBase.h
3  *
4  * Created on: Jul 28, 2017
5  * Author: kbunkow
6  */
7 
8 #ifndef L1T_OmtfP1_PROCESSORBASE_H_
9 #define L1T_OmtfP1_PROCESSORBASE_H_
10 
14 
15 #include <memory>
16 
18 class SimTrack;
19 
20 template <class GoldenPatternType>
22 public:
23  ProcessorBase(OMTFConfiguration* omtfConfig, const L1TMuonOverlapParams* omtfPatterns) : myOmtfConfig(omtfConfig) {
24  configure(omtfConfig, omtfPatterns);
25  };
26 
30 
31  virtual ~ProcessorBase() {}
32 
35 
37  virtual bool configure(OMTFConfiguration* omtfParams, const L1TMuonOverlapParams* omtfPatterns);
38 
40  virtual void addGP(GoldenPatternType* aGP);
41 
43  virtual void resetConfiguration();
44 
45  virtual void initPatternPtRange(bool firstPatFrom0);
46 
47  const std::vector<OMTFConfiguration::PatternPt>& getPatternPtRange() const { return patternPts; }
48 
49  virtual void printInfo() const;
50 
51 protected:
55 
58 
61  virtual MuonStubPtrs1D restrictInput(unsigned int iProcessor,
62  unsigned int iCone,
63  unsigned int iLayer,
64  const OMTFinput& input);
65 
66  std::vector<OMTFConfiguration::PatternPt> patternPts;
67 };
68 
69 #endif /* L1T_OmtfP1_PROCESSORBASE_H_ */
GoldenPatternVec< GoldenPatternType > theGPs
vector holding Golden Patterns
Definition: ProcessorBase.h:57
virtual bool configure(OMTFConfiguration *omtfParams, const L1TMuonOverlapParams *omtfPatterns)
Fill GP vec with patterns from CondFormats object.
virtual void printInfo() const
virtual GoldenPatternVec< GoldenPatternType > & getPatterns()
Return vector of GoldenPatterns.
Definition: ProcessorBase.h:34
const std::vector< OMTFConfiguration::PatternPt > & getPatternPtRange() const
Definition: ProcessorBase.h:47
virtual void addGP(GoldenPatternType *aGP)
Add GoldenPattern to pattern vec.
static std::string const input
Definition: EdmProvDump.cc:50
ProcessorBase(OMTFConfiguration *omtfConfig, const L1TMuonOverlapParams *omtfPatterns)
Definition: ProcessorBase.h:23
const OMTFConfiguration * myOmtfConfig
Definition: ProcessorBase.h:54
virtual ~ProcessorBase()
Definition: ProcessorBase.h:31
omtfParams
OMTF ESProducer.
virtual MuonStubPtrs1D restrictInput(unsigned int iProcessor, unsigned int iCone, unsigned int iLayer, const OMTFinput &input)
std::vector< MuonStubPtr > MuonStubPtrs1D
Definition: MuonStub.h:66
virtual void initPatternPtRange(bool firstPatFrom0)
std::vector< std::unique_ptr< GoldenPatternType > > GoldenPatternVec
std::vector< OMTFConfiguration::PatternPt > patternPts
Definition: ProcessorBase.h:66
virtual void resetConfiguration()
Reset all configuration parameters.