Definition at line 105 of file scaler_module.cxx.
◆ Scaler()
| Scaler::Scaler |
( |
TARunInfo * |
runinfo | ) |
|
|
inline |
◆ ~Scaler()
◆ Analyze()
| TAFlowEvent * Scaler::Analyze |
( |
TARunInfo * |
runinfo, |
|
|
TMEvent * |
event, |
|
|
TAFlags * |
flags, |
|
|
TAFlowEvent * |
flow |
|
) |
| |
|
inline |
Definition at line 134 of file scaler_module.cxx.
135 {
136 printf(
"Analyze, run %d, event serno %d, id 0x%04x, data size %d\n",
runinfo->fRunNo, event->serial_number, (
int)event->event_id, event->data_size);
137
138 TMBank* bsclr = event->FindBank("SCLR");
139 if (!bsclr)
140 return flow;
141
142 uint32_t* psclr = (uint32_t*)event->GetBankData(bsclr);
143 if (!psclr)
144 return flow;
145
146 int n = bsclr->data_size /
sizeof(uint32_t);
148 return flow;
149
151
152 double acum[32];
153
154
155 for (
int i = 0;
i <
n;
i++) {
158 }
159
160
161 event->AddBank(
"ACUM",
TID_DOUBLE, (
char*)&acum,
sizeof(acum));
162
163 return flow;
164 }
◆ BeginRun()
| void Scaler::BeginRun |
( |
TARunInfo * |
runinfo | ) |
|
|
inline |
◆ EndRun()
| void Scaler::EndRun |
( |
TARunInfo * |
runinfo | ) |
|
|
inline |
◆ fScaler
| double Scaler::fScaler[32] |
The documentation for this struct was generated from the following file: