|
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 215 of file MultiTreeAccessor.cxx.
217 std::vector< std::vector<const TreeAccessor*> > filteredAccessors(filterList.
size());
221 cout <<
"Processing data " <<
i <<
" of " <<
nAccessors();
222 if (treeAcc) cout <<
" (fileName = " << treeAcc->
fileName() <<
")";
226 for (
unsigned int f = 0;
f < filterList.
size();
f++) {
227 std::string pathname = (string)filterList.
fileName(
f);
228 if( pathname.find(
"eos/atlas/") < pathname.length() ){
229 int nslashes = 0, slpos = 0;
230 for(
int k1 = 0; k1 < (
int)pathname.length(); k1++ ){
231 if( nslashes > 2 )
break;
232 if( pathname[k1] !=
'/' )
continue;
236 pathname.resize( slpos );
238 TString thisFN = Form(
"%s_filter%d.root", pathname.c_str(),
i );
242 if (filteredTreeAccs.size() != filterList.
size()) {
243 cout <<
"Filtering failed, exiting" << endl;
244 return std::vector<MultiTreeAccessor*>();
246 for (
unsigned int f = 0;
f < filteredTreeAccs.size();
f++) filteredAccessors[
f].push_back(filteredTreeAccs[
f]);
249 std::vector<MultiTreeAccessor*>
result;
◆ getCellHistory()
const History * MultiTreeAccessor::getCellHistory |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
Implements LArSamples::AbsLArCells.
Definition at line 155 of file MultiTreeAccessor.cxx.
158 std::vector<const Data*> allData;
159 std::vector<const EventData*> allEventData;
162 if (!thisHistory)
continue;
166 const std::vector<const EventData*>& thisEventData = thisHistory->
eventData();
167 std::map<const EventData*, const EventData*> eventMap;
169 if (eventMap.find(
event) != eventMap.end())
continue;
171 eventMap[
event] = newED;
172 allEventData.push_back(newED);
175 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