/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/geometry/GassiplexChamber1.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/GassiplexChamber1.hh"
00004 #include "geometry/GassiplexBoardBeta21.hh"
00005 
00006 #include <iostream>
00007 #include "tools/Log.hh"
00008 
00009 #define NBCHANNEL 96
00010 
00011 //--------------------------//
00012 // mapping between a channel number (0 - n-1) and the physical channel map
00013 //static int map(const int chNum) {
00014 //  int mod = (chNum % 16) * 2;
00015 //  return((((chNum & 16) == 0) ? mod : 15 - mod) + (chNum / 16) * 16);
00016 //}
00017 
00018 using namespace std;
00019 
00020 //--------------- Default Constructor -------------//
00021 GassiplexChamber1::GassiplexChamber1(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)
00022   : Chamber(aX, aY , aZ ,  xRotation,yRotation,zRotation,  nbColumns, nbRows , id )
00023 {
00024   FILE_LOG(logDEBUG) << "---GassiplexChamber1 contructor avec zPos =" << zPos << " id=" << id << endl;
00025   description = "GassiplexChamber1";
00026   type = GASSIPLEXCHAMBER1;
00027   myIsValid = true;
00028   init();
00029 }
00030 
00031 //--------------- Destructor -------------//
00032 GassiplexChamber1::~GassiplexChamber1()
00033 {
00034   //FILE_LOG(logDEBUG) << "---GassiplexChamber1 destructor"<< endl;
00035 }
00036 
00037 //--------------------------//
00038 void GassiplexChamber1::init()
00039 {
00040     // !!!!!!!!!!! ATTENTION. Le board id n'etant pas utilise pour la  reconstruction des Gassiplex, on l'utilise
00041     //   pour differencier BOARDBETA2_1 BOARDBETA2_4
00042   GassiplexBoardBeta21 *board =  new GassiplexBoardBeta21(*this, 0, 0, 16, 6,  1);
00043   boards.insert(make_pair(1, board));
00044 
00045 }
00046 

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