ATLAS Offline Software
Reconstruction
EventShapes
EventShapeEvent
src
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
6
#include "
EventShapeEvent/EventShapeStore.h
"
7
8
bool
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
EventShapeStore::store_Citer
store_type::const_iterator store_Citer
Definition:
EventShapeStore.h:71
index
Definition:
index.py:1
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
athena.value
value
Definition:
athena.py:124
EventShapeStore::m_store
store_type m_store
Definition:
EventShapeStore.h:73
EventShapeStore::get
bool get(const EventShapes::EventShapeType &type, double &value, unsigned int index=0) const
Definition:
EventShapeStore.cxx:8
EventShapes::EventShapeType
EventShapeType
Definition:
EventShapes.h:18
EventShapeStore.h
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
Generated on Mon Dec 23 2024 21:10:21 for ATLAS Offline Software by
1.8.18