10#ifndef LArSamples_Interface_H
11#define LArSamples_Interface_H
44 static Interface* open(
const TString& fileName);
45 static Interface* open(
const std::vector<TString>& fileNames);
46 static Interface* openList(
const TString& fileList);
47 static Interface* openWild(
const TString& wcName);
60 HistoryIterator begin(
unsigned int pos = 0,
double eMin = -1,
double adcMaxMin = -1)
const;
63 unsigned int size()
const;
64 unsigned int nFilledChannels()
const;
65 void printFilledRanges(
unsigned int skip = 0)
const;
67 bool highEData(
double eCut, TArrayI& hashes, TArrayI& indices)
const;
73 bool neighbors(
const CellInfo& cell,
double dRCut, std::vector<unsigned int>& hashes)
const;
74 bool firstNeighbors(
unsigned int hash, std::vector<unsigned int>& hashes,
short layer = -2)
const;
75 bool data(
const std::vector<unsigned int>& hashes,
const EventData& event, std::vector<const Data*>&
data)
const;
80 static Interface*
merge(
const std::vector<const Interface*>& interfaces,
const TString& fileName);
81 static Interface*
merge(
const std::vector<const Interface*>& interfaces,
const TString& fileName,
const TString& LBFile);
83 static Interface*
merge(
const TString& listFileName,
const TString& fileName);
84 static Interface*
merge(
const TString& listFileName,
const TString& fileName,
const TString& LBFile);
85 static bool filterAndMerge(
const TString& listFileName,
const TString& outFile,
const TString& filters,
const TString& tweaks =
"");
87 Interface* filter(
const TString&
sel,
const TString& fileName,
const TString& tweaks =
"")
const;
90 Interface* makeTemplate(
const TString& fileName)
const;
97 TH1D* Draw(
const TString& var,
int nBins,
double xMin,
double xMax,
const TString&
sel =
"",
const TString& opt =
"")
const;
98 TH2D* Draw(
const TString& varList,
int nBinsX,
double xMin,
double xMax,
int nBinsY,
double yMin,
double yMax,
99 const TString&
sel =
"",
const TString& opt =
"")
const;
100 TH2D* DrawPartition(
PartitionId partition,
const TString& var,
const TString&
sel =
"",
const TString& opt =
"",
102 TH2D* DrawEtaPhi(
CaloId calo,
short layer,
const TString& var,
const TString&
sel =
"",
const TString& opt =
"",
104 bool Scan(
const TString& vars,
const TString&
sel =
"",
unsigned int verbosity = 1)
const;
105 bool Scan(
const TString& vars,
CombinationType comb,
const TString&
sel =
"",
const TString& ranges =
"",
unsigned int verbosity = 1)
const;
107 bool Show(
unsigned int hash,
unsigned int verbosity = 1)
const;
108 bool Show(
const TString&
sel =
"",
unsigned int verbosity = 1)
const;
109 bool ShowEvents(
const TString&
sel =
"",
unsigned int verbosity = 1)
const;
110 bool ShowRuns(
unsigned int verbosity = 1)
const;
112 bool ShowStats(
const TString& varList,
const TString&
sel =
"",
bool withErrors =
false)
const;
118 bool dumpEventTuple(
const TString& variables,
const TString& fileName)
const;
121 void setShapeError(
double k);
122 void setShapeError(
const TString& fileName);
127 static TString addSuffix(
const TString& fileName,
const TString& suffix);
129 const History* cellHistory(
unsigned int i)
const;
130 const History* getCellHistory(
unsigned int i)
const;
131 const History* getSCHistory(
unsigned int i)
const;
132 const CellInfo* getCellInfo(
unsigned int i)
const;
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
char data[hepevt_bytes_allocation_ATLAS]
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
This is a "hash" representation of an Identifier.
virtual unsigned int nChannels() const
storage of the time histories of all the cells
storage of the time histories of all the cells
storage of the time histories of all the cells
OccupancyMonitor occupancyMonitor() const
const Accessor & accessor() const
const AbsShapeErrorGetter * m_shapeErrorGetter
const AbsShapeErrorGetter * shapeErrorGetter() const
bool writeToFile(const TString &fileName) const
FitMonitor fitMonitor() const
unsigned int nRuns() const
Interface(const Accessor &accessor)
Constructor.
std::vector< unsigned int > m_neighborHistoryPos
bool m_ownShapeErrorGetter
std::vector< std::vector< unsigned int > * > m_neighborCache
unsigned int historySizeSC(unsigned int i) const
DigitMonitor digitMonitor() const
const Accessor * m_accessor
const EventData * eventData(unsigned int i) const
std::vector< const History * > m_neighborHistories
unsigned int nEvents() const
unsigned int historySize(unsigned int i) const
const RunData * runData(unsigned int i) const
storage of the time histories of all the cells