00001 #ifndef proto_MPIProg_hh
00002 #define proto_MPIProg_hh
00003
00004 #include "artdaq/DAQrate/quiet_mpi.hh"
00005 #include "artdaq/DAQdata/Globals.hh"
00006
00010 struct MPIProg
00011 {
00017 MPIProg(int argc, char** argv)
00018 {
00019 MPI_Init(&argc, &argv);
00020 MPI_Comm_size(MPI_COMM_WORLD, &procs_);
00021 MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
00022 };
00026 ~MPIProg() { MPI_Finalize(); };
00027
00028 int procs_;
00029 };
00030
00031
00032 #endif