#include <EventData.h>
|
| static void | drawBoxRoI (double eta, double phi, double etaSize=0.2, double phiSize=0.2) |
◆ EventData() [1/3]
Constructor.
Definition at line 21 of file EventData.cxx.
21 :
23{
29}
void incrementInstanceCount() const
std::vector< unsigned int > m_eventData
const RunData * m_runData
◆ EventData() [2/3]
| EventData::EventData |
( |
int | event, |
|
|
int | runIndex, |
|
|
int | lumiBlock, |
|
|
int | bunchId ) |
Definition at line 42 of file EventData.cxx.
42 :
44{
50}
unsigned int lumiBlock() const
unsigned int bunchId() const
◆ EventData() [3/3]
| EventData::EventData |
( |
const EventData & | other, |
|
|
int | newRunIndex = -1 ) |
Definition at line 32 of file EventData.cxx.
36{
39}
void setRunIndex(int idx)
std::vector< RoIPosition > m_rois
◆ ~EventData()
| EventData::~EventData |
( |
| ) |
|
|
virtual |
Destructor.
Definition at line 53 of file EventData.cxx.
54{
56}
void decrementInstanceCount() const
◆ addRoI()
| void LArSamples::EventData::addRoI |
( |
float | eta, |
|
|
float | phi, |
|
|
const char * | name = "", |
|
|
const char * | label = "" ) |
|
inline |
◆ bit()
| bool EventData::bit |
( |
unsigned int | pos | ) |
const |
Definition at line 98 of file EventData.cxx.
99{
100 unsigned int word =
pos/32;
101 unsigned int bpos =
pos%32;
104}
unsigned int triggerWord(unsigned int i) const
unsigned int nTriggerWords() const
◆ bunchId()
| unsigned int LArSamples::EventData::bunchId |
( |
| ) |
const |
|
inline |
◆ description()
| TString EventData::description |
( |
unsigned int | verbosity | ) |
const |
Definition at line 131 of file EventData.cxx.
132{
133 TString printout = "";
134 if (verbosity & 1)
136 if (verbosity & 2)
137 printout += Form(
", triggers = %40s",
triggers().
Data());
138 if (verbosity & 4) {
139 printout += ", RoIs = ";
140 for (
unsigned int i = 0;
i <
nRoIs();
i++)
142 }
143 return printout;
144}
RoIPosition roI(unsigned int i) const
unsigned int nRoIs() const
◆ drawBoxRoI()
| void EventData::drawBoxRoI |
( |
double | eta, |
|
|
double | phi, |
|
|
double | etaSize = 0.2, |
|
|
double | phiSize = 0.2 ) |
|
static |
Definition at line 165 of file EventData.cxx.
166{
167 TBox box;
168 box.SetFillStyle(0);
169
170 box.DrawBox(
eta - etaSize/2,
phi - phiSize/2,
eta + etaSize/2,
phi + phiSize/2);
171}
◆ drawBoxRoIs()
| void EventData::drawBoxRoIs |
( |
double | etaSize = 0.2, |
|
|
double | phiSize = 0.2 ) const |
Definition at line 156 of file EventData.cxx.
157{
158 TBox box;
159 box.SetFillStyle(0);
160
162}
static void drawBoxRoI(double eta, double phi, double etaSize=0.2, double phiSize=0.2)
◆ drawDRRoIs()
| void EventData::drawDRRoIs |
( |
double | roISize = 0.1 | ) |
const |
Definition at line 147 of file EventData.cxx.
148{
149 TEllipse ell;
150 ell.SetFillStyle(0);
151
152 for (
unsigned int i = 0;
i <
nRoIs();
i++)
153 ell.DrawEllipse(
roI(i).
eta,
roI(i).
phi, roISize, roISize, 0, 360, 0);
154}
◆ event()
| int LArSamples::EventData::event |
( |
| ) |
const |
|
inline |
◆ footprint()
| double LArSamples::EventData::footprint |
( |
| ) |
const |
|
inline |
◆ isPassed()
| bool EventData::isPassed |
( |
const TString & | bitName | ) |
const |
Definition at line 88 of file EventData.cxx.
89{
92 if (index < 0 && bitName ==
"L1_MBTS_1_1")
index = 228;
93 if (index < 0) return false;
94 return bit((
unsigned int)index);
95}
bool bit(unsigned int pos) const
const RunData * runData() const
int triggerBitPosition(const TString &triggerBitName) const
◆ l1Word()
| unsigned int LArSamples::EventData::l1Word |
( |
unsigned int | i | ) |
const |
|
inline |
◆ lumiBlock()
| unsigned int LArSamples::EventData::lumiBlock |
( |
| ) |
const |
|
inline |
◆ nRoIs()
| unsigned int LArSamples::EventData::nRoIs |
( |
| ) |
const |
|
inline |
◆ nTriggerWords()
| unsigned int LArSamples::EventData::nTriggerWords |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ removeRoIs()
| void LArSamples::EventData::removeRoIs |
( |
| ) |
|
|
inline |
◆ roI()
| RoIPosition LArSamples::EventData::roI |
( |
unsigned int | i | ) |
const |
|
inline |
◆ roIs()
| TString EventData::roIs |
( |
| ) |
const |
◆ run()
| int EventData::run |
( |
| ) |
const |
◆ runData()
| const RunData * LArSamples::EventData::runData |
( |
| ) |
const |
|
inline |
◆ runIndex()
| int LArSamples::EventData::runIndex |
( |
| ) |
const |
|
inline |
◆ setRunData()
| void LArSamples::EventData::setRunData |
( |
const RunData * | runData | ) |
|
|
inline |
◆ setRunIndex()
| void LArSamples::EventData::setRunIndex |
( |
int | idx | ) |
|
|
inlineprivate |
◆ setTriggerData()
| void EventData::setTriggerData |
( |
const std::vector< unsigned int > & | words | ) |
|
◆ triggerData()
| std::vector< unsigned int > EventData::triggerData |
( |
| ) |
const |
Definition at line 66 of file EventData.cxx.
67{
68 std::vector<unsigned int> trigData;
71 return trigData;
72}
◆ triggers()
| TString EventData::triggers |
( |
| ) |
const |
Definition at line 107 of file EventData.cxx.
108{
112 {
116 }
117 }
119}
bool isPassed(const TString &bitName) const
◆ triggerWord()
| unsigned int EventData::triggerWord |
( |
unsigned int | i | ) |
const |
◆ m_eventData
| std::vector<unsigned int> LArSamples::EventData::m_eventData |
|
private |
◆ m_rois
◆ m_runData
| const RunData* LArSamples::EventData::m_runData |
|
mutableprivate |
The documentation for this class was generated from the following files: