Compounds | |
| class | ChargeService |
| Service providing the charge of HepMC::GenParticle / ReconstructedParticle. More... | |
| class | Cslice_iter |
| class | HeaderPrinter |
| Print maker headers to log file. More... | |
| class | IClusterStrategy |
| class | KinematicHelper |
| Provides implementation of useful manipulations of entities honouring the IKinematic interface. More... | |
| class | Matrix |
| class | SimpleKinematic |
| Convertor from HepMC::GenParticle to IKinematic. More... | |
| class | Slice_iter |
| class | TesIoStat |
| class | TesIO |
Functions | |
| double | mul (const Cslice_iter< double > &v1, const valarray< double > &v2) |
| valarray< double > | operator * (const Matrix &m, const valarray< double > &v) |
| std::string | numberToString (int intn) |
|
||||||||||||
|
Definition at line 22 of file Matrix.cxx. Referenced by operator *().
00023 {
00024 double res=0;
00025 for( size_t i=0; i<v2.size(); i++) res+=v1[i]*v2[i];
00026 return res;
00027 }
|
|
||||||||||||
|
Definition at line 29 of file Matrix.cxx. References Atlfast::Matrix::dim2(), mul(), and Atlfast::Matrix::row().
00029 {
00030 valarray<double> res(m.dim2());
00031 for(size_t i=0; i<m.dim2(); i++) res[i]=mul(m.row(i), v);
00032 return res;
00033 }
|
|
|
Definition at line 4 of file NumberToString.cxx.
00004 {
00005 double main;
00006 char* singleChar;
00007 int asciiNumber;
00008 std::string number;
00009 double remainder;
00010 int digit;
00011
00012 main = static_cast<double>(intn);
00013
00014 while (main >= 1) {
00015 main /= 10;
00016 remainder = (main - static_cast<int>(main));
00017
00018 digit = static_cast<int>(10*remainder);
00019 if ( fabs( static_cast<double>(digit) - (10*remainder) ) > 0.5 ) digit++;
00020
00021 asciiNumber= digit + 48;
00022 singleChar = ((char*)&asciiNumber);
00023 number.insert(0,singleChar);
00024 main = static_cast<double>(static_cast<int>(main));
00025 }
00026 if (number == "") number="0";
00027 return number;
00028 }
|
1.3-rc1