26 int freq1,
freq2,
freq3,
freq4,
freq5,
freq6,
freq7,
freq8,
freq9,
freq10,
freq11,
freq12;
49 double ResetCount = ROSDebug_BcntResCnt*0.0000891;
52 ResetCount_unfolded = ResetCount +
cycle*
cont;
55 ResetCount_unfolded = ResetCount +
cycle*
cont;
61 else if (ROS_number == 2){
62 double ResetCount2 = ROSDebug_BcntResCnt*0.0000891;
64 ResetCount_unfolded = ResetCount2 +
cycle*
cont2;
67 ResetCount_unfolded = ResetCount2 +
cycle*
cont2;
73 else if (ROS_number == 3){
74 double ResetCount3 = ROSDebug_BcntResCnt*0.0000891;
76 ResetCount_unfolded = ResetCount3 +
cycle*
cont3;
79 ResetCount_unfolded = ResetCount3 +
cycle*
cont3;
86 else if (ROS_number == 4){
87 double ResetCount4 = ROSDebug_BcntResCnt*0.0000891;
89 ResetCount_unfolded = ResetCount4 +
cycle*
cont4;
92 ResetCount_unfolded = ResetCount4 +
cycle*
cont4;
98 else if (ROS_number == 5){
99 double ResetCount5 = ROSDebug_BcntResCnt*0.0000891;
101 ResetCount_unfolded = ResetCount5 +
cycle*
cont5;
104 ResetCount_unfolded = ResetCount5 +
cycle*
cont5;
110 else if (ROS_number == 6){
111 double ResetCount6 = ROSDebug_BcntResCnt*0.0000891;
113 ResetCount_unfolded = ResetCount6 +
cycle*
cont6;
116 ResetCount_unfolded = ResetCount6 +
cycle*
cont6;
122 else if (ROS_number == 7){
123 double ResetCount7 = ROSDebug_BcntResCnt*0.0000891;
125 ResetCount_unfolded = ResetCount7 +
cycle*
cont7;
128 ResetCount_unfolded = ResetCount7 +
cycle*
cont7;
134 else if (ROS_number == 8){
135 double ResetCount8 = ROSDebug_BcntResCnt*0.0000891;
137 ResetCount_unfolded = ResetCount8 +
cycle*
cont8;
140 ResetCount_unfolded = ResetCount8 +
cycle*
cont8;
146 else if (ROS_number == 9){
147 double ResetCount9 = ROSDebug_BcntResCnt*0.0000891;
149 ResetCount_unfolded = ResetCount9 +
cycle*
cont9;
152 ResetCount_unfolded = ResetCount9 +
cycle*
cont9;
158 else if (ROS_number == 10){
159 double ResetCount10 = ROSDebug_BcntResCnt*0.0000891;
170 else if (ROS_number == 11){
171 double ResetCount11 = ROSDebug_BcntResCnt*0.0000891;
182 else if (ROS_number == 12){
183 double ResetCount12 = ROSDebug_BcntResCnt*0.0000891;
200 int neventsROS25,
double& frequency,
float& trigger_counter)
203 trigger_counter = 0.;
208 long double second_evt = ROSDebug_BcntResCnt;
209 if (neventsROS25==1)
first_evt = ROSDebug_BcntResCnt;
211 if (ROSDebug_BcntResCnt<16777215) {
223 long double second_evt_neg = second_evt +
max_bx;
240 else if (ROS_number == 2){
241 long double second_evt2 = ROSDebug_BcntResCnt;
243 if (neventsROS25==1)
first_evt2 = ROSDebug_BcntResCnt;
245 if (ROSDebug_BcntResCnt<16777215) {
257 long double second_evt_neg2 = second_evt2 +
max_bx;
271 else if (ROS_number == 3){
273 long double second_evt3 = ROSDebug_BcntResCnt;
274 if (neventsROS25==1)
first_evt3 = ROSDebug_BcntResCnt;
276 if (ROSDebug_BcntResCnt<16777215) {
288 long double second_evt_neg3 = second_evt3 +
max_bx;
303 else if (ROS_number == 4){
305 long double second_evt4 = ROSDebug_BcntResCnt;
306 if (neventsROS25==1)
first_evt4 = ROSDebug_BcntResCnt;
308 if (ROSDebug_BcntResCnt<16777215) {
320 long double second_evt_neg4 = second_evt4 +
max_bx;
334 else if (ROS_number == 5){
336 long double second_evt5 = ROSDebug_BcntResCnt;
337 if (neventsROS25==1)
first_evt5 = ROSDebug_BcntResCnt;
339 if (ROSDebug_BcntResCnt<16777215) {
351 long double second_evt_neg5 = second_evt5 +
max_bx;
365 else if (ROS_number == 6){
367 long double second_evt6 = ROSDebug_BcntResCnt;
368 if (neventsROS25==1)
first_evt6 = ROSDebug_BcntResCnt;
370 if (ROSDebug_BcntResCnt<16777215) {
382 long double second_evt_neg6 = second_evt6 +
max_bx;
397 else if (ROS_number == 7){
399 long double second_evt7 = ROSDebug_BcntResCnt;
400 if (neventsROS25==1)
first_evt7 = ROSDebug_BcntResCnt;
402 if (ROSDebug_BcntResCnt<16777215) {
414 long double second_evt_neg7 = second_evt7 +
max_bx;
428 else if (ROS_number == 8){
430 long double second_evt8 = ROSDebug_BcntResCnt;
431 if (neventsROS25==1)
first_evt8 = ROSDebug_BcntResCnt;
433 if (ROSDebug_BcntResCnt<16777215) {
445 long double second_evt_neg8 = second_evt8 +
max_bx;
459 else if (ROS_number == 9){
461 long double second_evt9 = ROSDebug_BcntResCnt;
462 if (neventsROS25==1)
first_evt9 = ROSDebug_BcntResCnt;
464 if (ROSDebug_BcntResCnt<16777215) {
476 long double second_evt_neg9 = second_evt9 +
max_bx;
491 else if (ROS_number == 10){
493 long double second_evt10 = ROSDebug_BcntResCnt;
494 if (neventsROS25==1)
first_evt10 = ROSDebug_BcntResCnt;
496 if (ROSDebug_BcntResCnt<16777215) {
508 long double second_evt_neg10 = second_evt10 +
max_bx;
523 else if (ROS_number == 11){
525 long double second_evt11 = ROSDebug_BcntResCnt;
526 if (neventsROS25==1)
first_evt11 = ROSDebug_BcntResCnt;
528 if (ROSDebug_BcntResCnt<16777215) {
540 long double second_evt_neg11 = second_evt11 +
max_bx;
555 else if (ROS_number == 12){
557 long double second_evt12 = ROSDebug_BcntResCnt;
558 if (neventsROS25==1)
first_evt12 = ROSDebug_BcntResCnt;
560 if (ROSDebug_BcntResCnt<16777215) {
572 long double second_evt_neg12 = second_evt12 +
max_bx;
double ResetCount_unfolded_comp7
double ResetCount_unfolded_comp4
void ROSWords_t(double &ResetCount_unfolded, int ROS_number, int ROSDebug_BcntResCnt, int nevents)
void ROS_L1A_Frequency(int ROS_number, int ROSDebug_BcntResCnt, int neventsROS25, double &frequency, float &trigger_counter)
std::string itoa(int current)
double ResetCount_unfolded
double ResetCount_unfolded_comp5
double ResetCount_unfolded_comp9
double ResetCount_unfolded_comp3
double ResetCount_unfolded_comp2
const unsigned long long max_bx
double ResetCount_unfolded_comp
double ResetCount_unfolded_comp11
double ResetCount_unfolded_comp12
double ResetCount_unfolded_comp10
double ResetCount_unfolded_comp8
double ResetCount_unfolded_comp6