74   if (
newfile->GetMPIGlobalRank() == 0) {
 
   75      Info(
"test_tmpi", 
" running with parallel ranks:   %d", 
newfile->GetMPIGlobalSize());
 
   87      Info(
"Collector", 
"[%d]\troot output filename = %s", 
newfile->GetMPIGlobalRank(), 
smpifname.str().c_str());
 
  113      auto sync_start = std::chrono::high_resolution_clock::now();
 
  118         auto start = std::chrono::high_resolution_clock::now();
 
  122         auto evt_built = std::chrono::high_resolution_clock::now();
 
  123         double build_time = std::chrono::duration_cast<std::chrono::duration<double>>(
evt_built - start).count();
 
  125         Info(
"Rank", 
"[%d] [%d]\tevt = %d;\tbuild_time = %f", 
newfile->GetMPIColor(), 
newfile->GetMPILocalRank(), i,
 
  133         std::this_thread::sleep_for(std::chrono::seconds(
int(
sleep)));
 
  144            auto end = std::chrono::high_resolution_clock::now();
 
  146            Info(
"Rank", 
"[%d] [%d]\tevent collection time: %f", 
newfile->GetMPIColor(), 
newfile->GetMPILocalRank(),
 
  148            sync_start = std::chrono::high_resolution_clock::now();
 
  159   Info(
"Rank", 
"[%d] [%d]\tclosing file", 
newfile->GetMPIColor(), 
newfile->GetMPILocalRank());
 
  163   if (
newfile->GetMPILocalRank() == 0) {
 
  173         Info(
"Rank", 
"[%d] [%d]\tfile should have %d events and has %lld", 
newfile->GetMPIColor(),
 
  181   auto start = std::chrono::high_resolution_clock::now();
 
  185   auto end = std::chrono::high_resolution_clock::now();
 
  186   double time = std::chrono::duration_cast<std::chrono::duration<double>>(end - 
start).count(); 
  187   std::string 
msg = 
"Total elapsed time: ";
 
  188   msg += std::to_string(time);
 
  189   Info(
"testTMPIFile", 
"%s", 
msg.c_str());
 
  190   Info(
"testTMPIFile", 
"exiting");
 
  213      gROOT->ProcessLine(
".L JetEvent.cxx+");
 
  218   gROOT->ProcessLine(
"#define TMPI_SECOND_RUN yes");
 
  220   gROOT->ProcessLine(
"testTMPIFile(true)");
 
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
 
bool Bool_t
Boolean (0=false, 1=true) (bool)
 
int Int_t
Signed integer 4 bytes (int)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
 
R__EXTERN C unsigned int sleep(unsigned int seconds)
 
R__EXTERN TRandom * gRandom
 
R__EXTERN TSystem * gSystem
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
 
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
 
virtual UInt_t GetSeed() const
Get the random generator seed.
 
virtual Int_t Exec(const char *shellcmd)
Execute a command.
 
A TTree represents a columnar dataset.
 
RVec< PromoteType< T > > abs(const RVec< T > &v)