#include <GFBookkeeping.h>
|
void | reset () |
|
void | setNhits (int n) |
|
void | bookMatrices (std::string key) |
|
void | bookGFDetPlanes (std::string key) |
|
void | bookNumbers (std::string key, double val=0.) |
|
void | setMatrix (std::string key, unsigned int index, const TMatrixT< Double_t > &mat) |
|
void | setDetPlane (std::string key, unsigned int index, const GFDetPlane &pl) |
|
void | setNumber (std::string key, unsigned int index, const double &num) |
|
bool | getMatrix (std::string key, unsigned int index, TMatrixT< Double_t > &mat) const |
|
bool | getDetPlane (std::string key, unsigned int index, GFDetPlane &pl) const |
|
bool | getNumber (std::string key, unsigned int index, double &num) const |
|
std::vector< std::string > | getMatrixKeys () const |
|
std::vector< std::string > | getGFDetPlaneKeys () const |
|
std::vector< std::string > | getNumberKeys () const |
|
void | addFailedHit (unsigned int) |
|
unsigned int | hitFailed (unsigned int) |
|
unsigned int | getNumFailed () |
|
| GFBookkeeping () |
|
| GFBookkeeping (const GFBookkeeping &) |
|
virtual | ~GFBookkeeping () |
|
void | Streamer (TBuffer &) |
|
void | clearAll () |
|
void | clearFailedHits () |
|
void | Print (std::ostream &out=std::cout) const |
|
Definition at line 34 of file GFBookkeeping.h.
genf::GFBookkeeping::GFBookkeeping |
( |
| ) |
|
|
inline |
Definition at line 26 of file GFBookkeeping.cxx.
36 std::map<std::string,TMatrixT<Double_t>*>
::iterator it_here;
38 it = bk.fMatrices.begin();
40 while(it!=bk.fMatrices.end()){
41 it_here->second =
new TMatrixT<Double_t>[
fNhits];
43 (it_here->second)[i] = (it->second)[i];
49 it = bk.fNumbers.begin();
51 while(it!=bk.fNumbers.end()){
52 it_here->second =
new TMatrixT<Double_t>[
fNhits];
54 (it_here->second)[i] = (it->second)[i];
63 ip = bk.fPlanes.begin();
65 while(ip!=bk.fPlanes.end()){
68 (ip_here->second)[i] = ((ip->second)[i]);
std::map< std::string, TMatrixT< Double_t > * > fNumbers
std::map< std::string, TMatrixT< Double_t > * > fMatrices
std::vector< unsigned int > fFailedHits
std::map< std::string, GFDetPlane * > fPlanes
virtual genf::GFBookkeeping::~GFBookkeeping |
( |
| ) |
|
|
inlinevirtual |
void genf::GFBookkeeping::addFailedHit |
( |
unsigned int |
id | ) |
|
void genf::GFBookkeeping::bookGFDetPlanes |
( |
std::string |
key | ) |
|
Definition at line 212 of file GFBookkeeping.cxx.
214 GFException exc(
"fNhits not defined",__LINE__,__FILE__);
218 std::ostringstream ostr;
219 ostr <<
"The key " <<
key 220 <<
" is already occupied in genf::GFBookkeeping::bookGFDetPlanes()";
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
std::map< std::string, GFDetPlane * > fPlanes
void genf::GFBookkeeping::bookMatrices |
( |
std::string |
key | ) |
|
Definition at line 197 of file GFBookkeeping.cxx.
199 GFException exc(
"fNhits not defined",__LINE__,__FILE__);
203 std::ostringstream ostr;
204 ostr <<
"The key " <<
key 205 <<
" is already occupied in genf::GFBookkeeping::bookMatrices()";
std::map< std::string, TMatrixT< Double_t > * > fMatrices
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
void genf::GFBookkeeping::bookNumbers |
( |
std::string |
key, |
|
|
double |
val = 0. |
|
) |
| |
Definition at line 228 of file GFBookkeeping.cxx.
230 GFException exc(
"fNhits not defined",__LINE__,__FILE__);
234 std::ostringstream ostr;
235 ostr <<
"The key " <<
key 236 <<
" is already occupied in genf::GFBookkeeping::bookNumbers()";
241 for(
int i=0;i<
fNhits;++i){
std::map< std::string, TMatrixT< Double_t > * > fNumbers
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
std::map< std::string, GFDetPlane * > fPlanes
void genf::GFBookkeeping::clearAll |
( |
| ) |
|
Definition at line 406 of file GFBookkeeping.cxx.
407 std::map<std::string, TMatrixT<Double_t>* >
::iterator itMat;
409 if(itMat->second!=NULL)
delete [] itMat->second;
413 if(itPl->second!=NULL)
delete [] itPl->second;
415 std::map<std::string, TMatrixT<Double_t>* >
::iterator itNum;
417 if(itNum->second!=NULL)
delete [] itNum->second;
std::map< std::string, TMatrixT< Double_t > * > fNumbers
std::map< std::string, TMatrixT< Double_t > * > fMatrices
std::map< std::string, GFDetPlane * > fPlanes
void genf::GFBookkeeping::clearFailedHits |
( |
| ) |
|
Definition at line 322 of file GFBookkeeping.cxx.
328 std::ostringstream ostr;
329 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::getGFDetPlane()";
334 std::ostringstream ostr;
335 ostr <<
"The index " <<
index 336 <<
" is out of range in genf::GFBookkeeping::getGFDetPlane()";
340 pl = iPlane->second[
index];
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
std::map< std::string, GFDetPlane * > fPlanes
Definition at line 432 of file GFBookkeeping.cxx.
433 std::vector< std::string >
keys;
436 if(it->second!=NULL) keys.push_back(it->first);
std::map< std::string, GFDetPlane * > fPlanes
bool genf::GFBookkeeping::getMatrix |
( |
std::string |
key, |
|
|
unsigned int |
index, |
|
|
TMatrixT< Double_t > & |
mat |
|
) |
| const |
Definition at line 301 of file GFBookkeeping.cxx.
306 std::ostringstream ostr;
307 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::getMatrix()";
312 std::ostringstream ostr;
313 ostr <<
"The index " <<
index 314 <<
" is out of range in genf::GFBookkeeping::getMatrix()";
318 mat.ResizeTo(iMatrix->second[index]);
319 mat = iMatrix->second[
index];
std::map< std::string, TMatrixT< Double_t > * > fMatrices
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition at line 424 of file GFBookkeeping.cxx.
425 std::vector< std::string >
keys;
428 if(it->second!=NULL) keys.push_back(it->first);
std::map< std::string, TMatrixT< Double_t > * > fMatrices
bool genf::GFBookkeeping::getNumber |
( |
std::string |
key, |
|
|
unsigned int |
index, |
|
|
double & |
num |
|
) |
| const |
Definition at line 343 of file GFBookkeeping.cxx.
348 std::ostringstream ostr;
349 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::getNumber()";
354 std::ostringstream ostr;
355 ostr <<
"The index " <<
index 356 <<
" is out of range in genf::GFBookkeeping::getNumber()";
std::map< std::string, TMatrixT< Double_t > * > fNumbers
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition at line 440 of file GFBookkeeping.cxx.
441 std::vector< std::string >
keys;
444 if(it->second!=NULL) keys.push_back(it->first);
std::map< std::string, TMatrixT< Double_t > * > fNumbers
unsigned int genf::GFBookkeeping::getNumFailed |
( |
| ) |
|
unsigned int genf::GFBookkeeping::hitFailed |
( |
unsigned int |
id | ) |
|
Definition at line 372 of file GFBookkeeping.cxx.
373 unsigned int retVal = 0;
std::vector< unsigned int > fFailedHits
void genf::GFBookkeeping::Print |
( |
std::ostream & |
out = std::cout | ) |
const |
Definition at line 450 of file GFBookkeeping.cxx.
451 out <<
"=============genf::GFBookkeeping::print()==============" <<
std::endl;
452 out <<
"-----printing all matrices:------" <<
std::endl;
454 for(
unsigned int i=0;i<keys.size();++i){
455 out <<
"key " << keys.at(i) <<
" has " <<
fNhits 457 for(
int j=0;j<
fNhits;++j){
458 TMatrixT<Double_t>
m;
463 out <<
"-----printing all GFDetPlanes:------" <<
std::endl;
465 for(
unsigned int i=0;i<keys.size();++i){
466 out <<
"key " << keys.at(i) <<
" has " << fNhits
468 for(
int j=0;j<
fNhits;++j){
474 out <<
"-----printing all numbers:------" <<
std::endl;
476 for(
unsigned int i=0;i<keys.size();++i){
477 out <<
"key " << keys.at(i) <<
" has " << fNhits
479 for(
int j=0;j<
fNhits;++j){
485 out <<
"-----failed hits:------" <<
std::endl;
void Print(std::ostream &out=std::cout) const
std::vector< unsigned int > fFailedHits
bool getNumber(std::string key, unsigned int index, double &num) const
std::vector< std::string > getMatrixKeys() const
std::vector< std::string > getGFDetPlaneKeys() const
bool getMatrix(std::string key, unsigned int index, TMatrixT< Double_t > &mat) const
std::vector< std::string > getNumberKeys() const
bool getDetPlane(std::string key, unsigned int index, GFDetPlane &pl) const
QTextStream & endl(QTextStream &s)
virtual void genf::GFBookkeeping::Print |
( |
Option_t * |
| ) |
const |
|
inlineprivatevirtual |
Definition at line 86 of file GFBookkeeping.h.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
void genf::GFBookkeeping::reset |
( |
| ) |
|
Definition at line 386 of file GFBookkeeping.cxx.
394 for(
unsigned int i=0;i<matKeys.size();++i){
397 for(
unsigned int i=0;i<planeKeys.size();++i){
400 for(
unsigned int i=0;i<numKeys.size();++i){
void bookGFDetPlanes(std::string key)
void bookMatrices(std::string key)
std::vector< std::string > getMatrixKeys() const
std::vector< std::string > getGFDetPlaneKeys() const
void bookNumbers(std::string key, double val=0.)
std::vector< std::string > getNumberKeys() const
Definition at line 266 of file GFBookkeeping.cxx.
269 std::ostringstream ostr;
270 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::setGFDetPlane()";
275 std::ostringstream ostr;
276 ostr <<
"The index " <<
index 277 <<
" is out of range in genf::GFBookkeeping::setGFDetPlane()";
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
std::map< std::string, GFDetPlane * > fPlanes
void genf::GFBookkeeping::setMatrix |
( |
std::string |
key, |
|
|
unsigned int |
index, |
|
|
const TMatrixT< Double_t > & |
mat |
|
) |
| |
Definition at line 248 of file GFBookkeeping.cxx.
251 std::ostringstream ostr;
252 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::setMatrix()";
257 std::ostringstream ostr;
258 ostr <<
"The index " <<
index 259 <<
" is out of range in genf::GFBookkeeping::setMatrix()";
std::map< std::string, TMatrixT< Double_t > * > fMatrices
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
void genf::GFBookkeeping::setNhits |
( |
int |
n | ) |
|
|
inline |
void genf::GFBookkeeping::setNumber |
( |
std::string |
key, |
|
|
unsigned int |
index, |
|
|
const double & |
num |
|
) |
| |
Definition at line 283 of file GFBookkeeping.cxx.
286 std::ostringstream ostr;
287 ostr <<
"The key " <<
key <<
" is unknown in genf::GFBookkeeping::setNumber()";
292 std::ostringstream ostr;
293 ostr <<
"The index " <<
index 294 <<
" is out of range in genf::GFBookkeeping::setNumber()";
std::map< std::string, TMatrixT< Double_t > * > fNumbers
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
void genf::GFBookkeeping::Streamer |
( |
TBuffer & |
R__b | ) |
|
Definition at line 78 of file GFBookkeeping.cxx.
83 if (R__b.IsReading()) {
86 TObject::Streamer(R__b);
95 TMatrixT<Double_t> mat;
100 for(
unsigned int i=0;i<nkeys;++i){
104 for(
int j=0;j<
fNhits;++j){
112 for(
unsigned int i=0;i<nkeys;++i){
116 for(
int j=0;j<
fNhits;++j){
124 for(
unsigned int i=0;i<nkeys;++i){
128 for(
int j=0;j<
fNhits;++j){
136 unsigned int nFailedHits;
138 unsigned int aFailedHit;
139 for(
unsigned int i=0;i<nFailedHits;++i){
146 TObject::Streamer(R__b);
151 std::vector<std::string>
keys;
154 R__b << (
unsigned int)(keys.size());
155 for(
unsigned int i=0;i<keys.size();++i){
156 TString
s(keys.at(i));
158 for(
int j=0;j<
fNhits;++j){
159 ((
fMatrices[keys.at(i)])[j]).Streamer(R__b);
166 R__b << (
unsigned int)(keys.size());
167 for(
unsigned int i=0;i<keys.size();++i){
168 TString
s(keys.at(i));
170 for(
int j=0;j<
fNhits;++j){
171 ((
fPlanes[keys.at(i)])[j]).Streamer(R__b);
178 R__b << (
unsigned int)(keys.size());
179 for(
unsigned int i=0;i<keys.size();++i){
180 TString
s(keys.at(i));
182 for(
int j=0;j<
fNhits;++j){
183 ((
fNumbers[keys.at(i)])[j]).Streamer(R__b);
void setDetPlane(std::string key, unsigned int index, const GFDetPlane &pl)
std::map< std::string, TMatrixT< Double_t > * > fNumbers
std::map< std::string, TMatrixT< Double_t > * > fMatrices
void setNumber(std::string key, unsigned int index, const double &num)
void setMatrix(std::string key, unsigned int index, const TMatrixT< Double_t > &mat)
void bookGFDetPlanes(std::string key)
std::vector< unsigned int > fFailedHits
void bookMatrices(std::string key)
std::vector< std::string > getMatrixKeys() const
std::vector< std::string > getGFDetPlaneKeys() const
void bookNumbers(std::string key, double val=0.)
std::vector< std::string > getNumberKeys() const
std::map< std::string, GFDetPlane * > fPlanes
std::vector< unsigned int > genf::GFBookkeeping::fFailedHits |
|
private |
std::map<std::string, TMatrixT<Double_t>* > genf::GFBookkeeping::fMatrices |
|
private |
int genf::GFBookkeeping::fNhits |
|
private |
std::map<std::string, TMatrixT<Double_t>* > genf::GFBookkeeping::fNumbers |
|
private |
The documentation for this class was generated from the following files: