Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:19:43

0001 //
0002 // Find the HV mod for a channel
0003 //
0004 
0005 #include "mbd/MbdGeomV2.h"
0006 
0007 R__LOAD_LIBRARY(libmbd.so)
0008 R__LOAD_LIBRARY(libmbd_io.so)
0009 
0010 MbdGeomV2 *mbdgeom{nullptr};
0011 
0012 
0013 void findhvmod()
0014 {
0015   mbdgeom = new MbdGeomV2();
0016   std::multimap hvmap = mbdgeom->get_hvmap();
0017 
0018   int pmts[] = { 51, 84, 85, 26, 75, 89, 121 };
0019   for (int ipmt=0; ipmt<7; ipmt++)
0020   {
0021     for ( auto hv : hvmap )
0022     {
0023       if ( hv.second == pmts[ipmt] )
0024       {
0025         cout << hv.second << "\t" << hv.first << endl;
0026         break;
0027       }
0028     }
0029 
0030   }
0031 }