Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:57

0001 #include <cstdio>
0002 #include <cstdlib>
0003 #include <iostream>
0004 using namespace std;
0005 
0006 // writing Laser primitives

0007 
0008 #include "../../interface/ME.h"
0009 #include "MERunManager.hh"
0010 
0011 int main(int argc, char **argv)
0012 {
0013   int type  = ME::iLaser;
0014   int color = ME::iBlue; 
0015 
0016   int c;
0017   while ( (c = getopt( argc, argv, "t:c:" ) ) != EOF ) 
0018     {
0019       switch (c) 
0020     {
0021     case 't': type     = atoi( optarg );    break;
0022     case 'c': color    = atoi(optarg);      break;
0023     }
0024     }
0025 
0026   cout << "Writing primitives for Type=" << ME::type[type];
0027   if( type==ME::iLaser ) cout << " Color=" << ME::color[color];
0028   cout << endl;
0029 
0030   // Barrel: Laser monitoring regions between 1 and 92

0031   for( unsigned int lmr=1; lmr<=92; lmr++ )
0032     {
0033       cout << "LMR=" << lmr << endl;
0034       MERunManager* runManager = new MERunManager( lmr, type, color );
0035       delete runManager;
0036     }
0037 
0038   return(0);
0039 }