Changeset 51 in svn for trunk/src/SmearUtil.cc
- Timestamp:
- Nov 20, 2008, 4:44:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SmearUtil.cc
r50 r51 19 19 #include <sstream> 20 20 #include <fstream> 21 22 #include <cstdio>23 #include <cstdio>24 #include <TCanvas.h>25 #include <TLorentzVector.h>26 #include <string>27 #include <fstream>28 #include <istream>29 #include <iostream>30 #include <TMath.h>31 #include <vector>32 #include "TRandom.h"33 #include <cstdlib>34 #include <math.h>35 #include <time.h>36 37 #include <iostream>38 21 #include <iomanip> 39 22 40 #include <iostream> 41 #include <sstream> 42 43 #include <fstream> 44 #include <vector> 23 45 24 46 25 using namespace std; … … 197 176 198 177 void RESOLution::Logfile(string LogName) { 199 178 //void RESOLution::Logfile(string outputfilename) { 179 200 180 ofstream f_out(LogName.c_str()); 201 181 202 182 f_out<<"#*********************************************************************"<<"\n"; 203 183 f_out<<"# *"<<"\n"; 204 205 string temp_string; 206 istringstream curstring; 207 ifstream fichier_a_lire("VERSION"); 208 if(fichier_a_lire.good()) { 209 string Version; 210 while (getline(fichier_a_lire,temp_string)) { 211 curstring.str(temp_string); 212 curstring >> Version;} 213 f_out<<"#"<< right << setw(39) <<"---- DELPHES release "<<Version<< left <<" ---- *"<<"\n"; 214 215 } 216 else { f_out<<"# ---- DELPHES release not defined ---- *"<<"\n";} 217 184 f_out<<"# ---- DELPHES release 1.0 ---- *"<<"\n"; 218 185 f_out<<"# *"<<"\n"; 219 186 f_out<<"# A Fast Simulator for general purpose LHC detector *"<<"\n";
Note:
See TracChangeset
for help on using the changeset viewer.