7 #include "FairMQLogger.h"
13 std::vector<Int_t> posHits;
14 for (UInt_t
i = 0;
i < hits.size();
i++){
19 std::vector<std::vector<Int_t> > result;
20 Int_t sizeTempHits = posHits.size();
22 while (sizeTempHits != 0) {
23 std::vector<Int_t> tempInt;
24 tempInt.push_back(
MoveHit(&posHits, 0));
25 result.push_back(tempInt);
26 Int_t sizeResultI = (result.end() - 1)->size();
27 for (Int_t
i = 0;
i < sizeResultI;
i++) {
28 sizeTempHits = posHits.size();
29 for (Int_t j = 0; j < sizeTempHits; j++) {
30 if (hits[(*(result.end() - 1))[
i]].GetSensorID() == hits[posHits[j]].GetSensorID()) {
31 if (
IsInRange(&hits[(*(result.end() - 1))[
i]], &hits[posHits[j]])) {
36 sizeTempHits = posHits.size();
38 sizeResultI = (result.end() - 1)->size();
47 if (index < (Int_t)hitVector->size()){
48 result = (*hitVector)[index];
49 hitVector->erase(hitVector->begin()+index);
62 result1 = (col1-col2);
64 result2 = (row1-row2);
Int_t GetPixelRow() const
static T Sqrt(const T &x)
Int_t GetPixelColumn() const
labels push_back("electron")
Int_t MoveHit(std::vector< Int_t > *hitVector, Int_t index) const
std::vector< std::vector< Int_t > > GetClusters(std::vector< PndSdsDigiTopix4 > &hits)
bool IsInRange(PndSdsDigiPixel *hit1, PndSdsDigiPixel *hit2) const
Data class to store the digi output of a pixel module.