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

Go to the documentation of this file.
00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */
00002 #include "geometry/GassiplexStripChannel.hh"
00003 #include "geometry/GassiplexStripChamber1.hh"
00004 #include "geometry/Chip.hh"
00005 #include "geometry/Board.hh"
00006 #include "geometry/Chamber.hh"
00007 
00008 #include "tools/Log.hh"
00009 #include "tools/Toolbox.hh"
00010 
00011 #include <iostream>
00012 
00013 
00014 using namespace std;
00015 
00016 
00017 //--------------- Constructeur -------------//
00018 GassiplexStripChannel::GassiplexStripChannel(const Chip& aChip, const i32 aColumn,const i32 aRow, const i32 aId):Channel(aChip, "GassiplexStripChannel channel",aColumn,aRow,aId), xLenght(0), yLenght(0)
00019 {
00020   //FILE_LOG(logDEBUG) << "------GassiplexStripChannel constructor.:hardId: "<< hardId << " ,column: " << column << " ,row: " << row  << endl;
00021  try
00022   {
00023     const GassiplexStripChamber1 &chamber = dynamic_cast< const GassiplexStripChamber1 &> (this->getChip().getBoard().getChamber());
00024     if  (chamber.getHorizontal() == true )
00025     { // Strip horizontal
00026       this->xLenght =   250; // in micrometer
00027       this->yLenght =   100000; // in micrometer
00028     }
00029     else
00030     { // Strip vertical
00031       this->xLenght =   100000; ;// in micrometer => 10 cm
00032       this->yLenght =   250; ;// in micrometer => 10 cm
00033     }
00034   }
00035   catch (...)
00036   {
00037     exit(-1);
00038   }
00039 
00040 
00041 }
00042 //--------------- Destructeur -------------//
00043 GassiplexStripChannel::~GassiplexStripChannel()
00044 {
00045   FILE_LOG(logDEBUG1) << "------GassiplexStripChannel destructeur"  << endl;
00046 }
00047 

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