ATLAS Offline Software
Loading...
Searching...
No Matches
EventShapeStore.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7
8bool EventShapeStore::get(const EventShapes::EventShapeType& type, double& value, unsigned int index) const
9{
10 value=0;
11 for(store_Citer it=m_store.begin(); it!=m_store.end(); ++it )
12 if(it->getType()==type)
13 {
14 value=it->getValue(index);
15 return true;
16 }
17 return false;
18}
19
20// bool EventShapeStore::get(const EventShapes::EventShapeType& type,
21// std::vector<double>& values, unsigned int index) const
22// {
23// value.clear();
24// for(store_Citer it=m_store.begin(); it!=m_store.end(); ++it )
25// if(it->getType()==type)
26// {
27// values.push_back(it->getValue(index));
28// }
29// return !values.empty();
30// }
31
32// bool EventShapeStore::get(const EventShapes::EventShapeType& type,
33// std::vector<std::vector<double> >& valueBlock)
34// {
35// valueBlock.clear();
36// for(store_Citer it=m_store.begin(); it!=m_store.end(); ++it )
37// if(it->getType()==type)
38// {
39// values.push_back(std::vector<double>());
40// it->getValues(values.back());
41// }
42// return !values.empty();
43// }
44
45
bool get(const EventShapes::EventShapeType &type, double &value, unsigned int index=0) const
store_type::const_iterator store_Citer
Definition index.py:1