30 auto run_number = 559827;
31 TGrid::Connect(
"alien");
39 auto distr_file = TFile::Open(
"alien:///alice/cern.ch/user/s/swenzel/AliceO2_TestData/NBcVTX_559827/hBcTVX_data_PbPb_24ar_559827.root");
42 if (distr_file && !distr_file->IsZombie()) {
43 auto hist = distr_file->Get<TH1F>(
"hBcTVX");
46 sampler.setBCIntensityScales(*hist);
49 std::vector<o2::InteractionTimeRecord>
samples;
57 auto output_hist = (TH1F*)hist->Clone(
"h2");
60 for (
const auto& sample :
samples) {
61 output_hist->Fill(sample.bc);
65 auto fout = TFile::Open(
"NBCVTX_out.root",
"RECREATE");
66 fout->WriteObject(output_hist,
"NBcVTX");
70 BOOST_CHECK_CLOSE(hist->GetMean(), output_hist->GetMean(), 0.5);
static AggregatedRunInfo buildAggregatedRunInfo(int runnumber, long sorMS, long eorMS, long orbitResetMUS, const o2::parameters::GRPECSObject *grpecs, const std::vector< Long64_t > *ctfFirstRunOrbitVec, const o2::parameters::GRPLHCIFData *grplhcif=nullptr)