CMS 3D CMS Logo

VMStubsTEMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_VMStubsTEMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_VMStubsTEMemory_h
3 
7 
8 #include <string>
9 #include <vector>
10 
11 namespace trklet {
12 
13  class Settings;
14  class Stub;
15  class L1TStub;
16  class TrackletLUT;
17 
18  class VMStubsTEMemory : public MemoryBase {
19  public:
20  VMStubsTEMemory(std::string name, Settings const& settings);
21 
22  ~VMStubsTEMemory() override = default;
23 
24  void resize(int nbins) { stubsbinnedvm_.resize(nbins); }
25 
26  bool addVMStub(VMStubTE vmstub, int bin);
27 
28  bool addVMStub(VMStubTE vmstub);
29 
30  unsigned int nVMStubs() const { return stubsvm_.size(); }
31 
32  unsigned int nVMStubsBinned(unsigned int bin) const { return stubsbinnedvm_[bin].size(); }
33 
34  unsigned int nBin() const { return stubsbinnedvm_.size(); }
35 
36  const VMStubTE& getVMStubTE(unsigned int i) const { return stubsvm_[i]; }
37 
38  const VMStubTE& getVMStubTEBinned(unsigned int bin, unsigned int i) const { return stubsbinnedvm_[bin][i]; }
39 
40  void clean() override;
41 
42  void writeStubs(bool first, unsigned int iSector);
43 
44  int phibin() const { return phibin_; }
45 
46  void getPhiRange(double& phimin, double& phimax, unsigned int iSeed, unsigned int inner);
47 
49 
50  VMStubsTEMemory* other() { return other_; }
51 
52  void setbendtable(const TrackletLUT& bendtable);
53 
54  private:
55  int layer_;
56  int disk_;
58  int phibin_;
60  bool overlap_;
61  bool extra_;
62  bool extended_; // for the L2L3->D1 and D1D2->L2
63  bool isinner_; // is inner layer/disk for TE purpose
64 
66 
67  std::vector<VMStubTE> stubsvm_;
68  std::vector<std::vector<VMStubTE> > stubsbinnedvm_;
69  };
70 
71 }; // namespace trklet
72 #endif
trklet::VMStubsTEMemory::setother
void setother(VMStubsTEMemory *other)
Definition: VMStubsTEMemory.h:48
mps_fire.i
i
Definition: mps_fire.py:428
trklet::VMStubTE
Definition: VMStubTE.h:15
trklet::VMStubsTEMemory::VMStubsTEMemory
VMStubsTEMemory(std::string name, Settings const &settings)
Definition: VMStubsTEMemory.cc:10
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::VMStubsTEMemory::layerdisk_
int layerdisk_
Definition: VMStubsTEMemory.h:57
trklet::VMStubsTEMemory::getVMStubTEBinned
const VMStubTE & getVMStubTEBinned(unsigned int bin, unsigned int i) const
Definition: VMStubsTEMemory.h:38
TrackletLUT.h
trklet::Settings
Definition: Settings.h:52
trklet::TrackletLUT
Definition: TrackletLUT.h:12
trklet::VMStubsTEMemory
Definition: VMStubsTEMemory.h:18
trklet::VMStubsTEMemory::other
VMStubsTEMemory * other()
Definition: VMStubsTEMemory.h:50
trklet::VMStubsTEMemory::~VMStubsTEMemory
~VMStubsTEMemory() override=default
trklet::VMStubsTEMemory::nVMStubs
unsigned int nVMStubs() const
Definition: VMStubsTEMemory.h:30
trklet::VMStubsTEMemory::extra_
bool extra_
Definition: VMStubsTEMemory.h:61
trklet::VMStubsTEMemory::disk_
int disk_
Definition: VMStubsTEMemory.h:56
SurfaceOrientation::inner
Definition: Surface.h:19
trklet::VMStubsTEMemory::isinner_
bool isinner_
Definition: VMStubsTEMemory.h:63
trklet::VMStubsTEMemory::bendtable_
TrackletLUT bendtable_
Definition: VMStubsTEMemory.h:65
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
trklet::VMStubsTEMemory::extended_
bool extended_
Definition: VMStubsTEMemory.h:62
trklet::VMStubsTEMemory::nBin
unsigned int nBin() const
Definition: VMStubsTEMemory.h:34
trklet::VMStubsTEMemory::layer_
int layer_
Definition: VMStubsTEMemory.h:55
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::VMStubsTEMemory::getVMStubTE
const VMStubTE & getVMStubTE(unsigned int i) const
Definition: VMStubsTEMemory.h:36
trklet::VMStubsTEMemory::writeStubs
void writeStubs(bool first, unsigned int iSector)
Definition: VMStubsTEMemory.cc:223
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::VMStubsTEMemory::addVMStub
bool addVMStub(VMStubTE vmstub, int bin)
Definition: VMStubsTEMemory.cc:55
trklet::VMStubsTEMemory::resize
void resize(int nbins)
Definition: VMStubsTEMemory.h:24
trklet::VMStubsTEMemory::other_
VMStubsTEMemory * other_
Definition: VMStubsTEMemory.h:59
trklet::VMStubsTEMemory::phibin
int phibin() const
Definition: VMStubsTEMemory.h:44
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::VMStubsTEMemory::clean
void clean() override
Definition: VMStubsTEMemory.cc:216
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
phimax
float phimax
Definition: ReggeGribovPartonMCHadronizer.h:106
VMStubTE.h
trklet::VMStubsTEMemory::getPhiRange
void getPhiRange(double &phimin, double &phimax, unsigned int iSeed, unsigned int inner)
Definition: VMStubsTEMemory.cc:248
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::VMStubsTEMemory::stubsbinnedvm_
std::vector< std::vector< VMStubTE > > stubsbinnedvm_
Definition: VMStubsTEMemory.h:68
trklet::VMStubsTEMemory::phibin_
int phibin_
Definition: VMStubsTEMemory.h:58
trklet::VMStubsTEMemory::setbendtable
void setbendtable(const TrackletLUT &bendtable)
Definition: VMStubsTEMemory.cc:277
trklet::VMStubsTEMemory::nVMStubsBinned
unsigned int nVMStubsBinned(unsigned int bin) const
Definition: VMStubsTEMemory.h:32
trklet::VMStubsTEMemory::stubsvm_
std::vector< VMStubTE > stubsvm_
Definition: VMStubsTEMemory.h:67
trklet::VMStubsTEMemory::overlap_
bool overlap_
Definition: VMStubsTEMemory.h:60