Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

// writing Laser primitives

#include "../../interface/ME.h"
#include "MERunManager.hh"

int main(int argc, char **argv)
{
  int type  = ME::iLaser;
  int color = ME::iBlue; 

  int c;
  while ( (c = getopt( argc, argv, "t:c:" ) ) != EOF ) 
    {
      switch (c) 
	{
	case 't': type     = atoi( optarg );    break;
	case 'c': color    = atoi(optarg);      break;
	}
    }

  cout << "Writing primitives for Type=" << ME::type[type];
  if( type==ME::iLaser ) cout << " Color=" << ME::color[color];
  cout << endl;

  // Barrel: Laser monitoring regions between 1 and 92
  for( unsigned int lmr=1; lmr<=92; lmr++ )
    {
      cout << "LMR=" << lmr << endl;
      MERunManager* runManager = new MERunManager( lmr, type, color );
      delete runManager;
    }

  return(0);
}