15 bool outOfTime =
false;
16 bool increasing =
true;
17 bool anydifferentzero =
true;
18 bool anydifferentone =
true;
22 std::sort(HSCPRPCRecHits.begin(), HSCPRPCRecHits.end());
24 for(std::vector<susybsm::RPCHit4D>::iterator
point = HSCPRPCRecHits.begin();
point < HSCPRPCRecHits.end(); ++
point) {
25 outOfTime |= (
point->bx!=0);
26 increasing &= (
point->bx>=lastbx);
27 anydifferentzero &= (!
point->bx==0);
28 anydifferentone &= (!
point->bx==1);
44 float maginfirstknee = 0;
45 for(std::vector<susybsm::RPCHit4D>::iterator
point = HSCPRPCRecHits.begin();
point < HSCPRPCRecHits.end(); ++
point) {
47 maginfirstknee =
point->gp.mag();
48 }
else if((lastbx!=
point->bx)){
50 maginknee=
point->gp.mag();
58 betavalue=maginfirstknee/(25.-delay+maginfirstknee/30.)/30.;
64 if(!anydifferentzero){
65 betavalue=maginknee/(25-delay+maginknee/30.)/30.;
66 }
else if(!anydifferentone){
67 betavalue=maginknee/(50-delay+maginknee/30.)/30.;
69 betavalue1=maginknee/(25-delay+maginknee/30.)/30.;
70 float dr =(maginknee-maginfirstknee);
71 betavalue2 = dr/(25.-delay+dr/30.);
73 betavalue = (betavalue1 + betavalue2)*0.5;
82 for(std::vector<susybsm::RPCHit4D>::iterator
point = HSCPRPCRecHits.begin();
point < HSCPRPCRecHits.end(); ++
point) {
84 maginfirstknee =
point->gp.mag();
85 }
else if((lastbx!=
point->bx)){
89 float maginsecondknee=
point->gp.mag();
90 betavalue1=maginknee/(25-delay+maginknee/30.)/30.;
91 float dr =(maginknee-maginsecondknee);
92 betavalue2 = dr/(25.+dr/30.);
98 betavalue = (betavalue1 + betavalue2)*0.5;
108 if(HSCPRPCRecHits.size()==0){
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point