CMS 3D CMS Logo

TETableBase.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 using namespace trklet;
5 
6 TETableBase::TETableBase(Settings const& settings) : settings_(settings) {}
7 
9  ofstream out;
10  out.open(name.c_str());
11  out << "{" << endl;
12  for (unsigned int i = 0; i < table_.size(); i++) {
13  if (i != 0) {
14  out << "," << endl;
15  }
16 
17  assert(nbits_ > 0);
18 
19  int itable = table_[i];
20  if (positive) {
21  if (table_[i] < 0) {
22  itable = (1 << nbits_) - 1;
23  }
24  }
25 
26  out << itable;
27  }
28  out << endl << "};" << endl;
29  out.close();
30 }
mps_fire.i
i
Definition: mps_fire.py:355
trklet::Settings
Definition: Settings.h:26
cms::cuda::assert
assert(be >=bs)
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::TETableBase::writeVMTable
void writeVMTable(std::string name, bool positive=true)
Definition: TETableBase.cc:8
TETableBase.h
trklet::TETableBase::table_
std::vector< int > table_
Definition: TETableBase.h:28
trklet
Definition: AllProjectionsMemory.h:9
std
Definition: JetResolutionObject.h:76
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
trklet::TETableBase::nbits_
int nbits_
Definition: TETableBase.h:29