Skip to content

Commit 868d16f

Browse files
Restore writing to output file
1 parent c6a760f commit 868d16f

File tree

1 file changed

+5
-0
lines changed
  • DATA/production/configurations/2022/MayJunePilotBeam/apass1

1 file changed

+5
-0
lines changed

DATA/production/configurations/2022/MayJunePilotBeam/apass1/getTPCvdrift.C

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <cmath>
22
#include <fmt/format.h>
33
#include <string_view>
4+
#include <fstream>
45

56
#include "TSystem.h"
67

@@ -54,5 +55,9 @@ float getTPCvdrift(int run, std::string_view ltrUrl = "http://ccdb-test.cern.ch:
5455
const float vcorr = defaultDriftV / corr;
5556
printf("vdrift = %f\n", vcorr);
5657

58+
ofstream fp("vdrift.txt");
59+
fp << vcorr << endl;
60+
fp.close();
61+
5762
return vcorr;
5863
}

0 commit comments

Comments
 (0)