]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Some fixes for one PCB mapping
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Aug 2009 08:48:27 +0000 (08:48 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Aug 2009 08:48:27 +0000 (08:48 +0000)
MUON/AliMUONMchViewApplication.cxx
MUON/AliMUONMchViewApplication.h
MUON/mapping/data/station345/R2B.pcb
MUON/mapping/data/station345/defineMotif.C
MUON/mapping/data/station345/makePadPos.C
MUON/mapping/data/station345/motifI1.dat
MUON/mapping/data/station345/motifL11.dat
MUON/mapping/data/station345/motifO17.dat [deleted file]
MUON/mapping/data/station345/motifR29.dat
MUON/mapping/data/station345/padPosO17.dat [deleted file]
MUON/mchview.cxx

index 5832a31f19dd9d6d865bbd410f2f358e50f17a9b..3be56881b49ba3cea2bf2e9f926045332dfba062 100644 (file)
@@ -353,6 +353,11 @@ AliMUONMchViewApplication::ReleaseNotes()
   
   TGTextView* rn = new TGTextView(t);
 
+  rn->AddLine("0.98");
+  rn->AddLine("");
+  rn->AddLine("Added --asciimapping option");
+  rn->AddLine("");
+  
   rn->AddLine("0.97");
   rn->AddLine("");
   rn->AddLine("Adding calibration option with Emelec (aka injection) gain");
index 90f47c5f52bc75382e01a9412859044a2329bc99..5892cfc9ca645049861ed98f639d4d838e820020 100644 (file)
@@ -30,7 +30,7 @@ public:
   void HandleMenu(Int_t i);
 
   /// Return the version number of the mchview application
-  static const char* Version() { return "0.97"; }
+  static const char* Version() { return "0.98"; }
   
   /// Return the SVN revision  and version number of the mchview application
   static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
index c79e76eff6ac15d28334b323befdc7ac971df169..6c3e1ab4fdcd059f97dfbca359bc5e10afd3f04c 100644 (file)
@@ -1,10 +1,10 @@
 # Bending PCB. Density 1. Rounded (type 2).
 # Placing motifs starting bottom left and going counter-clockwise
-# from  O17 to R30
+# from  O18 to R30
 
 SIZES 2.5 0.5 40 40
 
-MOTIF O17 10  0
+MOTIF O18 10  0
 MOTIF O18 12  0
 MOTIF O9  14  0
 
index 2ba3df7ab70c2153525da126856a189d331d0c53..563fba603a76cca7ea61c70b2e9ff10302fb79c9 100644 (file)
@@ -1,5 +1,5 @@
 //Given a list of gassiplex (manas) channel ranges, defines
-//a motif.dat file.
+//a motif.dat file (starting from bottom left)
 
 #include <fstream>
 #include <vector>
index f8fb7a6bd65d0e4f9b82335a61c27243f5222f31..dc6bca2b0c58498dd2dff0186a43177094b07c93 100644 (file)
@@ -24,7 +24,7 @@ std::vector<std::pair<int,int> > make_pattern(const std::string& what)
       cols.push_back(std::make_pair<int,int>(0,8));
     }
   else if ( what == "O9" || what == "O10" || what == "O11" || what == "O12" 
-           || what == "O17" || what == "O18" || what == "O19" || what == "O20" )
+           || what == "O18" || what == "O19" || what == "O20" )
     {
       add(cols,0,32);
       add(cols,0,32);
index 19fea1ea601f281132b828b7aafefd3c9dfc2e28..689ebda1e30a9ad5c920cb6a50cd9d742d513033 100644 (file)
 54     1       30      -
 53     1       31      -
 52     1       32      -
-33     1       33      -
-32     1       34      -
-31     1       35      -
-30     1       36      -
-29     1       37      -
-28     1       38      -
-27     1       39      -
-26     1       40      -
-25     1       41      -
-24     1       42      -
-23     1       43      -
-22     1       44      -
-21     1       45      -
-20     1       46      -
-19     1       47      -
-18     1       48      -
-17     1       49      -
-16     1       50      -
-15     1       51      -
-14     1       52      -
-13     1       53      -
-12     1       54      -
-11     1       55      -
-10     1       56      -
-     1       57      -
-     1       58      -
-     1       59      -
-     1       60      -
-     1       61      -
-     1       62      -
-3      1       63      -
-     1       64      -
+     1       33      -
+3      1       34      -
+     1       35      -
+     1       36      -
+     1       37      -
+     1       38      -
+     1       39      -
+     1       40      -
+10     1       41      -
+11     1       42      -
+12     1       43      -
+13     1       44      -
+14     1       45      -
+15     1       46      -
+16     1       47      -
+17     1       48      -
+18     1       49      -
+19     1       50      -
+20     1       51      -
+21     1       52      -
+22     1       53      -
+23     1       54      -
+24     1       55      -
+25     1       56      -
+26     1       57      -
+27     1       58      -
+28     1       59      -
+29     1       60      -
+30     1       61      -
+31     1       62      -
+32     1       63      -
+33     1       64      -
index dc80f846b752431314dc6dad6824e60d0739602f..5b4fbcc589707cd9bc1cf76ddf96789786fa51c5 100644 (file)
@@ -4,38 +4,38 @@
 #for slats there's no kapton connector, so it's always 1 (zero make the reader
 #abort, so it's not a valid value here).
 #
-58     1       1       -
-59     1       2       -
-60     1       3       -
-61     1       4       -
-62     1       5       -
-63     1       6       -
-64     1       7       -
-65     1       8       -
-66     1       9       -
-67     1       10      -
-68     1       11      -
-69     1       12      -
-70     1       13      -
-71     1       14      -
-72     1       15      -
-73     1       16      -
-74     1       17      -
-75     1       18      -
-76     1       19      -
-77     1       20      -
-78     1       21      -
-79     1       22      -
-80     1       23      -
-81     1       24      -
-82     1       25      -
-83     1       26      -
-52     1       27      -
-53     1       28      -
-54     1       29      -
-55     1       30      -
-56     1       31      -
-57     1       32      -
+77     1       1       -
+76     1       2       -
+75     1       3       -
+74     1       4       -
+73     1       5       -
+72     1       6       -
+71     1       7       -
+70     1       8       -
+69     1       9       -
+68     1       10      -
+67     1       11      -
+66     1       12      -
+65     1       13      -
+64     1       14      -
+63     1       15      -
+62     1       16      -
+61     1       17      -
+60     1       18      -
+59     1       19      -
+58     1       20      -
+57     1       21      -
+56     1       22      -
+55     1       23      -
+54     1       24      -
+53     1       25      -
+52     1       26      -
+83     1       27      -
+82     1       28      -
+81     1       29      -
+80     1       30      -
+79     1       31      -
+78     1       32      -
 2      1       33      -
 3      1       34      -
 4      1       35      -
diff --git a/MUON/mapping/data/station345/motifO17.dat b/MUON/mapping/data/station345/motifO17.dat
deleted file mode 100644 (file)
index faf2700..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-# Motif O17
-#
-#connecteur_berg kapton padname not_used
-#for slats there's no kapton connector, so it's always 1 (zero make the reader
-#abort, so it's not a valid value here).
-#
-52     1       1       -
-53     1       2       -
-54     1       3       -
-55     1       4       -
-56     1       5       -
-57     1       6       -
-58     1       7       -
-59     1       8       -
-60     1       9       -
-61     1       10      -
-62     1       11      -
-63     1       12      -
-64     1       13      -
-65     1       14      -
-66     1       15      -
-67     1       16      -
-68     1       17      -
-69     1       18      -
-70     1       19      -
-71     1       20      -
-72     1       21      -
-73     1       22      -
-74     1       23      -
-75     1       24      -
-76     1       25      -
-77     1       26      -
-78     1       27      -
-79     1       28      -
-80     1       29      -
-81     1       30      -
-82     1       31      -
-83     1       32      -
-33     1       33      -
-32     1       34      -
-31     1       35      -
-30     1       36      -
-29     1       37      -
-28     1       38      -
-27     1       39      -
-26     1       40      -
-25     1       41      -
-24     1       42      -
-23     1       43      -
-22     1       44      -
-21     1       45      -
-20     1       46      -
-19     1       47      -
-18     1       48      -
-17     1       49      -
-16     1       50      -
-15     1       51      -
-14     1       52      -
-13     1       53      -
-12     1       54      -
-11     1       55      -
-10     1       56      -
-9      1       57      -
-8      1       58      -
-7      1       59      -
-6      1       60      -
-5      1       61      -
-4      1       62      -
-3      1       63      -
-2      1       64      -
index 4f8636d3f22da0f04c2372f7f5d5d30d3c03d0fa..8ec794ff06539d6c199d71594313c68c6b49b470 100644 (file)
@@ -4,40 +4,40 @@
 #for slats there's no kapton connector, so it's always 1 (zero make the reader
 #abort, so it's not a valid value here).
 #
-52     1       1       -
-53     1       2       -
-54     1       3       -
-55     1       4       -
-56     1       5       -
-57     1       6       -
-58     1       7       -
-59     1       8       -
-60     1       9       -
-61     1       10      -
-62     1       11      -
-63     1       12      -
-64     1       13      -
-65     1       14      -
-66     1       15      -
-67     1       16      -
-68     1       17      -
-69     1       18      -
-70     1       19      -
-71     1       20      -
-72     1       21      -
-73     1       22      -
-74     1       23      -
-75     1       24      -
-76     1       25      -
-77     1       26      -
-78     1       27      -
-79     1       28      -
-80     1       29      -
-81     1       30      -
-82     1       31      -
-83     1       32      -
-2      1       33      -
-3      1       34      -
+83     1       1       -
+82     1       2       -
+81     1       3       -
+80     1       4       -
+79     1       5       -
+78     1       6       -
+77     1       7       -
+76     1       8       -
+75     1       9       -
+74     1       10      -
+73     1       11      -
+72     1       12      -
+71     1       13      -
+70     1       14      -
+69     1       15      -
+68     1       16      -
+67     1       17      -
+66     1       18      -
+65     1       19      -
+64     1       20      -
+63     1       21      -
+62     1       22      -
+61     1       23      -
+60     1       24      -
+59     1       25      -
+58     1       26      -
+57     1       27      -
+56     1       28      -
+55     1       29      -
+54     1       30      -
+53     1       31      -
+52     1       32      -
+3      1       33      -
+2      1       34      -
 4      1       35      -
 5      1       36      -
 6      1       37      -
diff --git a/MUON/mapping/data/station345/padPosO17.dat b/MUON/mapping/data/station345/padPosO17.dat
deleted file mode 100644 (file)
index f6927f0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-1      0       0
-2      0       1
-3      0       2
-4      0       3
-5      0       4
-6      0       5
-7      0       6
-8      0       7
-9      0       8
-10     0       9
-11     0       10
-12     0       11
-13     0       12
-14     0       13
-15     0       14
-16     0       15
-17     0       16
-18     0       17
-19     0       18
-20     0       19
-21     0       20
-22     0       21
-23     0       22
-24     0       23
-25     0       24
-26     0       25
-27     0       26
-28     0       27
-29     0       28
-30     0       29
-31     0       30
-32     0       31
-33     1       0
-34     1       1
-35     1       2
-36     1       3
-37     1       4
-38     1       5
-39     1       6
-40     1       7
-41     1       8
-42     1       9
-43     1       10
-44     1       11
-45     1       12
-46     1       13
-47     1       14
-48     1       15
-49     1       16
-50     1       17
-51     1       18
-52     1       19
-53     1       20
-54     1       21
-55     1       22
-56     1       23
-57     1       24
-58     1       25
-59     1       26
-60     1       27
-61     1       28
-62     1       29
-63     1       30
-64     1       31
index ca23dc19e584cd5f620bfd262bda98ccda43fa4c..f39a511870c6dfa45e6f348900c5e2cd0912ac5a 100644 (file)
 #include <TROOT.h>
 #include <TStyle.h>
 
+#include "AliMpDataProcessor.h"
+#include "AliMpDataMap.h"
+#include "AliMpDataStreams.h"
+#include "AliMpDDLStore.h"
+
+
 //______________________________________________________________________________
 Int_t Usage()
 {
@@ -43,6 +49,7 @@ Int_t Usage()
   cout << "  --use filename.root : reuse a previously saved (from this program) root file. Several --use can be used ;-)" << endl;
   cout << "  --geometry #x#+#+# : manually specify the geometry of the window, ala X11..., e.g. --geometry 1280x900+1600+0 will" << endl;
   cout << "    get a window of size 1280x900, located at (1600,0) from the top-left of the (multihead) display " << endl;
+  cout << "  --asciimapping : load mapping from ASCII files instead of OCDB (for debug and experts only...)" << endl;
   return -1;
 }
 
@@ -63,7 +70,8 @@ int main(int argc, char** argv)
   Bool_t isGeometryFixed(kFALSE);
   Int_t gix, giy;
   Int_t gox,goy;
-
+  Bool_t ASCIImapping(kFALSE);
+  
   for ( Int_t i = 0; i <= args.GetLast(); ++i ) 
   {
     TString a(static_cast<TObjString*>(args.At(i))->String());
@@ -87,6 +95,10 @@ int main(int argc, char** argv)
       nok += 2;
       ++i;
     }
+    else if ( a == "--asciimapping" )
+    {
+      ASCIImapping = kTRUE;
+    }
     
     else
     {
@@ -104,6 +116,14 @@ int main(int argc, char** argv)
   AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   AliCDBManager::Instance()->SetRun(0);
  
+  if ( ASCIImapping ) 
+  {
+    AliMpDataProcessor mp;
+    AliMpDataMap* map = mp.CreateDataMap("data");
+    AliMpDataStreams dataStreams(map);
+    AliMpDDLStore::ReadData(dataStreams);
+  }
+  
   gROOT->SetStyle("Plain");  
   gStyle->SetPalette(1);
   Int_t n = gStyle->GetNumberOfColors();