 |
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 269 of file MultiTreeAccessor.cxx.
271 std::vector< std::vector<const TreeAccessor*> > filteredAccessors(filterList.
size());
275 cout <<
"Processing data " <<
i <<
" of " <<
nAccessors();
276 if (treeAcc) cout <<
" (fileName = " << treeAcc->
fileName() <<
")";
280 for (
unsigned int f = 0;
f < filterList.
size();
f++) {
281 std::string pathname = (string)filterList.
fileName(
f);
282 if( pathname.find(
"eos/atlas/") < pathname.length() ){
283 int nslashes = 0, slpos = 0;
284 for(
int k1 = 0; k1 < (
int)pathname.length(); k1++ ){
285 if( nslashes > 2 )
break;
286 if( pathname[k1] !=
'/' )
continue;
290 pathname.resize( slpos );
292 TString thisFN = Form(
"%s_filter%d.root", pathname.c_str(),
i );
296 if (filteredTreeAccs.size() != filterList.
size()) {
297 cout <<
"Filtering failed, exiting" << endl;
298 return std::vector<MultiTreeAccessor*>();
300 for (
unsigned int f = 0;
f < filteredTreeAccs.size();
f++) filteredAccessors[
f].push_back(filteredTreeAccs[
f]);
303 std::vector<MultiTreeAccessor*>
result;
◆ getCellHistory()
const History * MultiTreeAccessor::getCellHistory |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
Implements LArSamples::AbsLArCells.
Definition at line 167 of file MultiTreeAccessor.cxx.
170 std::vector<const Data*> allData;
171 std::vector<const EventData*> allEventData;
174 if (!thisHistory)
continue;
178 const std::vector<const EventData*>& thisEventData = thisHistory->
eventData();
179 std::map<const EventData*, const EventData*> eventMap;
181 if (eventMap.find(
event) != eventMap.end())
continue;
183 eventMap[
event] = newED;
184 allEventData.push_back(newED);
187 for (
unsigned int j = 0; j < thisHistory->
nData(); j++) {
188 allData.push_back(
new Data(*thisHistory->
data(j), eventMap[thisHistory->
data(j)->
eventData()],
nullptr, -1));
◆ getCellInfo()
const CellInfo * MultiTreeAccessor::getCellInfo |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
◆ getSCHistory()
const History * MultiTreeAccessor::getSCHistory |
( |
unsigned int |
i | ) |
const |
|
protectedvirtual |
Implements LArSamples::AbsLArCells.
Definition at line 202 of file MultiTreeAccessor.cxx.
204 std::unique_ptr<CellInfo>
cellInfo{};
205 std::vector<const Data*> allData;
206 std::vector<const EventData*> allEventData;
211 if (!thisHistory)
continue;
217 const std::vector<const EventData*>& thisEventData = thisHistory->
eventData();
218 std::map<const EventData*, const EventData*> eventMap;
220 if (eventMap.find(
event) != eventMap.end())
continue;
222 eventMap[
event] = newED;
223 allEventData.push_back(newED);
227 for (
unsigned int ii = 0; ii < thisHistory->
nData(); ii++) {
229 allData.push_back(
new Data(*thisHistory->
data(ii), eventMap[thisHistory->
data(ii)->
eventData()],
nullptr, -1));
◆ historySize()
unsigned int MultiTreeAccessor::historySize |
( |
unsigned int |
i | ) |
const |
|
virtual |
◆ historySizeSC()
unsigned int MultiTreeAccessor::historySizeSC |
( |
unsigned int |
i | ) |
const |
|
virtual |
◆ nAccessors()
unsigned int LArSamples::MultiTreeAccessor::nAccessors |
( |
| ) |
const |
|
inline |
◆ nChannels()
virtual unsigned int LArSamples::AbsLArCells::nChannels |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ nChannelsSC()
virtual unsigned int LArSamples::AbsLArCells::nChannelsSC |
( |
| ) |
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
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 HistoryContainer * historyContainerSC(unsigned int i) const
const CellInfo * cellInfo() const
const History * getSCHistory(unsigned int i) const
static TreeAccessor * filter(const Accessor &accessor, const FilterParams &filterParams, const TString &fileName, const DataTweaker &tweaker)
static const unsigned int nChannelsSC
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