00001
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
00014
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
00027
00028 GassiplexStripChamber1::~GassiplexStripChamber1()
00029 {
00030
00031 }
00032
00033
00034
00035
00036 void GassiplexStripChamber1::init()
00037 {
00038
00039
00040
00041 if ( horizontal )
00042 {
00043 boards.insert(make_pair(1, new GassiplexBoardStrip(*this, 0, 0, 1, 96 , 1)));
00044 }
00045 else
00046 {
00047 boards.insert(make_pair(1, new GassiplexBoardStrip(*this, 0, 0, 96, 1 , 1)));
00048 }
00049 }
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066