|
ATLAS Offline Software
|
#include <MultiTreeAccessor.h>
Definition at line 27 of file MultiTreeAccessor.h.
◆ MultiTreeAccessor()
◆ ~MultiTreeAccessor()
MultiTreeAccessor::~MultiTreeAccessor |
( |
| ) |
|
|
virtual |
◆ accessor()
◆ cachePos()
unsigned int LArSamples::AbsLArCells::cachePos |
( |
| ) |
const |
|
inlineinherited |
◆ cellCache()
◆ cellHistory()
const History * AbsLArCells::cellHistory |
( |
unsigned int |
i | ) |
const |
|
virtualinherited |
◆ cellInfo()
◆ cellInfoCache()
const CellInfo * AbsLArCells::cellInfoCache |
( |
unsigned int |
i | ) |
const |
|
inherited |
◆ eventData()
const EventData * MultiTreeAccessor::eventData |
( |
unsigned int |
i | ) |
const |
|
virtual |
◆ filterComponents()
Definition at line 216 of file MultiTreeAccessor.cxx.
218 std::vector< std::vector<const TreeAccessor*> > filteredAccessors(filterList.
size());
222 cout <<
"Processing data " <<
i <<
" of " <<
nAccessors();
223 if (treeAcc) cout <<
" (fileName = " << treeAcc->
fileName() <<
")";
227 for (
unsigned int f = 0;
f < filterList.
size();
f++) {
228 std::string pathname = (string)filterList.
fileName(
f);
229 if( pathname.find(
"eos/atlas/") < pathname.length() ){
230 int nslashes = 0, slpos = 0;
231 for(
int k1 = 0; k1 < (
int)pathname.length(); k1++ ){
232 if( nslashes > 2 )
break;
233 if( pathname[k1] !=
'/' )
continue;
237 pathname.resize( slpos );
239 TString thisFN = Form(
"%s_filter%d.root", pathname.c_str(),
i );
243 if (filteredTreeAccs.size() != filterList.
size()) {
244 cout <<
"Filtering failed, exiting" << endl;
245 return std::vector<MultiTreeAccessor*>();
247 for (
unsigned int f = 0;
f < filteredTreeAccs.size();
f++) filteredAccessors[
f].push_back(filteredTreeAccs[
f]);
250 std::vector<MultiTreeAccessor*>
result;
◆ getCellHistory()
const History * MultiTreeAccessor::getCellHistory |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
Implements LArSamples::AbsLArCells.
Definition at line 156 of file MultiTreeAccessor.cxx.
159 std::vector<const Data*> allData;
160 std::vector<const EventData*> allEventData;
163 if (!thisHistory)
continue;
167 const std::vector<const EventData*>& thisEventData = thisHistory->
eventData();
168 std::map<const EventData*, const EventData*> eventMap;
170 if (eventMap.find(
event) != eventMap.end())
continue;
172 eventMap[
event] = newED;
173 allEventData.push_back(newED);
176 for (
unsigned int i = 0;
i < thisHistory->
nData();
i++) {
◆ getCellInfo()
const CellInfo * MultiTreeAccessor::getCellInfo |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
◆ historySize()
unsigned int MultiTreeAccessor::historySize |
( |
unsigned int |
i | ) |
const |
|
virtual |
◆ nAccessors()
unsigned int LArSamples::MultiTreeAccessor::nAccessors |
( |
| ) |
const |
|
inline |
◆ nChannels()
virtual unsigned int LArSamples::AbsLArCells::nChannels |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ nEvents()
unsigned int MultiTreeAccessor::nEvents |
( |
| ) |
const |
|
virtual |
◆ newCellHistory()
const History * AbsLArCells::newCellHistory |
( |
unsigned int |
i | ) |
const |
|
virtualinherited |
◆ nRuns()
unsigned int MultiTreeAccessor::nRuns |
( |
| ) |
const |
|
virtual |
◆ open()
◆ openList()
◆ openWild()
◆ pass()
◆ resetCache()
void AbsLArCells::resetCache |
( |
| ) |
const |
|
virtualinherited |
◆ resetCellInfoCache()
void AbsLArCells::resetCellInfoCache |
( |
| ) |
|
|
inherited |
◆ runData()
const RunData * MultiTreeAccessor::runData |
( |
unsigned int |
i | ) |
const |
|
virtual |
◆ writeToFile()
bool MultiTreeAccessor::writeToFile |
( |
const TString & |
fileName | ) |
const |
|
virtual |
◆ m_accessors
◆ m_cellCache
◆ m_cellInfoCache
std::vector<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 files:
JetConstituentVector::iterator iterator
virtual const History * newCellHistory(unsigned int i) const
bool setShape(CaloGain::CaloGain gain, ShapeInfo *shape)
const CellInfo * cellInfo() const
virtual const History * cellHistory(unsigned int i) const
std::vector< CellInfo * > m_cellInfoCache
const FilterParams & filterParams(unsigned int i) const
virtual const CellInfo * cellInfo(unsigned int i) const
unsigned int nAccessors() const
TGraphErrors * GetEntries(TH2F *histo)
void add(const FilterParams ¶ms, const TString &fileName)
const Data * data(unsigned int i) const
const History * getCellHistory(unsigned int i) const
static const unsigned int nChannels
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual const CellInfo * getCellInfo(unsigned int i) const
const ShapeInfo * shape(CaloGain::CaloGain gain) const
MultiTreeAccessor(const std::vector< const TreeAccessor * > &accessors)
Constructor
InDet::SiSpacePointsSeedMakerEventData EventData
virtual const History * getCellHistory(unsigned int i) const =0
unsigned int nData() const
static TreeAccessor * merge(const std::vector< const Accessor * > &accessors, const TString &fileName="")
unsigned int nRuns() const
const EventData * eventData(unsigned int i) const
const CellInfo * cellInfoCache(unsigned int i) const
const TString & fileName(unsigned int i) const
const History * m_cellCache
CaloGain::CaloGain gain() const
const CellInfo * cellInfo() const
static TreeAccessor * filter(const Accessor &accessor, const FilterParams &filterParams, const TString &fileName, const DataTweaker &tweaker)
const RunData * runData(unsigned int i) const
virtual void resetCache() const
const TreeAccessor & accessor(unsigned int i) const
const HistoryContainer * historyContainer(unsigned int i) const
const EventData * eventData() const
const std::vector< const EventData * > & eventData() const
unsigned int size() const
unsigned int nEvents() const
virtual unsigned int nChannels() const
std::vector< const TreeAccessor * > m_accessors
static TreeAccessor * open(const TString &fileName)
unsigned int nDataContainers() const