Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F7877639
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
997 B
Subscribers
None
View Options
diff --git a/bin/rivet-nopy.cc b/bin/rivet-nopy.cc
--- a/bin/rivet-nopy.cc
+++ b/bin/rivet-nopy.cc
@@ -1,36 +1,36 @@
#include "Rivet/AnalysisHandler.hh"
#include "Rivet/AnalysisLoader.hh"
#include "HepMC/IO_GenEvent.h"
using namespace std;
int main(int argc, char** argv) {
if (argc < 2) {
cerr << "Usage: " << argv[0] << " <hepmcfile> <ana1> [<ana2> ...]" << endl;
return 1;
}
- foreach (const string& a, Rivet::AnalysisLoader::analysisNames())
+ for (const string& a : Rivet::AnalysisLoader::analysisNames())
cout << a << endl;
Rivet::AnalysisHandler ah;
for (int i = 2; i < argc; ++i) {
ah.addAnalysis(argv[i]);
}
std::ifstream file(argv[1]);
HepMC::IO_GenEvent hepmcio(file);
HepMC::GenEvent* evt = hepmcio.read_next_event();
while (evt) {
ah.analyze(*evt);
delete evt; evt = 0;
hepmcio >> evt;
}
file.close();
ah.setCrossSection(1.0);
ah.finalize();
ah.writeData("Rivet.yoda");
return 0;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Nov 19, 3:58 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3805061
Default Alt Text
(997 B)
Attached To
rRIVETHG rivethg
Event Timeline
Log In to Comment