// ------------------------------------------------------------------------- // ----- PndMvdPixelClusterTasksource file ----- // ------------------------------------------------------------------------- #include "PndMvdToPix4ClusterTask.h" #include "FairRuntimeDb.h" #include "FairRunAna.h" #include "PndSdsPixelDigiPar.h" #include "PndSdsDigiTopix4.h" // ----- Default constructor ------------------------------------------- PndMvdToPix4ClusterTask::PndMvdToPix4ClusterTask(TString parName, TString totParName) : PndMvdPixelClusterTask(parName, totParName) { fPersistance = kTRUE; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- PndMvdToPix4ClusterTask::~PndMvdToPix4ClusterTask() { } // ------------------------------------------------------------------------- std::vector PndMvdToPix4ClusterTask::ConvertAndFilter(TClonesArray* digidata) { std::vector result; for (Int_t iPoint = 0; iPoint < digidata->GetEntriesFast(); iPoint++){ // Just conversion PndSdsDigiTopix4* myDigi = (PndSdsDigiTopix4*)(digidata->At(iPoint)); if (myDigi->GetLeadingEdge() == 2729 || myDigi->GetLeadingEdge() == 2730 || myDigi->GetTrailingEdge() == 2730 || myDigi->GetTrailingEdge() == 2731){ std::cout << "Digi filtered: " << *myDigi << std::endl; } else { result.push_back(*myDigi); } } return result; } ClassImp(PndMvdToPix4ClusterTask);