CMS 3D CMS Logo

MatchProcessor.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_MatchProcessor_h
2 #define L1Trigger_TrackFindingTracklet_interface_MatchProcessor_h
3 
13 
14 #include <vector>
15 
16 namespace trklet {
17 
18  class Settings;
19  class Globals;
20  class MemoryBase;
21  class Stub;
22  class L1TStub;
23  class Tracklet;
24 
25  class MatchProcessor : public ProcessBase {
26  public:
27  MatchProcessor(std::string name, Settings const& settings, Globals* global);
28 
29  ~MatchProcessor() override = default;
30 
31  void addOutput(MemoryBase* memory, std::string output) override;
32  void addInput(MemoryBase* memory, std::string input) override;
33 
34  void execute(unsigned int iSector, double phimin);
35 
36  bool matchCalculator(Tracklet* tracklet, const Stub* fpgastub, bool print, unsigned int istep);
37 
38  private:
39  unsigned int layerdisk_;
40  bool barrel_;
41 
42  unsigned int phiregion_;
43 
44  int nvm_; //VMs in sector
45  int nvmbits_; //# of bits for VMs in sector
46  int nvmbins_; //VMs in in phi region
47  int nrinv_; //# of bits for rinv
48 
49  int dzshift_;
52  int phishift_;
53 
56 
61 
62  int nrbits_;
64 
66  std::vector<VMStubsMEMemory*> vmstubs_;
67  std::vector<TrackletProjectionsMemory*> inputprojs_;
68 
71 
72  //Memory for the full matches
73  std::vector<FullMatchMemory*> fullmatches_;
74 
75  //disk projectionrinv table
77 
78  //LUT for bend consistency
80 
81  double phimin_;
82 
83  unsigned int nMatchEngines_;
84  std::vector<MatchEngineUnit> matchengines_;
85 
87  };
88 
89 }; // namespace trklet
90 #endif
trklet::MatchProcessor::execute
void execute(unsigned int iSector, double phimin)
Definition: MatchProcessor.cc:133
trklet::AllStubsMemory
Definition: AllStubsMemory.h:16
input
static const std::string input
Definition: EdmProvDump.cc:48
trklet::MatchProcessor::phimatchcuttable_
TrackletLUT phimatchcuttable_
Definition: MatchProcessor.h:54
trklet::MatchProcessor::vmstubs_
std::vector< VMStubsMEMemory * > vmstubs_
Definition: MatchProcessor.h:66
AllStubsMemory.h
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::MatchProcessor::ialphafactouter_
int ialphafactouter_[N_DSS_MOD *2]
Definition: MatchProcessor.h:70
memory
Definition: HGCRecHitSoA.h:20
TrackletLUT.h
trklet::Settings
Definition: Settings.h:52
trklet::MatchProcessor
Definition: MatchProcessor.h:25
trklet::TrackletLUT
Definition: TrackletLUT.h:12
trklet::MatchProcessor::rcutPStable_
TrackletLUT rcutPStable_
Definition: MatchProcessor.h:59
FullMatchMemory.h
trklet::Globals
Definition: Globals.h:30
trklet::MatchProcessor::addInput
void addInput(MemoryBase *memory, std::string input) override
Definition: MatchProcessor.cc:107
trklet::MatchProcessor::MatchProcessor
MatchProcessor(std::string name, Settings const &settings, Globals *global)
Definition: MatchProcessor.cc:16
trklet::Tracklet
Definition: Tracklet.h:27
TrackletProjectionsMemory.h
trklet::MatchProcessor::phishift_
int phishift_
Definition: MatchProcessor.h:52
trklet::MatchProcessor::icorzshift_
int icorzshift_
Definition: MatchProcessor.h:51
trklet::MatchProcessor::fullmatches_
std::vector< FullMatchMemory * > fullmatches_
Definition: MatchProcessor.h:73
CircularBuffer.h
trklet::MatchProcessor::barrel_
bool barrel_
Definition: MatchProcessor.h:40
trklet::MatchProcessor::layerdisk_
unsigned int layerdisk_
Definition: MatchProcessor.h:39
trklet::Stub
Definition: Stub.h:18
trklet::MatchProcessor::nrinv_
int nrinv_
Definition: MatchProcessor.h:47
trklet::MatchProcessor::inputProjBuffer_
CircularBuffer< ProjectionTemp > inputProjBuffer_
Definition: MatchProcessor.h:86
trklet::MatchProcessor::rinvbendlut_
TrackletLUT rinvbendlut_
Definition: MatchProcessor.h:76
trklet::MatchProcessor::inputprojs_
std::vector< TrackletProjectionsMemory * > inputprojs_
Definition: MatchProcessor.h:67
trklet::MatchProcessor::nvmbins_
int nvmbins_
Definition: MatchProcessor.h:46
trklet::MatchProcessor::rphicutPStable_
TrackletLUT rphicutPStable_
Definition: MatchProcessor.h:57
VMStubsMEMemory.h
trklet::MatchProcessor::ialphafactinner_
int ialphafactinner_[N_DSS_MOD *2]
Definition: MatchProcessor.h:69
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::N_DSS_MOD
constexpr unsigned int N_DSS_MOD
Definition: Settings.h:27
trklet::CircularBuffer
Definition: CircularBuffer.h:10
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
ProjectionTemp.h
trklet::MatchProcessor::nMatchEngines_
unsigned int nMatchEngines_
Definition: MatchProcessor.h:83
trklet::MatchProcessor::icorrshift_
int icorrshift_
Definition: MatchProcessor.h:50
MatchEngineUnit.h
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ProcessBase.h
trklet::MatchProcessor::zmatchcuttable_
TrackletLUT zmatchcuttable_
Definition: MatchProcessor.h:55
trklet::MatchProcessor::luttable_
TrackletLUT luttable_
Definition: MatchProcessor.h:79
trklet::ProcessBase
Definition: ProcessBase.h:12
trklet::MatchProcessor::matchCalculator
bool matchCalculator(Tracklet *tracklet, const Stub *fpgastub, bool print, unsigned int istep)
Definition: MatchProcessor.cc:432
trklet::MatchProcessor::allstubs_
AllStubsMemory * allstubs_
Definition: MatchProcessor.h:65
trklet::MatchProcessor::nphiderbits_
int nphiderbits_
Definition: MatchProcessor.h:63
trklet::MatchProcessor::rphicut2Stable_
TrackletLUT rphicut2Stable_
Definition: MatchProcessor.h:58
trklet::MatchProcessor::rcut2Stable_
TrackletLUT rcut2Stable_
Definition: MatchProcessor.h:60
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::MatchProcessor::phimin_
double phimin_
Definition: MatchProcessor.h:81
trklet::MatchProcessor::phiregion_
unsigned int phiregion_
Definition: MatchProcessor.h:42
trklet::MatchProcessor::addOutput
void addOutput(MemoryBase *memory, std::string output) override
Definition: MatchProcessor.cc:90
trklet::MatchProcessor::dzshift_
int dzshift_
Definition: MatchProcessor.h:49
trklet::MatchProcessor::nvm_
int nvm_
Definition: MatchProcessor.h:44
trklet::MatchProcessor::nrbits_
int nrbits_
Definition: MatchProcessor.h:62
trklet::MatchProcessor::matchengines_
std::vector< MatchEngineUnit > matchengines_
Definition: MatchProcessor.h:84
trklet::MatchProcessor::~MatchProcessor
~MatchProcessor() override=default
trklet::MatchProcessor::nvmbits_
int nvmbits_
Definition: MatchProcessor.h:45