CMS 3D CMS Logo

MatchCalculator.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_MatchCalculator_h
2 #define L1Trigger_TrackFindingTracklet_interface_MatchCalculator_h
3 
6 
7 #include <string>
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Globals;
13  class Stub;
14  class L1TStub;
15  class Tracklet;
16  class AllStubsMemory;
17  class AllProjectionsMemory;
18  class CandidateMatchMemory;
19  class FullMatchMemory;
20 
21  class MatchCalculator : public ProcessBase {
22  public:
23  MatchCalculator(std::string name, Settings const& settings, Globals* global, unsigned int iSector);
24 
25  ~MatchCalculator() override = default;
26 
27  void addOutput(MemoryBase* memory, std::string output) override;
28  void addInput(MemoryBase* memory, std::string input) override;
29 
30  void execute();
31 
32  std::vector<std::pair<std::pair<Tracklet*, int>, const Stub*> > mergeMatches(
33  std::vector<CandidateMatchMemory*>& candmatch);
34 
35  private:
36  unsigned int layerdisk_;
37  unsigned int phiregion_;
38 
39  int fact_;
43  double phioffset_;
44 
45  unsigned int phimatchcut_[N_SEED];
46  unsigned int zmatchcut_[N_SEED];
47  unsigned int rphicutPS_[N_SEED];
48  unsigned int rphicut2S_[N_SEED];
49  unsigned int rcutPS_[N_SEED];
50  unsigned int rcut2S_[N_SEED];
51 
54 
57 
58  std::vector<CandidateMatchMemory*> matches_;
59  std::vector<FullMatchMemory*> fullMatches_;
60  };
61 
62 }; // namespace trklet
63 #endif
Settings.h
trklet::AllStubsMemory
Definition: AllStubsMemory.h:16
trklet::MatchCalculator::phiregion_
unsigned int phiregion_
Definition: MatchCalculator.h:37
trklet::MatchCalculator::rphicutPS_
unsigned int rphicutPS_[N_SEED]
Definition: MatchCalculator.h:47
input
static const std::string input
Definition: EdmProvDump.cc:48
trklet::MatchCalculator
Definition: MatchCalculator.h:21
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
trklet::MatchCalculator::MatchCalculator
MatchCalculator(std::string name, Settings const &settings, Globals *global, unsigned int iSector)
Definition: MatchCalculator.cc:19
trklet::Settings
Definition: Settings.h:26
trklet::AllProjectionsMemory
Definition: AllProjectionsMemory.h:14
trklet::MatchCalculator::addInput
void addInput(MemoryBase *memory, std::string input) override
Definition: MatchCalculator.cc:152
trklet::Globals
Definition: Globals.h:32
trklet::MatchCalculator::rphicut2S_
unsigned int rphicut2S_[N_SEED]
Definition: MatchCalculator.h:48
trklet::MatchCalculator::rcutPS_
unsigned int rcutPS_[N_SEED]
Definition: MatchCalculator.h:49
trklet::MatchCalculator::icorzshift_
int icorzshift_
Definition: MatchCalculator.h:41
trklet::MatchCalculator::~MatchCalculator
~MatchCalculator() override=default
trklet::MatchCalculator::allprojs_
AllProjectionsMemory * allprojs_
Definition: MatchCalculator.h:56
trklet::Stub
Definition: Stub.h:16
trklet::MatchCalculator::ialphafactouter_
int ialphafactouter_[N_DSS_MOD *2]
Definition: MatchCalculator.h:53
trklet::MatchCalculator::addOutput
void addOutput(MemoryBase *memory, std::string output) override
Definition: MatchCalculator.cc:137
trklet::MatchCalculator::fullMatches_
std::vector< FullMatchMemory * > fullMatches_
Definition: MatchCalculator.h:59
trklet::MatchCalculator::phimatchcut_
unsigned int phimatchcut_[N_SEED]
Definition: MatchCalculator.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::N_SEED
constexpr unsigned int N_SEED
Definition: Settings.h:22
trklet::MatchCalculator::phi0shift_
int phi0shift_
Definition: MatchCalculator.h:42
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::N_DSS_MOD
constexpr unsigned int N_DSS_MOD
Definition: Settings.h:24
trklet::MatchCalculator::icorrshift_
int icorrshift_
Definition: MatchCalculator.h:40
trklet::MatchCalculator::matches_
std::vector< CandidateMatchMemory * > matches_
Definition: MatchCalculator.h:58
trklet::MatchCalculator::phioffset_
double phioffset_
Definition: MatchCalculator.h:43
trklet::MatchCalculator::layerdisk_
unsigned int layerdisk_
Definition: MatchCalculator.h:36
trklet
Definition: AllProjectionsMemory.h:9
ProcessBase.h
trklet::ProcessBase
Definition: ProcessBase.h:12
trklet::MatchCalculator::execute
void execute()
Definition: MatchCalculator.cc:178
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::MatchCalculator::ialphafactinner_
int ialphafactinner_[N_DSS_MOD *2]
Definition: MatchCalculator.h:52
trklet::MatchCalculator::allstubs_
AllStubsMemory * allstubs_
Definition: MatchCalculator.h:55
trklet::MatchCalculator::zmatchcut_
unsigned int zmatchcut_[N_SEED]
Definition: MatchCalculator.h:46
trklet::MatchCalculator::fact_
int fact_
Definition: MatchCalculator.h:39
trklet::MatchCalculator::rcut2S_
unsigned int rcut2S_[N_SEED]
Definition: MatchCalculator.h:50
trklet::MatchCalculator::mergeMatches
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > mergeMatches(std::vector< CandidateMatchMemory * > &candmatch)
Definition: MatchCalculator.cc:491
memory
Definition: vlib.h:178