Toolbox Class Reference

#include <Toolbox.hh>

Collaboration diagram for Toolbox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~Toolbox ()

Static Public Member Functions

static void readSteerFile (std::string fileNamne, bool verbose)
static unsigned short bigTolittle (short value)
static void addIntToString (std::string &chaine, int value)
static void addFloatToString (std::string &chaine, float value)
static void printRepere (bool xRotation, bool yRotation, int zRotation)

Static Public Attributes

static const unsigned int MASK_LSB = 0x00ff
static const unsigned int MASK_MSB = 0xff00
static const unsigned long MASK_CHANNEL_DATA = 0x00000fff
static const unsigned long MASK_CHANNEL_NUMBER = 0x007ff000
static const unsigned int MASK_12BIT = 0x0fff

Private Member Functions

 Toolbox ()

Detailed Description

Definition at line 21 of file Toolbox.hh.


Constructor & Destructor Documentation

Toolbox::~Toolbox (  ) 

Definition at line 24 of file Toolbox.cpp.

00025 {
00026 }

Toolbox::Toolbox (  )  [private]

Definition at line 19 of file Toolbox.cpp.

00020 {
00021 }


Member Function Documentation

static void Toolbox::readSteerFile ( std::string  fileNamne,
bool  verbose 
) [static]

unsigned short Toolbox::bigTolittle ( short  value  )  [static]

Definition at line 66 of file Toolbox.cpp.

00067 {
00068 
00069 unsigned short lsb =  value  & MASK_LSB  ;
00070     lsb = lsb << 8 ;
00071 
00072     unsigned short msb =  value & MASK_MSB;
00073     msb = msb >> 8 ;
00074 
00075 
00076 
00077     unsigned short result = lsb + msb;
00078     return result;
00079 }

void Toolbox::addIntToString ( std::string &  chaine,
int  value 
) [static]

Definition at line 92 of file Toolbox.cpp.

Referenced by BeamProfile::DrawDeltaT(), BeamProfile::DrawHitPerChannelDist(), BeamProfile::DrawHitPerChipDist(), BeamProfile::FillXyDist(), and main().

00093 {
00094 
00095         std::string s;
00096         std::stringstream out;
00097         out << value;
00098         s = out.str();
00099         chaine = chaine.append(s);
00100 }

void Toolbox::addFloatToString ( std::string &  chaine,
float  value 
) [static]

Definition at line 82 of file Toolbox.cpp.

Referenced by main().

00083 {
00084 
00085         std::string s;
00086         std::stringstream out;
00087         out << value;
00088         s = out.str();
00089         chaine = chaine.append(s);
00090 }

void Toolbox::printRepere ( bool  xRotation,
bool  yRotation,
int  zRotation 
) [static]

Definition at line 29 of file Toolbox.cpp.

Referenced by main().

00030 {
00031   cout <<" \n ------------- ROTATIONS" << endl;
00032 
00033   int result = (xRotation== false) ? 0 : 180; 
00034   cout <<  "### xRotation " << result << " degree." <<  endl;
00035 
00036   result = (yRotation== false) ?  0 : 180;
00037   cout <<  "### yRotation " << result <<  " degree." << endl;
00038 
00039   cout <<  "### zRotation " << zRotation << " degree." << endl;
00040   
00041 
00042   cout << endl << "### Nous utilisons un repere irthonorme directe ###" <<endl;
00043   cout << "" << endl;
00044   cout << "                                             X" << endl;
00045   cout << "                                              " << endl;
00046   cout << "                                             ^" << endl;
00047   cout << "                                            / \\ " << endl;
00048   cout << "                                             |" << endl;
00049   cout << "                                             |" << endl;
00050   cout << "                                             |" << endl;
00051   cout << "                                             |" << endl;
00052   cout << "                                             |" << endl;
00053   cout << "                                             |" << endl;
00054   cout << "SYSTEM de COORDONNEES: (0,0) au centre   ----X---------->  Y     " << endl;
00055   cout << "  Z rentrant.                                |" << endl;
00056   cout << "                                             |" << endl;
00057   cout << "                                             |" << endl;
00058   cout << "                                             |" << endl;
00059 
00060 }


Member Data Documentation

const unsigned int Toolbox::MASK_LSB = 0x00ff [static]

Definition at line 32 of file Toolbox.hh.

Referenced by bigTolittle().

const unsigned int Toolbox::MASK_MSB = 0xff00 [static]

Definition at line 33 of file Toolbox.hh.

Referenced by bigTolittle().

const unsigned long Toolbox::MASK_CHANNEL_DATA = 0x00000fff [static]

Definition at line 34 of file Toolbox.hh.

Referenced by Centaure::getNextEvent().

const unsigned long Toolbox::MASK_CHANNEL_NUMBER = 0x007ff000 [static]

Definition at line 35 of file Toolbox.hh.

Referenced by Centaure::getNextEvent().

const unsigned int Toolbox::MASK_12BIT = 0x0fff [static]

Definition at line 36 of file Toolbox.hh.

Referenced by Centaure::getNextEvent().


The documentation for this class was generated from the following files:
Generated on Mon Jun 11 16:59:07 2012 for MicromegasFramework by  doxygen 1.4.7