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 
6 
7 #include <string>
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Stub;
14  class L1TStub;
15 
16  class VMStubsTEMemory : public MemoryBase {
17  public:
18  VMStubsTEMemory(std::string name, Settings const& settings, unsigned int iSector);
19 
20  ~VMStubsTEMemory() override = default;
21 
22  bool addVMStub(VMStubTE vmstub, int bin);
23 
24  bool addVMStub(VMStubTE vmstub);
25 
26  unsigned int nVMStubs() const { return stubsvm_.size(); }
27 
28  unsigned int nVMStubsBinned(unsigned int bin) const { return stubsbinnedvm_[bin].size(); }
29 
30  const VMStubTE& getVMStubTE(unsigned int i) const { return stubsvm_[i]; }
31 
32  const VMStubTE& getVMStubTEBinned(unsigned int bin, unsigned int i) const { return stubsbinnedvm_[bin][i]; }
33 
34  void clean() override;
35 
36  void writeStubs(bool first);
37 
38  int phibin() const { return phibin_; }
39 
40  void getPhiRange(double& phimin, double& phimax, unsigned int iSeed, unsigned int inner);
41 
43 
44  VMStubsTEMemory* other() { return other_; }
45 
46  void setbendtable(std::vector<bool> vmbendtable);
47 
48  bool passbend(unsigned int ibend) const {
49  assert(ibend < vmbendtable_.size());
50  return vmbendtable_[ibend];
51  }
52 
53  void writeVMBendTable();
54 
55  private:
56  int layer_;
57  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 
65  std::vector<bool> vmbendtable_;
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:42
trklet::VMStubsTEMemory::setbendtable
void setbendtable(std::vector< bool > vmbendtable)
Definition: VMStubsTEMemory.cc:254
mps_fire.i
i
Definition: mps_fire.py:355
trklet::VMStubTE
Definition: VMStubTE.h:15
trklet::VMStubsTEMemory::vmbendtable_
std::vector< bool > vmbendtable_
Definition: VMStubsTEMemory.h:65
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::VMStubsTEMemory::getVMStubTEBinned
const VMStubTE & getVMStubTEBinned(unsigned int bin, unsigned int i) const
Definition: VMStubsTEMemory.h:32
trklet::Settings
Definition: Settings.h:26
trklet::VMStubsTEMemory
Definition: VMStubsTEMemory.h:16
cms::cuda::assert
assert(be >=bs)
trklet::VMStubsTEMemory::other
VMStubsTEMemory * other()
Definition: VMStubsTEMemory.h:44
trklet::VMStubsTEMemory::~VMStubsTEMemory
~VMStubsTEMemory() override=default
dqmdumpme.first
first
Definition: dqmdumpme.py:55
trklet::VMStubsTEMemory::nVMStubs
unsigned int nVMStubs() const
Definition: VMStubsTEMemory.h:26
trklet::VMStubsTEMemory::writeVMBendTable
void writeVMBendTable()
Definition: VMStubsTEMemory.cc:264
trklet::VMStubsTEMemory::VMStubsTEMemory
VMStubsTEMemory(std::string name, Settings const &settings, unsigned int iSector)
Definition: VMStubsTEMemory.cc:8
trklet::VMStubsTEMemory::extra_
bool extra_
Definition: VMStubsTEMemory.h:61
trklet::VMStubsTEMemory::disk_
int disk_
Definition: VMStubsTEMemory.h:57
SurfaceOrientation::inner
Definition: Surface.h:19
trklet::VMStubsTEMemory::isinner_
bool isinner_
Definition: VMStubsTEMemory.h:63
trklet::VMStubsTEMemory::extended_
bool extended_
Definition: VMStubsTEMemory.h:62
trklet::VMStubsTEMemory::layer_
int layer_
Definition: VMStubsTEMemory.h:56
trklet::VMStubsTEMemory::getVMStubTE
const VMStubTE & getVMStubTE(unsigned int i) const
Definition: VMStubsTEMemory.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::VMStubsTEMemory::addVMStub
bool addVMStub(VMStubTE vmstub, int bin)
Definition: VMStubsTEMemory.cc:61
trklet::VMStubsTEMemory::other_
VMStubsTEMemory * other_
Definition: VMStubsTEMemory.h:59
trklet::VMStubsTEMemory::phibin
int phibin() const
Definition: VMStubsTEMemory.h:38
trklet
Definition: AllProjectionsMemory.h:9
trklet::VMStubsTEMemory::clean
void clean() override
Definition: VMStubsTEMemory.cc:195
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
phimax
float phimax
Definition: ReggeGribovPartonMCHadronizer.h:106
VMStubTE.h
trklet::VMStubsTEMemory::passbend
bool passbend(unsigned int ibend) const
Definition: VMStubsTEMemory.h:48
trklet::VMStubsTEMemory::writeStubs
void writeStubs(bool first)
Definition: VMStubsTEMemory.cc:202
trklet::VMStubsTEMemory::getPhiRange
void getPhiRange(double &phimin, double &phimax, unsigned int iSeed, unsigned int inner)
Definition: VMStubsTEMemory.cc:225
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::nVMStubsBinned
unsigned int nVMStubsBinned(unsigned int bin) const
Definition: VMStubsTEMemory.h:28
trklet::VMStubsTEMemory::stubsvm_
std::vector< VMStubTE > stubsvm_
Definition: VMStubsTEMemory.h:67
trklet::VMStubsTEMemory::overlap_
bool overlap_
Definition: VMStubsTEMemory.h:60