|
ATLAS Offline Software
|
Go to the documentation of this file.
28 std::set<std::string> triggerGroup {
"RATE_SingleElectron"};
34 return StatusCode::SUCCESS;
42 std::set<double> electronpTs;
43 for (
const auto&
e : *
electrons) electronpTs.insert(
e->pt()/1000.);
47 return StatusCode::SUCCESS;
52 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
RatesEmulationExample(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode newTrigger(const std::string &name, const double prescale=1., const double expressPrescale=-1., const std::string &seedName="", const double seedPrecale=1., const std::string &groups="", const Method_t method=kMANUAL, const ExtrapStrat_t extrapolation=kLINEAR)
Version of newTrigger which accepts a set of group names rather than a comma separated string.
StatusCode newScanTrigger(const std::string &name, const double thresholdMin, const double thresholdMax, const uint32_t thresholdBins=100, const RatesScanTrigger::TriggerBehaviour_t behaviour=RatesScanTrigger::TriggerBehaviour_t::kTriggerBelowThreshold, const double prescale=1., const std::string &seedName="", const double seedPrecale=1., const Method_t method=kMANUAL, const ExtrapStrat_t extrapolation=kLINEAR)
Register a new threshold scan trigger which plots rate as a function of some dependent variable.
Gaudi::Property< float > m_lumi
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode ratesExecute() override
To be implemented by the user.
virtual StatusCode ratesInitialize() override
To be implemented by the user.
virtual ~RatesEmulationExample()
void setTargetLumi(const double lumi)
Set the target instantaneous luminosity.
virtual StatusCode ratesFinalize() override
To be implemented by the user.
StatusCode setTriggerDesicison(const std::string &name, const bool triggerIsPassed=true, const bool triggerIsActive=true)
Set the pass/fail decision for an item.
virtual analysis class for performing rates studies on AOD Pure virtual base class for trigger rate s...