/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/geometry/GassiplexChip.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 
00003 #include "geometry/GassiplexChip.hh"
00004 #include "geometry/GassiplexChannel.hh"
00005 #include "geometry/Board.hh"
00006 
00007 #include <iostream>
00008 #include "tools/Log.hh"
00009 
00010 #define NBCHANNEL 96
00011 
00012 using namespace std;
00013 
00014 //--------------------------//
00015 //GassiplexChip::GassiplexChip(const Board& aBoard, const i32 aX, const i32 aY, const i32 aId) : Chip(aBoard, aX, aY, aId) {
00016 GassiplexChip::GassiplexChip(const Board& aBoard, const i32 aCol, const i32 aRow, const ui32 nbColumns,const ui32 nbRows ,const i32 aId ,const ui32 aSerialNumber )
00017 :Chip(aBoard, aCol, aRow, nbColumns, nbRows, aId, aSerialNumber)
00018 {       
00019   init();
00020   type = GASSIPLEX_TYPE;
00021 };
00022 
00023 //--------------------------//
00024 void GassiplexChip::init()
00025 {
00026   i32 channelId = id ;  /** Gassiplex -> chip Id == Channel Id ) **/
00027   GassiplexChannel* channel = new GassiplexChannel(*this, 0, 0, channelId);
00028   channels.insert(make_pair(channelId,channel));
00029 };

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