16 std::vector<ConvertedHit> Thits = Sout.
Hits();
17 std::vector<std::vector<Winner>> Winners = Sout.
Winners();
18 std::vector<int> segment (4,0);
19 int phdiff[4] = {15,15,8,8};
25 std::vector<ConvertedHit>
p (4,tt);std::vector<std::vector<ConvertedHit>>
pp (3,
p);
29 std::vector<ConvertedHit>
q (2,tt);
30 std::vector<std::vector<ConvertedHit>> qq (4,
q);std::vector<std::vector<std::vector<ConvertedHit>>> qqq (3,qq);
42 if(Winners[
z][
w].Rank()){
44 if(verbose)
std::cout<<
"\n\nWinner position-"<<Winners[
z][
w].Strip()<<
". Zone = "<<
z<<std::endl;
46 for(std::vector<ConvertedHit>::iterator
i = Thits.begin();
i != Thits.end();
i++){
50 if(verbose)
std::cout<<
"strip = "<<
i->Strip()<<
", keywire = "<<
i->Wire()<<
" and zhit-"<<
i->Zhit()<<std:: endl;
62 int setstation =
i->Station() - 1;
70 std::cout<<
"setstation = "<<setstation<<std::endl;
72 if((fabs((Winners[
z][
w].
Strip()) -
i->Zhit()) <= phdiff[setstation]) ){
74 if(ph_output[
z][
w][setstation].
Phi() == -999){
76 if(verbose)
std::cout<<
"hasn't been set"<<std::endl;
78 ph_output[
z][
w][setstation] = (*i);
80 if(verbose)
std::cout<<
"set with strip-"<<
i->Strip()<<
", and wire-"<<
i->Wire()<<std::endl;
85 if(verbose)
std::cout<<
"has already been set"<<std::endl;
87 int d1 = fabs(ph_output[
z][
w][setstation].Zhit() - Winners[
z][
w].
Strip());
88 int d2 = fabs(
i->Zhit() - Winners[
z][
w].Strip());
92 if(verbose)
std::cout<<
"this is closer strip-"<<
i->Strip()<<
", and wire-"<<
i->Wire()<<std::endl;
94 ph_output[
z][
w][setstation] = (*i);
108 th_output[
z][
w][setstation][0] = (*i);
110 if((th_output[
z][
w][setstation][0].Theta() != -999) && (th_output[
z][
w][setstation][0].Id() ==
i->Id()))
111 th_output[
z][
w][setstation][1] = (*i);
124 output.
SetValues(th_output,ph_output,Thits,Winners,segment);
std::vector< std::vector< Winner > > Winners()
void SetValues(ThOutput th_output, PhOutput ph_output, std::vector< ConvertedHit > hits, std::vector< std::vector< Winner >> winners, std::vector< int > segment)
std::vector< std::vector< std::vector< std::vector< ConvertedHit > > > > ThOutput
std::vector< std::vector< std::vector< ConvertedHit > > > PhOutput
std::vector< ConvertedHit > Hits()