73 if (
newfile->GetMPIGlobalRank() == 0) {
74 Info(
"test_tmpi",
" running with parallel ranks: %d",
newfile->GetMPIGlobalSize());
86 Info(
"Collector",
"[%d]\troot output filename = %s",
newfile->GetMPIGlobalRank(),
smpifname.str().c_str());
112 auto sync_start = std::chrono::high_resolution_clock::now();
117 auto start = std::chrono::high_resolution_clock::now();
121 auto evt_built = std::chrono::high_resolution_clock::now();
124 Info(
"Rank",
"[%d] [%d]\tevt = %d;\tbuild_time = %f",
newfile->GetMPIColor(),
newfile->GetMPILocalRank(), i,
132 std::this_thread::sleep_for(std::chrono::seconds(
int(
sleep)));
143 auto end = std::chrono::high_resolution_clock::now();
145 Info(
"Rank",
"[%d] [%d]\tevent collection time: %f",
newfile->GetMPIColor(),
newfile->GetMPILocalRank(),
147 sync_start = std::chrono::high_resolution_clock::now();
158 Info(
"Rank",
"[%d] [%d]\tclosing file",
newfile->GetMPIColor(),
newfile->GetMPILocalRank());
162 if (
newfile->GetMPILocalRank() == 0) {
172 Info(
"Rank",
"[%d] [%d]\tfile should have %d events and has %lld",
newfile->GetMPIColor(),
180 auto start = std::chrono::high_resolution_clock::now();
184 auto end = std::chrono::high_resolution_clock::now();
185 double time = std::chrono::duration_cast<std::chrono::duration<double>>(
end -
start).count();
186 std::string
msg =
"Total elapsed time: ";
187 msg += std::to_string(time);
188 Info(
"testTMPIFile",
"%s",
msg.c_str());
189 Info(
"testTMPIFile",
"exiting");
212 gROOT->ProcessLine(
".L JetEvent.cxx+");
217 gROOT->ProcessLine(
"#define TMPI_SECOND_RUN yes");
219 gROOT->ProcessLine(
"testTMPIFile(true)");
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
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)