storage of the time histories of all the cells
More...
#include <DataStore.h>
storage of the time histories of all the cells
Definition at line 32 of file LArCalorimeter/LArCafJobs/LArCafJobs/DataStore.h.
◆ DataStore()
Constructor.
Definition at line 26 of file LArCalorimeter/LArCafJobs/src/DataStore.cxx.
26 :
29{
30}
unsigned int nChannels() const
unsigned int nChannelsSC() const
std::vector< HistoryContainer * > m_cellHistoriesSC
std::vector< HistoryContainer * > m_cellHistories
◆ ~DataStore()
| DataStore::~DataStore |
( |
| ) |
|
|
virtual |
◆ addData()
Definition at line 57 of file LArCalorimeter/LArCafJobs/src/DataStore.cxx.
58{
59 HistoryContainer*& histCont =
hist_cont(hash);
61 return true;
62}
char data[hepevt_bytes_allocation_ATLAS]
HistoryContainer *& hist_cont(unsigned int i)
void add(const DataContainer *data)
append data (takes ownership)
◆ addDataSC()
◆ addEvent()
| unsigned int DataStore::addEvent |
( |
EventData * | eventData | ) |
|
◆ addRun()
| unsigned int DataStore::addRun |
( |
RunData * | eventData | ) |
|
◆ eventData() [1/2]
| EventData *& LArSamples::DataStore::eventData |
( |
unsigned int | i | ) |
|
|
inlineprivate |
◆ eventData() [2/2]
| const EventData * LArSamples::DataStore::eventData |
( |
unsigned int | i | ) |
const |
|
inline |
◆ footprint()
| double DataStore::footprint |
( |
| ) |
const |
Definition at line 133 of file LArCalorimeter/LArCafJobs/src/DataStore.cxx.
134{
135 double fp =
sizeof(*this);
138 if (!hist) continue;
140 }
141
144 if (!hist) continue;
146 }
147
149}
const HistoryContainer * historyContainerSC(unsigned int i) const
const HistoryContainer * historyContainer(unsigned int i) const
◆ hist_cont()
◆ hist_cont_sc()
◆ historyContainer()
| const HistoryContainer * LArSamples::DataStore::historyContainer |
( |
unsigned int | i | ) |
const |
|
inline |
◆ historyContainerSC()
| const HistoryContainer * LArSamples::DataStore::historyContainerSC |
( |
unsigned int | i | ) |
const |
|
inline |
◆ makeNewHistory()
append data (takes ownership of everything)
Definition at line 40 of file LArCalorimeter/LArCafJobs/src/DataStore.cxx.
41{
42 HistoryContainer*& histCont =
hist_cont(hash);
43 if (histCont) return histCont;
44 histCont = new HistoryContainer(info);
45 return histCont;
46}
◆ makeNewHistorySC()
◆ nChannels()
| unsigned int LArSamples::DataStore::nChannels |
( |
| ) |
const |
|
inline |
◆ nChannelsSC()
| unsigned int LArSamples::DataStore::nChannelsSC |
( |
| ) |
const |
|
inline |
◆ nEvents()
| unsigned int LArSamples::DataStore::nEvents |
( |
| ) |
const |
|
inline |
◆ nFilledChannels()
| unsigned int DataStore::nFilledChannels |
( |
| ) |
const |
◆ nFilledChannelsSC()
| unsigned int DataStore::nFilledChannelsSC |
( |
| ) |
const |
◆ nRuns()
| unsigned int LArSamples::DataStore::nRuns |
( |
| ) |
const |
|
inline |
◆ runData() [1/2]
| RunData *& LArSamples::DataStore::runData |
( |
unsigned int | i | ) |
|
|
inlineprivate |
◆ runData() [2/2]
| const RunData * LArSamples::DataStore::runData |
( |
unsigned int | i | ) |
const |
|
inline |
◆ size()
| unsigned int DataStore::size |
( |
| ) |
const |
◆ writeTrees()
| bool DataStore::writeTrees |
( |
const char * | fileName | ) |
|
Definition at line 152 of file LArCalorimeter/LArCafJobs/src/DataStore.cxx.
153{
154 PersistentAccessor*
acc =
new PersistentAccessor(fileName);
155
156 for (
unsigned int i = 0;
i <
nRuns();
i++) {
159 delete r;
r =
nullptr;
160 }
161
162 for (
unsigned int i = 0;
i <
nEvents();
i++) {
165 delete ev;
ev =
nullptr;
166 }
167
171 delete hc; hc = nullptr;
172 }
173
177 delete hc; hc = nullptr;
178 }
179
183}
◆ ::LArShapeDumper
◆ D3PDConverter
◆ m_cellHistories
◆ m_cellHistoriesSC
◆ m_events
| std::vector<EventData*> LArSamples::DataStore::m_events |
|
private |
◆ m_runs
| std::vector<RunData*> LArSamples::DataStore::m_runs |
|
private |
The documentation for this class was generated from the following files: