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
move Hit to common
  • Loading branch information
AllaMaevskaya committed Mar 29, 2019
commit 9d0e919346a1e1ba4734bb91dcaf76d752d991d2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class TGraph;
namespace o2
{
namespace t0

{
class Geometry;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DigitizerTask : public FairTask
const std::vector<o2::t0::HitType>* mHitsArray = nullptr; ///< Array of MC hits

TBranch* mQEDBranch = nullptr; //! optional special branch of hits from QED collitions
const std::vector<o2::t0::HitType>* mHitsArrayQED = nullptr; //! array of MC hits from ED
const std::vector<o2::fit::HitType>* mHitsArrayQED = nullptr; //! array of MC hits from ED
float mQEDEntryTimeBinNS = 0.f; ///< every entry in the QED branch integrates QED for so many nanosec.
double mLastQEDTimeNS = 0.; ///< center of the time-bin of last added QED bg slot (entry of mQEDBranch)
int mLastQEDEntry = -1; ///< last used QED entry
Expand Down
5 changes: 5 additions & 0 deletions Detectors/FIT/common/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,14 @@ void Digitizer::initParameters()
// murmur
}
//_______________________________________________________________________
<<<<<<< HEAD
void Digitizer::init()
{
std::cout << " @@@ Digitizer::init " << std::endl;
=======
void Digitizer::init() {
std::cout<<" @@@ Digitizer::init "<<std::endl;
>>>>>>> move Hit to common
}

//_______________________________________________________________________
Expand Down
2 changes: 1 addition & 1 deletion Steer/DigitizerWorkflow/src/FITDigitWriterSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FITDPLDigitWriter
void init(framework::InitContext& ic)
{
std::string detStrL = mID.getName();
std::transform(detStrL.begin(), detStrL.end(), detStrL.begin(), ::tolower);
std::transform(detStrL.begin(), detStrL.end(), detStrL.begin(), ::tolower);

auto filename = ic.options().get<std::string>((detStrL + "-digit-outfile").c_str());
auto treename = ic.options().get<std::string>("treename");
Expand Down
10 changes: 8 additions & 2 deletions Steer/DigitizerWorkflow/src/FITDigitizerSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class FITDPLDigitizerTask

LOG(INFO) << "CALLING FIT DIGITIZATION";

static std::vector<o2::t0::HitType> hits;
static std::vector<o2::fit::HitType> hits;
o2::dataformats::MCTruthContainer<o2::MCCompLabel> labelAccum;
o2::dataformats::MCTruthContainer<o2::MCCompLabel> labels;
o2::fit::Digit digit;
Expand All @@ -114,8 +114,12 @@ class FITDPLDigitizerTask
for (auto& part : eventParts[collID]) {
// get the hits for this event and this source
hits.clear();
<<<<<<< HEAD
retrieveHits(mSimChains, part.sourceID, part.entryID, &hits);

=======
retrieveHits(mSimChains, "T0Hit", part.sourceID, part.entryID, &hits);
>>>>>>> move Hit to common
LOG(INFO) << "For collision " << collID << " eventID " << part.entryID << " found " << hits.size() << " hits ";

// call actual digitization procedure
Expand Down Expand Up @@ -203,9 +207,9 @@ class FITT0DPLDigitizerTask : public FITDPLDigitizerTask
mOrigin = DETOR;
std::cout << " @@@@ DETOR FITT0DPLDigitizerTask " << mOrigin << " " << mID.getName() << std::endl;
}

};

//_______________________________________________
class FITT0DPLDigitizerTask : public FITDPLDigitizerTask
{
public:
Expand All @@ -216,6 +220,7 @@ class FITT0DPLDigitizerTask : public FITDPLDigitizerTask
{
mID = DETID;
mOrigin = DETOR;
std::cout << " @@@@ DETOR FITT0DPLDigitizerTask " << mOrigin << " " << mID.getName() << std::endl;
}
};

Expand All @@ -232,6 +237,7 @@ o2::framework::DataProcessorSpec getFITT0DigitizerSpec(int channel)
std::string detStr = o2::detectors::DetID::getName(FITT0DPLDigitizerTask::DETID);
auto detOrig = FITT0DPLDigitizerTask::DETOR;
std::cout << "@@@@ getFITT0DigitizerSpec " << detStr << " dteOrig " << detOrig << std::endl;

return DataProcessorSpec{
(detStr + "Digitizer").c_str(),
Inputs{ InputSpec{ "collisioncontext", "SIM", "COLLISIONCONTEXT", static_cast<SubSpecificationType>(channel), Lifetime::Timeframe } },
Expand Down