Locked History Actions

attachment:DrawKTUY05DripLine.C of 核図表

Attachment 'DrawKTUY05DripLine.C'

Download

#include "TLine.h"

#define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))

Int_t DrawKTUY05DripLine() {
  Int_t surfZ[] = {
    2,  2,  2,  3,  3,  3,  3,  4,  4,  4,  4,  5,  5,  5,  5,  6,  6,  6,  6,  7,
    7,  7,  7,  8,  8,  8,  8,  9,  9,  9,  9,  10, 10, 10, 10, 10, 10, 11, 11, 11,
    11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15,
    16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19,
    19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21,
    21, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25,
    25, 25, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 29, 29,
    29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31,
    31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33,
    33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36,
    37, 37, 37, 38, 38, 38, 38, 38, 38, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40,
    41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43,
    43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45,
    45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48,
    48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50,
    50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51,
    51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 54, 54,
    54, 54, 54, 54, 54, 55, 55, 55, 55, 56, 56, 56, 56, 56, 57, 57, 58, 58, 58, 58,
    58, 58, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61,
    61, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63,
    63, 63, 63, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
    64, 64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66,
    66, 66, 67, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
    68, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
    71, 71, 71, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
    73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
    74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76,
    76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78,
    78, 78, 79, 79, 79, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
    81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
    82, 82, 82, 82, 82, 83, 83, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85,
    85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87,
    87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
    88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
    90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 91, 91,
    91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 94, 94, 94, 94, 94, 94, 94, 95,
    96, 96, 96, 96, 96, 96, 96, 97, 98, 98, 98, 98, 98, 98, 99, 100,100,100,100,100,
    100,100,100,101,102,102,102,102,102,102,102,102,103,104,104,104,104,104,104,104,
    105,106,106,106,106,106,106,106,106,107,108,108,108,108,108,108,108,108,108,109,
    110,110,110,110,110,110,110,110,110,111,112,112,112,112,112,112,112,112,113,114,
    114,114,114,114,114,115,116,116,116,116,116,116,117,118,118,118,118,118,118,118,
    118,119,120,120,120,120,120,120,120,120,120,121,122,122,122,122,122,122,122,122,
    122,122,122,122,122,123,123,123,124,124,124,124,124,124,124,124,124,124,124,124,
    124,125,126,126,126,126,126,126,126,126,127,128,128,128,128,128,128,128,128,129,
    130,130,130,130,130};

  Int_t surfN[] = {
    3,  4,  6,  3,  5,  6,  8,  2,  7,  8,  10, 3,  9,  11, 12, 3,  4,  12, 14, 5,
    13, 15, 16, 5,  6,  16, 18, 7,  17, 18, 20, 7,  8,  19, 20, 22, 24, 9,  21, 23,
    24, 26, 8,  25, 26, 28, 9,  27, 28, 30, 9,  10, 11, 29, 30, 32, 12, 31, 32, 34,
    11, 12, 13, 14, 32, 34, 36, 15, 33, 35, 36, 38, 13, 14, 15, 36, 38, 40, 42, 16,
    37, 39, 40, 42, 44, 46, 15, 16, 17, 40, 42, 44, 46, 48, 50, 18, 41, 43, 45, 47,
    48, 50, 52, 17, 18, 19, 49, 50, 52, 20, 50, 52, 19, 20, 50, 52, 54, 21, 51, 53,
    54, 56, 20, 21, 22, 54, 56, 58, 23, 55, 57, 58, 22, 23, 24, 25, 26, 58, 27, 58,
    60, 62, 64, 66, 68, 26, 27, 28, 59, 61, 62, 64, 66, 68, 70, 29, 63, 65, 67, 68,
    70, 72, 74, 28, 29, 30, 31, 68, 70, 72, 74, 76, 78, 32, 69, 71, 73, 74, 76, 78,
    80, 82, 31, 32, 33, 74, 76, 78, 80, 82, 34, 75, 77, 79, 81, 83, 33, 34, 35, 84,
    36, 83, 84, 35, 36, 37, 38, 82, 84, 39, 82, 84, 37, 38, 39, 40, 82, 84, 86, 88,
    41, 83, 85, 86, 88, 90, 92, 94, 40, 41, 42, 86, 88, 90, 92, 94, 96, 98, 43, 87,
    89, 90, 92, 94, 96, 98, 100,42, 43, 44, 91, 92, 94, 96, 98, 100,102,45, 93, 95,
    97, 98, 100,102,104,44, 45, 46, 99, 100,102,104,106,47, 101,102,104,106,108,47,
    48, 103,104,106,108,110,112,116,49, 105,107,108,110,112,114,116,118,120,48, 49,
    50, 51, 52, 53, 54, 55, 56, 108,110,112,114,116,118,120,122,57, 109,111,112,114,
    115,117,119,121,122,124,53, 54, 55, 56, 113,122,124,126,57, 122,124,126,55, 56,
    57, 58, 122,124,126,59, 123,125,126,57, 58, 59, 60, 126,61, 127,59, 60, 61, 62,
    63, 126,64, 126,62, 63, 64, 65, 66, 126,128,136,67, 126,128,130,132,134,136,138,
    140,65, 66, 67, 68, 126,128,130,132,134,136,138,140,142,144,69, 127,128,130,131,
    133,135,137,138,140,142,144,146,67, 68, 69, 70, 71, 72, 128,130,138,140,142,144,
    146,148,73, 129,139,141,143,144,146,148,150,71, 72, 73, 74, 75, 76, 144,146,148,
    150,152,77, 145,147,148,150,152,154,74, 75, 76, 77, 78, 79, 80, 148,150,152,154,
    156,81, 149,151,152,154,156,158,77, 78, 79, 80, 81, 82, 152,154,156,158,160,172,
    83, 153,155,156,158,160,162,172,80, 81, 82, 83, 84, 156,158,160,162,164,170,172,
    85, 157,159,161,162,164,166,170,172,174,83, 84, 85, 86, 87, 88, 160,162,164,166,
    168,170,172,174,89, 161,163,164,166,168,169,171,173,174,86, 87, 88, 89, 90, 91,
    92, 165,166,168,174,176,93, 167,174,176,178,90, 91, 92, 93, 94, 95, 96, 174,176,
    178,180,97, 175,176,178,180,182,93, 94, 95, 96, 97, 98, 174,176,178,180,182,184,
    99, 175,177,178,180,182,184,95, 96, 97, 98, 99, 100,101,102,103,104,105,106,107,
    108,178,180,182,184,109,179,181,182,184,104,105,106,107,108,109,110,183,184,111,
    184,188,190,192,105,106,107,108,109,110,111,112,114,184,188,190,192,194,196,113,
    115,184,186,188,190,192,194,196,198,200,109,110,111,112,113,114,115,116,118,184,
    186,188,190,192,194,196,198,200,117,119,184,186,188,190,191,193,195,196,198,200,
    113,114,115,116,117,118,119,120,121,122,184,186,188,190,197,198,200,123,185,187,
    189,199,118,119,120,121,122,123,124,125,126,127,122,123,124,125,126,127,128,129,
    126,127,128,129,130,131,132,133,129,130,131,132,133,134,135,131,132,133,134,135,
    136,137,138,139,135,136,137,138,139,140,141,142,143,140,141,142,143,144,145,146,
    147,144,145,146,147,148,149,150,151,152,148,149,150,151,152,153,154,155,156,157,
    152,153,154,155,156,157,158,159,160,161,157,158,159,160,161,162,163,164,165,161,
    162,163,164,165,166,167,165,166,167,168,169,170,171,168,169,170,171,172,173,174,
    175,176,172,173,174,175,176,177,178,179,180,181,176,177,178,179,180,181,182,183,
    184,186,198,199,200,185,187,197,181,182,183,184,185,186,187,188,189,190,198,199,
    200,191,187,188,189,190,191,192,193,194,195,191,192,193,194,195,196,197,198,199,
    194,195,196,197,198};

  Int_t surfFlag[] = {
    9,  3,  11, 8,  1,  2,  11, 13, 1,  2,  11, 8,  1,  1,  3,  12, 4,  2,  11, 8,
    1,  1,  3,  12, 4,  2,  11, 8,  1,  2,  11, 12, 4,  1,  2,  11, 11, 8,  1,  1,
    2,  11, 13, 1,  2,  11, 8,  1,  2,  11, 12, 4,  4,  1,  2,  11, 8,  1,  2,  11,
    13, 4,  4,  4,  2,  10, 11, 8,  1,  1,  2,  11, 13, 5,  4,  2,  10, 11, 11, 8,
    1,  1,  2,  10, 11, 11, 13, 4,  4,  2,  10, 10, 10, 11, 11, 8,  1,  1,  1,  1,
    2,  10, 11, 13, 4,  4,  1,  2,  10, 8,  2,  10, 13, 4,  2,  10, 11, 8,  1,  1,
    2,  11, 13, 4,  4,  2,  10, 11, 8,  1,  1,  2,  13, 4,  4,  4,  4,  2,  8,  2,
    11, 11, 11, 11, 11, 13, 4,  4,  1,  1,  2,  10, 10, 10, 11, 8,  1,  1,  1,  2,
    10, 11, 11, 13, 4,  4,  4,  2,  10, 10, 10, 11, 11, 8,  1,  1,  1,  2,  10, 10,
    11, 11, 13, 4,  4,  2,  10, 10, 10, 10, 8,  1,  1,  1,  1,  3,  13, 4,  4,  3,
    8,  4,  2,  13, 4,  4,  4,  2,  10, 8,  2,  10, 13, 5,  4,  4,  2,  10, 11, 11,
    8,  1,  1,  2,  10, 11, 11, 11, 13, 4,  4,  2,  10, 10, 10, 10, 11, 11, 8,  1,
    1,  2,  10, 10, 10, 10, 11, 13, 4,  4,  1,  2,  10, 10, 10, 10, 11, 8,  1,  1,
    1,  2,  10, 10, 11, 13, 4,  4,  1,  2,  10, 10, 11, 8,  1,  2,  10, 10, 11, 12,
    4,  1,  2,  10, 10, 11, 11, 11, 8,  1,  1,  2,  10, 10, 11, 10, 11, 11, 13, 4,
    4,  4,  4,  4,  4,  4,  4,  2,  10, 10, 10, 10, 10, 10, 11, 8,  1,  1,  2,  8,
    1,  1,  1,  1,  2,  11, 13, 5,  5,  5,  1,  2,  10, 11, 8,  2,  10, 10, 13, 5,
    4,  4,  2,  10, 10, 8,  1,  1,  2,  13, 5,  4,  4,  2,  8,  7,  13, 5,  4,  4,
    4,  2,  8,  2,  13, 5,  4,  4,  4,  2,  11, 11, 8,  2,  10, 11, 11, 11, 10, 11,
    11, 13, 5,  4,  4,  2,  10, 10, 10, 10, 10, 10, 10, 11, 11, 8,  1,  2,  8,  1,
    1,  1,  1,  2,  10, 10, 10, 11, 13, 5,  4,  4,  4,  4,  2,  8,  2,  10, 10, 10,
    10, 11, 8,  1,  1,  1,  1,  2,  10, 10, 11, 13, 5,  4,  4,  4,  4,  2,  10, 10,
    10, 11, 8,  1,  1,  2,  10, 10, 11, 13, 5,  5,  4,  4,  4,  4,  2,  10, 10, 10,
    11, 8,  1,  1,  2,  10, 10, 11, 13, 5,  5,  5,  4,  4,  2,  10, 10, 10, 11, 11,
    8,  1,  1,  2,  10, 10, 11, 10, 13, 5,  5,  4,  4,  2,  10, 10, 10, 11, 11, 10,
    8,  1,  1,  5,  2,  10, 11, 10, 10, 11, 13, 5,  4,  4,  4,  4,  2,  10, 10, 10,
    11, 10, 10, 10, 8,  1,  1,  2,  10, 8,  1,  1,  1,  2,  13, 5,  5,  4,  4,  4,
    4,  1,  2,  8,  2,  11, 8,  1,  2,  10, 11, 13, 5,  5,  4,  4,  4,  4,  2,  10,
    10, 11, 8,  5,  2,  10, 10, 11, 13, 5,  5,  5,  4,  4,  2,  10, 10, 10, 10, 11,
    8,  1,  1,  2,  10, 10, 10, 13, 5,  5,  5,  4,  4,  4,  4,  4,  4,  4,  4,  4,
    4,  2,  10, 10, 10, 8,  1,  1,  2,  10, 13, 5,  5,  5,  5,  4,  4,  1,  2,  8,
    2,  11, 11, 11, 13, 5,  5,  5,  5,  5,  4,  4,  4,  2,  10, 10, 10, 11, 11, 10,
    8,  2,  11, 10, 10, 10, 10, 10, 11, 9,  13, 5,  5,  5,  4,  5,  4,  4,  4,  2,
    10, 10, 10, 10, 10, 10, 10, 8,  10, 8,  2,  10, 10, 8,  1,  1,  1,  2,  10, 8,
    13, 5,  5,  5,  4,  5,  4,  4,  4,  4,  2,  10, 10, 8,  1,  2,  8,  8,  1,  1,
    1,  1,  13, 5,  5,  5,  5,  4,  4,  4,  4,  8,  13, 5,  5,  5,  5,  4,  4,  8,
    13, 5,  5,  4,  4,  4,  4,  8,  13, 5,  5,  5,  4,  4,  8,  13, 5,  5,  5,  4,
    4,  4,  4,  8,  13, 5,  5,  5,  4,  4,  4,  4,  8,  13, 5,  5,  4,  4,  4,  4,
    8,  13, 5,  5,  4,  4,  4,  4,  4,  8,  13, 5,  5,  5,  4,  4,  4,  4,  4,  8,
    13, 5,  5,  5,  5,  4,  4,  4,  4,  8,  13, 5,  5,  5,  4,  4,  4,  4,  8,  13,
    5,  5,  5,  4,  4,  8,  13, 5,  4,  4,  4,  4,  8,  13, 5,  5,  4,  4,  4,  4,
    4,  8,  13, 5,  5,  5,  4,  4,  4,  4,  4,  8,  13, 5,  5,  5,  5,  4,  4,  4,
    4,  4,  4,  4,  4,  10, 8,  2,  13, 5,  5,  5,  4,  5,  4,  4,  4,  4,  1,  1,
    1,  8,  13, 5,  5,  5,  4,  4,  4,  4,  8,  13, 5,  5,  5,  4,  4,  4,  4,  8,
    9,  1,  1,  1,  1};

  TLine *line1 = new TLine();
  //line1->SetLineColor(2);
  for (Int_t i=0; i < (int)ARRAYSIZE(surfZ); i++) {
    if ((surfFlag[i] >> 0) & 0x1 ) {
      line1->DrawLine(surfN[i]-0.5, surfZ[i]-0.5, surfN[i]+0.5, surfZ[i]-0.5);
    }
    if ((surfFlag[i] >> 1) & 0x1 ) {
      line1->DrawLine(surfN[i]+0.5, surfZ[i]-0.5, surfN[i]+0.5, surfZ[i]+0.5);
    }
    if ((surfFlag[i] >> 2) & 0x1 ) {
      line1->DrawLine(surfN[i]-0.5, surfZ[i]+0.5, surfN[i]+0.5, surfZ[i]+0.5);
    }
    if ((surfFlag[i] >> 3) & 0x1 ) {
      line1->DrawLine(surfN[i]-0.5, surfZ[i]-0.5, surfN[i]-0.5, surfZ[i]+0.5);
    }
  }
  delete line1;
  return 0;
}

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2011-08-15 12:31:59, 11.7 KB) [[attachment:DrawKTUY05DripLine.C]]
  • [get | view] (2011-08-15 12:30:05, 4.2 KB) [[attachment:DrawStableNuclei.C]]
  • [get | view] (2011-08-15 10:52:12, 0.4 KB) [[attachment:Ini.C]]
  • [get | view] (2011-08-15 11:22:39, 423.9 KB) [[attachment:KTUY05_m246.dat]]
  • [get | view] (2011-08-15 11:21:45, 13.3 KB) [[attachment:KTUY05_m246.png]]
  • [get | view] (2011-08-15 11:19:56, 325.8 KB) [[attachment:KTUY05_m246.root]]
  • [get | view] (2011-08-15 12:44:15, 14.4 KB) [[attachment:KTUY_stable.png]]
  • [get | view] (2011-08-15 12:44:47, 9.9 KB) [[attachment:KTUYdl_stable.png]]
  • [get | view] (2011-08-15 11:40:48, 37.7 KB) [[attachment:LiseMassExcess.png]]
  • [get | view] (2011-08-15 11:55:08, 14.6 KB) [[attachment:LiseMassExcessType.png]]
  • [get | view] (2011-08-15 11:19:33, 3.1 KB) [[attachment:MakeKTUY05RootFile.C]]
  • [get | view] (2011-08-15 10:53:14, 1.2 KB) [[attachment:MakeStableNucleiRootFile.C]]
  • [get | view] (2011-08-11 17:37:50, 25.6 KB) [[attachment:NuclearWalletCardsSearch_GetStableNuclei.png]]
  • [get | view] (2011-09-03 04:16:45, 1.2 KB) [[attachment:PlotKTUY.C]]
  • [get | view] (2011-08-15 10:53:26, 0.5 KB) [[attachment:PlotStable.C]]
  • [get | view] (2011-08-15 10:49:44, 8.6 KB) [[attachment:StableNuclei.png]]
  • [get | view] (2011-08-15 10:53:40, 6.0 KB) [[attachment:StableNuclei.root]]
  • [get | view] (2011-08-11 17:50:57, 36.5 KB) [[attachment:StableNuclei.txt]]
  • [get | view] (2013-11-01 17:25:58, 15.2 KB) [[attachment:evenz_oddn_jpi.dat]]
  • [get | view] (2013-11-01 08:50:14, 12.0 KB) [[attachment:first2plus.dat]]
  • [get | view] (2013-11-01 09:06:27, 43.2 KB) [[attachment:first2plus_ss.png]]
  • [get | view] (2013-11-01 17:25:07, 14.7 KB) [[attachment:oddz_evenn_jpi.dat]]
  • [get | view] (2013-11-01 17:26:05, 2.0 KB) [[attachment:plot_evenz_oddn_jpi.C]]
  • [get | view] (2013-11-01 17:26:10, 11.9 KB) [[attachment:plot_evenz_oddn_jpi.png]]
  • [get | view] (2013-11-01 08:49:50, 1.5 KB) [[attachment:plot_first2plus.C]]
  • [get | view] (2013-11-01 08:50:03, 11.5 KB) [[attachment:plot_first2plus.png]]
  • [get | view] (2013-11-01 17:25:18, 2.0 KB) [[attachment:plot_oddz_evenn_jpi.C]]
  • [get | view] (2013-11-01 17:25:23, 11.8 KB) [[attachment:plot_oddz_evenn_jpi.png]]

You are not allowed to attach a file to this page.