ATLAS Offline Software
Loading...
Searching...
No Matches
EvgenOTFTopUpSvc.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef XAOD_ANALYSIS
6
8
9EvgenOTFTopUpSvc::EvgenOTFTopUpSvc(const std::string& name, ISvcLocator* pSvcLocator)
10 : base_class(name, pSvcLocator)
11 , m_nUsedSoFar(0)
12 , m_newFileFlag(false)
13 , m_nTotal(0)
14 , m_nIterations(0)
15{
16 declareProperty("Efficiency", m_efficiency=0.9, "Estimate of Pythia/Herwig matching efficiency and filter efficiency");
17 declareProperty("ExecDuringInit", m_execDuringInit=false, "Execute OTF algorithm during intialize");
18 declareProperty("NPerFile", m_nPerFile=long(5000./0.9), "Number of events to make per file with OTF algorithm");
19 declareProperty("NewFileName", m_newFileName="events.lhe", "Please that the new OTF events went");
20}
21
23 ATH_MSG_INFO("Total on the fly generated events: " << m_nTotal << " over " << m_nIterations << " iterations.");
24 return StatusCode::SUCCESS;
25}
26
27#endif
#define ATH_MSG_INFO(x)
virtual StatusCode finalize() override
long m_nUsedSoFar
Number of events used so far by Pythia/Herwig (counter)
long m_nTotal
Book-keeping: total number of generated events.
double m_efficiency
Rough efficiency in Pythia/Herwig (Set in JO)
EvgenOTFTopUpSvc(const std::string &name, ISvcLocator *pSvcLocator)
long m_nIterations
Book-keeping: total number of OTF iterations.
std::string m_newFileName
Name of the new OTF generated file.
long m_nPerFile
Number of events per LHE file (Set in JO)
bool m_newFileFlag
Just produced a new file with the OTF generator.
bool m_execDuringInit
Execute OTF during initialization?