14 std::vector<std::vector<ConvertedHit>>
GroupBX(std::vector<ConvertedHit> ConvHits){
16 std::vector<ConvertedHit>
tmp;
17 std::vector<std::vector<ConvertedHit>>
output (3,tmp);
19 const int CentralBX = 6;
21 for(std::vector<ConvertedHit>::iterator
i = ConvHits.begin();
i != ConvHits.end();
i++){
23 int diff =
i->BX() - CentralBX;
25 if((diff > -3) && (diff < 1))
26 output[0].push_back(*
i);
28 if((diff < 3) && (diff > -1))
29 output[2].push_back(*
i);
32 output[1].push_back(*
i);
42 std::vector<int>
tmp (192,0);
43 std::vector<std::vector<int>> rank (4,tmp), layer(4,tmp),straightness(4,tmp);
44 std::vector<ConvertedHit> Hits;
50 for(
int zone=0;zone<4;zone++){
51 for(
int strip=0;strip<192;strip++){
53 if(Pout[
i].detected.rank[zone][strip] >= rank[zone][strip]){
55 rank[zone][strip] = Pout[
i].detected.rank[zone][strip];
56 layer[zone][strip] = Pout[
i].detected.layer[zone][strip];
57 straightness[zone][strip] = Pout[
i].detected.straightness[zone][strip];
63 if(set && (Pout[
i].hits.size() > Hits.size())){
65 std::vector<ConvertedHit>
test = Pout[
i].hits;
67 for(std::vector<ConvertedHit>::iterator it = test.begin();it != test.end();it++){
std::vector< std::vector< double > > tmp
PatternOutput DeleteDuplicatePatterns(std::vector< PatternOutput > Pout)
std::vector< std::vector< ConvertedHit > > GroupBX(std::vector< ConvertedHit > ConvHits)
std::vector< ConvertedHit > hits