Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
T0 simulation works with this
  • Loading branch information
AllaMaevskaya committed Mar 29, 2019
commit d748e728fadb4391c39f2e2bb1ab13ea7d1fb013
1 change: 0 additions & 1 deletion Steer/DigitizerWorkflow/src/FITDigitWriterSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace fit
{

o2::framework::DataProcessorSpec getT0DigitWriterSpec();
//o2::framework::DataProcessorSpec getMFTDigitWriterSpec();

} // namespace fit
} // end namespace o2
Expand Down
18 changes: 17 additions & 1 deletion Steer/DigitizerWorkflow/src/FITDigitizerSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class FITDPLDigitizerTask
// get the hits for this event and this source
hits.clear();
retrieveHits(mSimChains, part.sourceID, part.entryID, &hits);

LOG(INFO) << "For collision " << collID << " eventID " << part.entryID << " found " << hits.size() << " hits ";

// call actual digitization procedure
Expand Down Expand Up @@ -147,7 +148,8 @@ class FITDPLDigitizerTask
// here we have all digits and we can send them to consumer (aka snapshot it onto output)
pc.outputs().snapshot(Output{ mOrigin, "DIGITS", 0, Lifetime::Timeframe }, digitAccum);
// pc.outputs().snapshot(Output{ "FIT", "DIGITSMCTR", 0, Lifetime::Timeframe }, labelAccum);
LOG(INFO) << "FIT: " << mID.getName() << " Sending ROMode= " << mROMode << " to GRPUpdater";

LOG(INFO) << "FIT: Sending ROMode= " << mROMode << " to GRPUpdater";
pc.outputs().snapshot(Output{ mOrigin, "ROMode", 0, Lifetime::Timeframe }, mROMode);
timer.Stop();
LOG(INFO) << "Digitization took " << timer.CpuTime() << "s";
Expand Down Expand Up @@ -203,6 +205,20 @@ class FITT0DPLDigitizerTask : public FITDPLDigitizerTask
}
};

//_______________________________________________
class FITT0DPLDigitizerTask : public FITDPLDigitizerTask
{
public:
// FIXME: origina should be extractable from the DetID, the problem is 3d party header dependencies
static constexpr o2::detectors::DetID::ID DETID = o2::detectors::DetID::T0;
static constexpr o2::header::DataOrigin DETOR = o2::header::gDataOriginT0;
FITT0DPLDigitizerTask()
{
mID = DETID;
mOrigin = DETOR;
}
};

constexpr o2::detectors::DetID::ID FITT0DPLDigitizerTask::DETID;
constexpr o2::header::DataOrigin FITT0DPLDigitizerTask::DETOR;

Expand Down