/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/geometry/GassiplexStripChamber1.cpp

Go to the documentation of this file.
00001 /* @version $Revision: 1393 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-12-16 00:10:36 +0100 (Fri, 16 Dec 2011) $ */
00002 
00003 #include "geometry/GassiplexStripChamber1.hh"
00004 #include "geometry/GassiplexBoardStrip.hh"
00005 
00006 #include "tools/Log.hh"
00007 #include <iostream>
00008 
00009 using namespace std;
00010 
00011 #define NBCHANNEL 384
00012 
00013 //--------------- Constructor -------------//
00014 //GassiplexStripChamber1::GassiplexStripChamber1(const i32 aX, const i32 aY, const i32 aZ, const i32 aId) : Chamber(aX, aY, aZ, aId)
00015 GassiplexStripChamber1::GassiplexStripChamber1(const float aX, const float aY, const float aZ, const bool   xRotation,const bool yRotation,const i16 zRotation, const ui32 nbColumns, const ui32 nbRows ,const i32 id, const bool _horizontal)
00016 : Chamber(aX, aY , aZ ,  xRotation,yRotation,zRotation, nbColumns, nbRows , id )
00017 //
00018 {
00019   FILE_LOG(logDEBUG) << "---GassiplexStripChamber1 contructor id["<< id << "]" << endl;
00020   description = "GassiplexStripChamber1";
00021   type = GASSIPLEXSTRIPCHAMBER1;
00022   myIsValid = true;
00023   horizontal = _horizontal;
00024   init();
00025 }
00026 //--------------- Destructor -------------//
00027 
00028 GassiplexStripChamber1::~GassiplexStripChamber1()
00029 {
00030   //FILE_LOG(logDEBUG) << "---GassiplexStripChamber1 destructor"<< endl;
00031 }
00032 
00033 
00034 //------------
00035 //--------------------------//
00036 void GassiplexStripChamber1::init()
00037 {
00038   // the board ID is used to make the channel Id (see GassiplexChip.init())  PAD Side
00039                 
00040 
00041   if ( horizontal )
00042   {
00043     boards.insert(make_pair(1, new GassiplexBoardStrip(*this, 0, 0, 1, 96 , 1)));  // Strip horizontal
00044   }
00045   else
00046   {
00047     boards.insert(make_pair(1, new GassiplexBoardStrip(*this, 0, 0, 96, 1 , 1)));  // Strip vertical
00048   }
00049 }
00050 /*
00051 //-------------------------------------------//
00052   const ui32  GassiplexStripChamber1::getXLength() const
00053   {
00054       const Board&  board = *(boards.begin()->second);
00055         //              cout << "GassiplexStripChamber1 getXLenght[" <<  this->nbColumns * ( board.getXLength() + this->getXGap() ) << "]" << endl;
00056      return this->nbColumns * ( board.getXLength() + this->getXGap() );
00057 
00058   }
00059 //-------------------------------------------//
00060   const ui32  GassiplexStripChamber1::getYLength() const
00061   {
00062       const Board&  board = *(boards.begin()->second);
00063         //              cout << "GassiplexStripChamber1 getYLenght[" <<  this->nbRows * ( board.getYLength() + this->getYGap() ) << "]" << endl;
00064       return this->nbRows * ( board.getYLength() + this->getYGap() );
00065   }
00066 */

Generated on Mon Jan 7 13:15:22 2013 for MicromegasFramework by  doxygen 1.4.7