ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRampCumul.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <vector>
8
10 std::vector<double> vSteps = pRampRunPlan->energySteps();
11 std::vector<double>::iterator it = vSteps.begin();
12 for(;it!=vSteps.end();++it) {
13 RampStep rampStep(*it);
14 m_mapRampSteps[*it]=rampStep;
15 }
16}
17
18void L1CaloRampCumul::addEvent(double step, int energy) {
19 std::map<double, RampStep>::iterator it = m_mapRampSteps.find(step);
20 if(it!=m_mapRampSteps.end()) {
21 (it->second).addEvent(energy);
22 }
23}
void addEvent(double step, int energy)
std::map< double, RampStep > m_mapRampSteps
Transient class defining ramps runplan objects defined by the online framework and retrieved from COO...
const std::vector< double > & energySteps() const