Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Detectors/EMCAL/simulation/src/RawCreator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int main(int argc, const char** argv)
rawwriter.setFileFor(granularity);
rawwriter.setGeometry(o2::emcal::Geometry::GetInstanceFromRunNumber(300000));
rawwriter.setNumberOfADCSamples(15); // @TODO Needs to come from CCDB
rawwriter.setPedestal(0); // @TODO Needs to come from CCDB
rawwriter.setPedestal(3); // @TODO Needs to come from CCDB
rawwriter.init();

// Loop over all entries in the tree, where each tree entry corresponds to a time frame
Expand Down
6 changes: 5 additions & 1 deletion Detectors/EMCAL/simulation/src/RawWriter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void RawWriter::digitsToRaw(gsl::span<o2::emcal::Digit> digitsbranch, gsl::span<

bool RawWriter::processTrigger(const o2::emcal::TriggerRecord& trg)
{
for (auto srucont : mSRUdata) {
for (auto& srucont : mSRUdata) {
srucont.mChannels.clear();
}
std::vector<o2::emcal::Digit*>* bunchDigits;
Expand Down Expand Up @@ -183,6 +183,10 @@ std::vector<AltroBunch> RawWriter::findBunches(const std::vector<o2::emcal::Digi
for (itime = channelDigits.size() - 1; itime >= 0; itime--) {
auto dig = channelDigits[itime];
if (!dig) {
if (currentBunch) {
currentBunch->mStarttime = itime + 1;
currentBunch = nullptr;
}
continue;
}
int adc = dig->getAmplitudeADC();
Expand Down