Skip to content
Snippets Groups Projects
Commit e8d3ee12 authored by Michael Deveaux's avatar Michael Deveaux Committed by Florian Uhlig
Browse files

Data transfer by TObject added to Clusterfinder and hit finder

parent 99d6505f
No related branches found
No related tags found
1 merge request!1371Add time based digitization and reconstruction for MVD
......@@ -75,6 +75,12 @@ public:
CbmMvdSensorDataSheet* GetDataSheet() { return fSensorData; }
void SetDataSheet(CbmMvdSensorDataSheet* sheet) { fSensorData = sheet; }
void SetMap(std::map<Int_t, Int_t> SensorMap) { fSensorMap = SensorMap; } // Get Sensor Map to identify every Sensor
/*
//void SendInput(CbmMvdPoint* point);
void SendInputDigi(CbmMvdDigi* digi);
void SendInputDigiToHit(CbmMvdDigi* digi);
void SendInputCluster(CbmMvdCluster* cluster);
*/
void SetStation(Int_t StationNumber) { fStationNr = StationNumber; }
void SendInputToPlugin(Int_t nPlugin, TObject* input);
......
......@@ -163,7 +163,7 @@ void mvd_qa1_transUrqmd(const char* setup = "sis100_electron")
// --- Uniform distribution of event plane angle
primGen->SetEventPlane(0., 2. * TMath::Pi());
// --- Get target parameters
TVector3 targetPos(0., 0., 0.);
TVector3 targetPos(0., 0., -44.);
Double_t tDz = 0.;
if (target) {
targetPos = target->GetPosition();
......
......@@ -90,6 +90,22 @@ void CbmMvdClusterfinder::Exec(Option_t* /*opt*/)
LOG(debug) << "CbmMvdClusterfinder::Exec - nDigis= " << nDigis;
/*
=======
fTimer.Start();
fCluster->Delete();
if (fDigiMan->GetNofDigis(ECbmModuleId::kMvd)) {
if (fVerbose) cout << "//----------------------------------------//";
if (fVerbose) cout << endl << "Send Input" << endl;
Int_t nTargetPlugin=fDetector->DetectPlugin(200);
CbmMvdDigi* digi=0;
Int_t nDigis = fDigiMan->GetNofDigis(ECbmModuleId::kMvd);
>>>>>>> 04a94e4a (Data transfer by TObject added to Clusterfinder and hit finder):mvd/CbmMvdClusterfinder.cxx
*/
for (Int_t i = 0; i < nDigis; i++) {
digi = new CbmMvdDigi(*(fDigiMan->Get<CbmMvdDigi>(i)));
digi->SetRefId(i);
......@@ -114,6 +130,24 @@ void CbmMvdClusterfinder::Exec(Option_t* /*opt*/)
if (fVerbose) LOG(debug) << "Total of " << fCluster->GetEntriesFast() << " Cluster in this Event";
if (fVerbose) LOG(debug) << "//----------------------------------------//";
LOG(info) << "+ " << setw(20) << GetName() << ": Created: " << fCluster->GetEntriesFast() << " cluster in " << fixed
/*
=======
}
//fDetector->SendInputDigis(fDigiMan);
if (fVerbose) cout << "Execute ClusterPlugin Nr. " << fClusterPluginNr << endl;
fDetector->Exec(fClusterPluginNr);
if (fVerbose) cout << "End Chain" << endl;
if (fVerbose) cout << "Start writing Cluster" << endl;
fCluster->AbsorbObjects(fDetector->GetOutputCluster(), 0, fDetector->GetOutputCluster()->GetEntriesFast() - 1);
if (fVerbose) cout << "Total of " << fCluster->GetEntriesFast() << " Cluster in this Event" << endl;
if (fVerbose) cout << "//----------------------------------------//" << endl;
LOG(info) << "+ " << setw(20) << GetName() << ": Created: " << fCluster->GetEntriesFast() << " cluster in " << fixed
>>>>>>> 04a94e4a (Data transfer by TObject added to Clusterfinder and hit finder):mvd/CbmMvdClusterfinder.cxx
*/
<< setprecision(6) << fTimer.RealTime() << " s";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment