A base class for accessing ntuple data.
More...
#include <Accessor.h>
A base class for accessing ntuple data.
Definition at line 24 of file LArCalorimeter/LArSamplesMon/LArSamplesMon/Accessor.h.
◆ Accessor()
| LArSamples::Accessor::Accessor |
( |
| ) |
|
|
inline |
◆ ~Accessor()
| virtual LArSamples::Accessor::~Accessor |
( |
| ) |
|
|
inlinevirtual |
◆ cachePos()
| unsigned int LArSamples::AbsLArCells::cachePos |
( |
| ) |
const |
|
inlineinherited |
◆ cellCache()
| const History * LArSamples::AbsLArCells::cellCache |
( |
| ) |
const |
|
inlineinherited |
Definition at line 48 of file AbsLArCells.h.
std::unique_ptr< const History > m_cellCache
◆ cellHistory()
| const History * AbsLArCells::cellHistory |
( |
unsigned int | i | ) |
const |
|
virtualinherited |
Reimplemented in LArSamples::Interface.
Definition at line 54 of file AbsLArCells.cxx.
55{
59 if (!history) return nullptr;
63}
virtual void resetCache() const
virtual std::unique_ptr< const History > newCellHistory(unsigned int i) const
◆ cellInfo()
| std::unique_ptr< const CellInfo > AbsLArCells::cellInfo |
( |
unsigned int | i | ) |
const |
|
virtualinherited |
Definition at line 66 of file AbsLArCells.cxx.
67{
69 if (info) {
70 if (
info->isValid()) {
71 return std::make_unique<CellInfo> (*info);
72 }
73 return nullptr;
74 }
75 std::unique_ptr<const CellInfo> infop =
getCellInfo(i);
77 return infop;
78}
virtual std::unique_ptr< const CellInfo > getCellInfo(unsigned int i) const
std::vector< std::unique_ptr< CellInfo > > m_cellInfoCache
const CellInfo * cellInfoCache(unsigned int i) const
◆ cellInfoCache()
| const CellInfo * AbsLArCells::cellInfoCache |
( |
unsigned int | i | ) |
const |
|
inherited |
◆ eventData()
| virtual const EventData * LArSamples::Accessor::eventData |
( |
unsigned int | i | ) |
const |
|
pure virtual |
◆ getCellHistory()
| virtual std::unique_ptr< const History > LArSamples::AbsLArCells::getCellHistory |
( |
unsigned int | i | ) |
const |
|
pure virtualinherited |
◆ getCellInfo()
| std::unique_ptr< const CellInfo > AbsLArCells::getCellInfo |
( |
unsigned int | i | ) |
const |
|
virtualinherited |
◆ getSCHistory()
| virtual std::unique_ptr< const History > LArSamples::AbsLArCells::getSCHistory |
( |
unsigned int | i | ) |
const |
|
pure virtualinherited |
◆ historySize()
| virtual unsigned int LArSamples::Accessor::historySize |
( |
unsigned int | i | ) |
const |
|
pure virtual |
◆ historySizeSC()
| virtual unsigned int LArSamples::Accessor::historySizeSC |
( |
unsigned int | i | ) |
const |
|
pure virtual |
◆ nChannels()
| virtual unsigned int LArSamples::AbsLArCells::nChannels |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ nChannelsSC()
| virtual unsigned int LArSamples::AbsLArCells::nChannelsSC |
( |
| ) |
const |
|
inlinevirtualinherited |
Definition at line 36 of file AbsLArCells.h.
static const unsigned int nChannelsSC
◆ nEvents()
| virtual unsigned int LArSamples::Accessor::nEvents |
( |
| ) |
const |
|
pure virtual |
◆ newCellHistory()
| std::unique_ptr< const History > AbsLArCells::newCellHistory |
( |
unsigned int | i | ) |
const |
|
virtualinherited |
Definition at line 39 of file AbsLArCells.cxx.
40{
42 if (!history) return nullptr;
44 const CellInfo* ci=history->cellInfo();
45 if (ci) {
47 }
48 }
49
50 return history;
51}
◆ nRuns()
| virtual unsigned int LArSamples::Accessor::nRuns |
( |
| ) |
const |
|
pure virtual |
◆ pass()
Definition at line 96 of file AbsLArCells.cxx.
97{
98
99 if (!
f.passHash(i))
return nullptr;
101 if (!info) {
102 return nullptr;
103 }
104
105 bool result =
f.passCell(*info);
107}
virtual const History * cellHistory(unsigned int i) const
virtual std::unique_ptr< const CellInfo > cellInfo(unsigned int i) const
◆ resetCache()
| void AbsLArCells::resetCache |
( |
| ) |
const |
|
virtualinherited |
Definition at line 32 of file AbsLArCells.cxx.
33{
36}
virtual unsigned int nChannels() const
◆ runData()
| virtual const RunData * LArSamples::Accessor::runData |
( |
unsigned int | i | ) |
const |
|
pure virtual |
◆ writeToFile()
| virtual bool LArSamples::Accessor::writeToFile |
( |
const TString & | fileName | ) |
const |
|
pure virtual |
◆ m_cellCache
| std::unique_ptr<const History> LArSamples::AbsLArCells::m_cellCache |
|
mutableprivateinherited |
◆ m_cellInfoCache
| std::vector<std::unique_ptr<CellInfo> > LArSamples::AbsLArCells::m_cellInfoCache |
|
mutableprivateinherited |
◆ m_pos
| unsigned int LArSamples::AbsLArCells::m_pos |
|
mutableprivateinherited |
The documentation for this class was generated from the following file: