CMS 3D CMS Logo

PatternGenerator.h
Go to the documentation of this file.
1 /*
2  * PatternGenerator.h
3  *
4  * Created on: Nov 8, 2019
5  * Author: kbunkow
6  */
7 
8 #ifndef L1T_OmtfP1_PATTERNGENERATOR_H_
9 #define L1T_OmtfP1_PATTERNGENERATOR_H_
10 
13 
15 public:
20 
21  ~PatternGenerator() override;
22 
23  void observeEventEnd(const edm::Event& iEvent,
24  std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) override;
25 
26  void endJob() override;
27 
28 protected:
29  void initPatternGen();
30 
31  void updateStat();
32 
34 
35  std::function<void()> updateStatFunction;
36 
37  void upadatePdfs();
38 
39  void saveHists(TFile& outfile) override;
40 
41  void modifyClassProb(double step);
42 
43  void reCalibratePt();
44 
45  void groupPatterns();
46 
48 
49  //indexing: [charge][iLayer]
50  std::vector<std::vector<TH2I*> > ptDeltaPhiHists;
51 
52  std::vector<unsigned int> eventCntPerGp;
53 };
54 
55 #endif /* L1T_OmtfP1_PATTERNGENERATOR_H_ */
~PatternGenerator() override
CandidateSimMuonMatcher * candidateSimMuonMatcher
void observeEventEnd(const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override
int iEvent
Definition: GenABIO.cc:224
std::function< void()> updateStatFunction
PatternGenerator(const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig, GoldenPatternVec< GoldenPatternWithStat > &gps, CandidateSimMuonMatcher *candidateSimMuonMatcher)
std::vector< std::vector< TH2I * > > ptDeltaPhiHists
std::vector< std::unique_ptr< GoldenPatternType > > GoldenPatternVec
void modifyClassProb(double step)
void endJob() override
std::vector< unsigned int > eventCntPerGp
step
Definition: StallMonitor.cc:83
const OMTFConfiguration * omtfConfig
void saveHists(TFile &outfile) override