File: McTesterValidationTool.cc

package info (click to toggle)
hepmc3 3.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 14,116 kB
  • sloc: fortran: 66,849; cpp: 13,604; ansic: 1,374; xml: 109; sh: 72; makefile: 33
file content (25 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// -*- C++ -*-
//
// This file is part of HepMC
// Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
//
#include "McTesterValidationTool.h"

void McTesterValidationTool::initialize() {
    HEPMC2CODE( ::Setup::stage = 1; )
    HEPMC3CODE( ::Setup::stage = 2; )
    MC_Initialize();
}

int McTesterValidationTool::process(GenEvent &hepmc) {
    HEPMC2CODE( HepMCEvent  mc_tester(hepmc,false); )
    HEPMC3CODE( MCTester::HepMC3Event mc_tester(hepmc,false); )

    MC_Analyze(&mc_tester);

    return 0;
}

void McTesterValidationTool::finalize() {
    MC_Finalize();
}