BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TofData.cxx
Go to the documentation of this file.
6#include "Identifier/TofID.h"
7#include <iostream>
8
11
13 m_channel = -999;
14 m_value = -999.0;
15 m_times = -1;
16 m_number = 0;
17 m_clock = -999;
18 m_used = false;
19 return;
20}
21
22
24
25
27 m_channel = source.m_channel;
28 m_value = source.m_value;
29 m_times = source.m_times;
30 m_number = source.m_number;
31 m_clock = source.m_clock;
32 m_used = source.m_used;
33 return *this;
34}
35
36
38 m_times = m_times + 1;
39 return;
40}
41
42
44 m_times = m_times - 1;
45 return;
46}
47
48
49void Tdc::setValue( int value ) {
50 m_clock = ( ( value & 0x7e000 ) >> 13 );
51 if( value == 0x7fffffff ) {
52 m_clock = 100;
53 m_channel = 10000;
54 m_value = 10000.0;
55 }
56 else if( value == -999 ) {
57 m_channel = -999;
58 m_value = -999.0;
59 }
60 else {
63 }
64
65 return;
66}
67
68
70 m_corr = false;
71 m_elec = false;
72 m_mrpc = false;
73 m_qtc = -999.0;
74}
75
76
77void Adc::setValue( Identifier identify, int value ) {
78 m_clock = ( ( value & 0x7e000 ) >> 13 );
79 if( value == 0x7fffffff ) {
80 m_clock = 100;
81 m_channel = 10000;
82 m_qtc = 10000.0;
83 m_value = 10000.0;
84 }
85 else if( value == -999 ) {
86 m_channel = -999;
87 m_qtc = -999.0;
88 m_value = -999.0;
89 }
90 else {
91
92 m_mrpc = TofID::is_mrpc( identify );
93 if( m_mrpc ) {
96 }
97 else {
98 if( !( TofID::is_scin( identify ) ) ) {
99 std::cout << "Event/RawDataProviderSvc:: ERROR! ETF(MRPC) data is treated as scintillator data !" << std::endl;
100 }
101
102 m_channel = ( value & 0x1fff );
103 if( ( value & 0x80000 ) != 0 ) {
104 if( m_corr ) {
105 if( m_channel < 4000 ) {
106 m_channel += 0x2000;
107 }
108 }
109 else {
110 m_channel += 0x2000;
111 }
112 }
113
114 int barrel = TofID::barrel_ec( identify );
115 int tofid = TofID::phi_module( identify );
116 int layer = TofID::layer( identify );
117 if( barrel==1 ) {
118 if( layer==1 ) {
119 tofid = tofid + 88;
120 }
121 }
122 else if( barrel==2 ) {
123 tofid = tofid + 48;
124 }
125 int east = TofID::end( identify );
126
127 if( m_corr ) {
128 if( barrel==1 ) {
129 if( east==0 ) {
130 m_qtc = tofQCorrSvc->BQRaw1( tofid, m_channel*1.0 );
131 }
132 else {
133 m_qtc = tofQCorrSvc->BQRaw2( tofid, m_channel*1.0 );
134 }
135 }
136 else {
137 m_qtc = tofQCorrSvc->EQRaw( tofid, m_channel*1.0 );
138 }
139 }
140 else {
141 m_qtc = m_channel*1.0;
142 }
143
144 if( m_elec ) {
145 if( barrel==1 ) {
146 if( east==0 ) {
147 m_value = tofQElecSvc->BQTC1( tofid, m_qtc );
148 }
149 else {
150 m_value = tofQElecSvc->BQTC2( tofid, m_qtc );
151 }
152 }
153 else {
154 m_value = tofQElecSvc->EQTC( tofid, m_qtc );
155 }
156 }
157 else {
158 m_value = m_qtc*1.0;
159 }
160 }
161
162 }
163 return;
164}
165
166/*
167void Adc::calculate( Identifier identify ) {
168
169 if( m_calculated ) return;
170
171 m_mrpc = TofID::is_mrpc( identify );
172 if( m_mrpc ) {
173 m_qtc = RawDataUtil::TofTime( m_channel );
174 }
175 else {
176 if( !( TofID::is_scin( identify ) ) ) {
177 std::cout << "Event/RawDataProviderSvc:: ERROR! ETF(MRPC) data is treated as scintillator data !" << std::endl;
178 }
179
180 int channel = ( m_channel & 0x1fff );
181 if( ( m_channel & 0x80000 ) != 0 ) {
182 if( m_corr ) {
183 if( channel < 4000 ) {
184 channel += 0x2000;
185 }
186 }
187 else {
188 channel += 0x2000;
189 }
190 }
191 m_channel = channel;
192
193 int barrel = TofID::barrel_ec( identify );
194 int tofid = TofID::phi_module( identify );
195 int layer = TofID::layer( identify );
196 if( barrel==1 ) {
197 if( layer==1 ) {
198 tofid = tofid + 88;
199 }
200 }
201 else if( barrel==2 ) {
202 tofid = tofid + 48;
203 }
204 int east = TofID::end( identify );
205
206 if( m_corr ) {
207 if( barrel==1 ) {
208 if( east==0 ) {
209 m_qtc = tofQCorrSvc->BQRaw1( tofid, m_channel*1.0 );
210 }
211 else {
212 m_qtc = tofQCorrSvc->BQRaw2( tofid, m_channel*1.0 );
213 }
214 }
215 else {
216 m_qtc = tofQCorrSvc->EQRaw( tofid, m_channel*1.0 );
217 }
218 }
219 else {
220 m_qtc = m_channel*1.0;
221 }
222
223 if( m_elec ) {
224 if( barrel==1 ) {
225 if( east==0 ) {
226 m_value = tofQElecSvc->BQTC1( tofid, m_qtc );
227 }
228 else {
229 m_value = tofQElecSvc->BQTC2( tofid, m_qtc );
230 }
231 }
232 else {
233 m_value = tofQElecSvc->EQTC( tofid, m_qtc );
234 }
235 }
236 else {
237 m_value = m_qtc*1.0;
238 }
239 }
240
241 m_calculated = true;
242 return;
243}
244*/
245
247 m_iden_value = 0;
248 m_times = 0;
249 m_quality = 0;
250 m_adc = 0;
251 m_tdc = 0;
252}
253
254
258
259
261 m_iden_value = source.m_iden_value;
262 m_times = source.m_times;
263 m_quality = source.m_quality;
264 m_adc = source.m_adc;
265 m_tdc = source.m_tdc;
266 return *this;
267}
268
269
271 int channel = -999;
272 if( m_adc ) {
273 channel = m_adc->channel();
274 }
275 return channel;
276}
277
278
279double PmtData::qtc() {
280 double value = -999.0;
281 if( m_adc ) {
282 value = m_adc->qtc();
283 }
284 else {
285 if( m_tdc ) {
286 value = 10000.0;
287 }
288 }
289 return value;
290}
291
292
293double PmtData::adc() {
294 double value = -999.0;
295 if( m_adc ) {
296
297 if( TofID::is_mrpc( TofID::cell_id( m_iden_value ) ) ) {
298 if( m_tdc ) {
299 double tleading = m_tdc->value();
300 if( tleading>0.0 ) {
301 int qchannel = m_adc->channel();
302 if( qchannel!=10000 && qchannel!=-999 ) {
303 double ttrailing = m_adc->qtc();
304 value = ttrailing - tleading;
305 }
306 }
307 }
308 }
309 else {
310 value = m_adc->value();
311 }
312 }
313 else {
314 if( m_tdc ) {
315 value = 10000.0;
316 }
317 }
318 return value;
319}
320
321
323 int clock = -999;
324 if( m_adc ) {
325 clock = m_adc->clock();
326 }
327 return clock;
328}
329
330
332 int channel = -999;
333 if( m_tdc ) {
334 channel = m_tdc->channel();
335 }
336 return channel;
337}
338
339
340double PmtData::tdc() {
341 double value = -999.;
342 if( m_tdc ) {
343 value = m_tdc->value();
344 }
345 return value;
346}
347
348
350 int clock = -999;
351 if( m_tdc ) {
352 clock = m_tdc->clock();
353 }
354 return clock;
355}
356
357
359 m_times = m_times + 1;
360 return;
361}
362
363
365 m_times = m_times - 1;
366 return;
367}
368
369
371 if( m_adc ) {
372 m_adc->timespp();
373 }
374 return;
375}
376
377
379 if( m_adc ) {
380 m_adc->timesmm();
381 }
382 return;
383}
384
385
387 if( m_tdc ) {
388 m_tdc->timespp();
389 }
390 return;
391}
392
393
395 if( m_tdc ) {
396 m_tdc->timesmm();
397 }
398 return;
399}
400
401
403 int times = -1;
404 if( m_adc ) {
405 times = m_adc->times();
406 }
407 return times;
408}
409
410
412 int times = -1;
413 if( m_tdc ) {
414 times = m_tdc->times();
415 }
416 return times;
417}
418
419
421 int number = 0;
422 if( m_adc ) {
423 number = m_adc->number();
424 }
425 return number;
426}
427
428
430 int number = 0;
431 if( m_tdc ) {
432 number = m_tdc->number();
433 }
434 return number;
435}
436
437
439 bool used = false;
440 if( m_adc ) {
441 used = m_adc->used();
442 }
443 return used;
444}
445
446
448 bool used = false;
449 if( m_tdc ) {
450 used = m_tdc->used();
451 }
452 return used;
453}
454
455
457 bool used = false;
458 if( m_adc ) {
459 used = ( used || m_adc->used() );
460 }
461 if( m_tdc ) {
462 used = ( used || m_tdc->used() );
463 }
464 return used;
465}
466
467
468void PmtData::setAdc( Adc* adc ) {
469 m_adc = adc;
470 if( adc->channel() != -999 ) {
471 if( m_adc->times() == -1 ) { m_adc->timespp(); }
472 m_quality = ( m_quality | 0x2 );
473 }
474 return;
475}
476
477
478void PmtData::setTdc( Tdc* tdc ) {
479 m_tdc = tdc;
480 if( tdc->channel() != -999 ) {
481 if( m_tdc->times() == -1 ) { m_tdc->timespp(); }
482 m_quality = ( m_quality | 0x1 );
483 }
484 return;
485}
486
487
489 if( m_adc ) {
490 m_adc->setUsed( true );
491 }
492 if( m_tdc ) {
493 m_tdc->setUsed( true );
494 }
495 return;
496}
497
498
500 if( m_adc ) {
501 if( m_adc->times() <= 1 ) {
502 delete m_adc;
503 m_adc = 0;
504 }
505 else {
506 m_adc->timesmm();
507 }
508 }
509 if( m_tdc ) {
510 if( m_tdc->times() <= 1 ) {
511 delete m_tdc;
512 m_tdc = 0;
513 }
514 else {
515 m_tdc->timesmm();
516 }
517 }
518 return;
519}
520
521
523 m_identify = 0;
524 m_mrpc = false;
525 m_barrel = false;
526 m_tofId = -1;
527 m_layer = -1;
528 m_strip = -1;
529 m_tofTrackId = -1;
530 m_misLable = false;
531 m_quality = 0;
532 m_tmatched = false;
533 m_forward = 0;
534 m_backward = 0;
535 m_ztdc = -999;
536 m_zadc = -999;
537 m_zpos = -999;
538 m_energy = 0;
539}
540
541
543 m_identify = source.m_identify;
544 m_mrpc = source.m_mrpc;
545 m_barrel = source.m_barrel;
546 m_tofId = source.m_tofId;
547 m_layer = source.m_layer;
548 m_strip = source.m_strip;
549 m_tofTrackId = source.m_tofTrackId;
550 m_misLable = source.m_misLable;
551 m_quality = source.m_quality;
552 m_tmatched = source.m_tmatched;
553 m_forward = source.m_forward;
554 m_backward = source.m_backward;
555 m_ztdc = source.m_ztdc;
556 m_zadc = source.m_zadc;
557 m_zpos = source.m_zpos;
558 m_energy = source.m_energy;
559 return *this;
560}
561
562
566
567/*
568int TofData::tofId() {
569 if( !m_mrpc && !m_barrel && m_misLable ) {
570 if( m_tofId == 90 ) { return 91; }
571 else if( m_tofId == 91 ) { return 90; }
572 }
573 return m_tofId;
574}
575*/
576
578 m_identify = identify.get_value();
579 m_mrpc = TofID::is_mrpc( identify );
580 if( !m_mrpc ) {
581 int barrel_ec = TofID::barrel_ec(identify);
582 m_layer = TofID::layer(identify);
583 m_tofId = TofID::phi_module(identify);
584 if( barrel_ec == 0 ) {
585 m_barrel = false;
586 }
587 else if( barrel_ec == 1 ) {
588 m_barrel = true;
589 if( m_layer == 1 ) { m_tofId = m_tofId + 88; }
590 }
591 else if( barrel_ec == 2 ) {
592 m_barrel = false;
593 m_tofId = m_tofId + 48;
594 }
595 }
596 else {
597 m_barrel = false;
598 int endcap = TofID::endcap(identify);
599 m_tofId = TofID::module(identify);
600 if( endcap==1 ) {
601 m_tofId = m_tofId + 36;
602 }
603 m_strip = TofID::strip(identify);
604 }
605
606 return;
607}
608
609
610void TofData::data( double& adcEast, double& tdcEast, double& adcWest, double& tdcWest ) {
611 adcEast = -999.;
612 tdcEast = -999.;
613 if( m_forward ) {
614 adcEast = m_forward->adc();
615 tdcEast = m_forward->tdc();
616 }
617 adcWest = -999.;
618 tdcWest = -999.;
619 if( m_backward ) {
620 adcWest = m_backward->adc();
621 tdcWest = m_backward->tdc();
622 }
623 return;
624}
625
626
627void TofData::data(double& adc, double& tdc ) {
628 adc = -999.;
629 tdc = -999.;
630 if( m_forward ) {
631 adc = m_forward->adc();
632 tdc = m_forward->tdc();
633 }
634 return;
635}
636
637
639 double value = -999.;
640 if( m_forward ) {
641 value = m_forward->adc();
642 }
643 return value;
644}
645
646
648 double value = -999.;
649 if( m_forward ) {
650 value = m_forward->tdc();
651 }
652 return value;
653}
654
655
657 double value = -999.;
658 if( m_backward ) {
659 value = m_backward->adc();
660 }
661 return value;
662}
663
664
666 double value = -999.;
667 if( m_backward ) {
668 value = m_backward->tdc();
669 }
670 return value;
671}
672
673
674double TofData::adc() {
675 double value = -999.;
676 if( m_forward ) {
677 value = m_forward->adc();
678 }
679 return value;
680}
681
682
683double TofData::tdc() {
684 double value = -999.;
685 if( m_forward ) {
686 value = m_forward->tdc();
687 }
688 return value;
689}
690
691
693 double value = -999.;
694 if( m_forward ) {
695 value = m_forward->qtc();
696 }
697 return value;
698}
699
700
702 double value = -999.;
703 if( m_backward ) {
704 value = m_backward->qtc();
705 }
706 return value;
707}
708
709
710double TofData::qtc() {
711 double value = -999.;
712 if( m_forward ) {
713 value = m_forward->qtc();
714 }
715 return value;
716}
717
718
720 int channel = -999;
721 if( m_forward ) {
722 channel = m_forward->adcChannel();
723 }
724 return channel;
725}
726
727
729 int channel = -999;
730 if( m_forward ) {
731 channel = m_forward->tdcChannel();
732 }
733 return channel;
734}
735
736
738 int channel = -999;
739 if( m_backward ) {
740 channel = m_backward->adcChannel();
741 }
742 return channel;
743}
744
745
747 int channel = -999;
748 if( m_backward ) {
749 channel = m_backward->tdcChannel();
750 }
751 return channel;
752}
753
754
756 int channel = -999;
757 if( m_forward ) {
758 channel = m_forward->adcChannel();
759 }
760 return channel;
761}
762
763
765 int channel = -999;
766 if( m_forward ) {
767 channel = m_forward->tdcChannel();
768 }
769 return channel;
770}
771
772
774 int clock = -999;
775 if( m_forward ) {
776 clock = m_forward->qclock();
777 }
778 return clock;
779}
780
781
783 int clock = -999;
784 if( m_forward ) {
785 clock = m_forward->tclock();
786 }
787 return clock;
788}
789
790
792 int clock = -999;
793 if( m_backward ) {
794 clock = m_backward->qclock();
795 }
796 return clock;
797}
798
799
801 int clock = -999;
802 if( m_backward ) {
803 clock = m_backward->tclock();
804 }
805 return clock;
806}
807
808
810 int clock = -999;
811 if( m_forward ) {
812 clock = m_forward->qclock();
813 }
814 return clock;
815}
816
817
819 int clock = -999;
820 if( m_forward ) {
821 clock = m_forward->tclock();
822 }
823 return clock;
824}
825
826
828 int times = -1;
829 if( m_forward ) {
830 times = m_forward->qtimes();
831 }
832 return times;
833}
834
835
837 int times = -1;
838 if( m_forward ) {
839 times = m_forward->ttimes();
840 }
841 return times;
842}
843
844
846 int times = -1;
847 if( m_backward ) {
848 times = m_backward->qtimes();
849 }
850 return times;
851}
852
853
855 int times = -1;
856 if( m_backward ) {
857 times = m_backward->ttimes();
858 }
859 return times;
860}
861
862
863unsigned int TofData::eastTimes() {
864 int times = 0;
865 if( m_forward ) {
866 times = m_forward->times();
867 }
868 return times;
869}
870
871
872unsigned int TofData::westTimes() {
873 int times = 0;
874 if( m_backward ) {
875 times = m_backward->times();
876 }
877 return times;
878}
879
880
882 int number = 0;
883 if( m_forward ) {
884 number = m_forward->qnumber();
885 }
886 return number;
887}
888
889
891 int number = 0;
892 if( m_forward ) {
893 number = m_forward->tnumber();
894 }
895 return number;
896}
897
898
900 int number = 0;
901 if( m_backward ) {
902 number = m_backward->qnumber();
903 }
904 return number;
905}
906
907
909 int number = 0;
910 if( m_backward ) {
911 number = m_backward->tnumber();
912 }
913 return number;
914}
915
916
918 bool used = false;
919 if( m_forward ) {
920 used = ( used || m_forward->qused() );
921 }
922 return used;
923}
924
925
927 bool used = false;
928 if( m_forward ) {
929 used = ( used || m_forward->tused() );
930 }
931 return used;
932}
933
934
936 bool used = false;
937 if( m_backward ) {
938 used = ( used || m_backward->qused() );
939 }
940 return used;
941}
942
943
945 bool used = false;
946 if( m_backward ) {
947 used = ( used || m_backward->tused() );
948 }
949 return used;
950}
951
952
954 bool used = false;
955 if( m_forward ) {
956 used = ( used || m_forward->used() );
957 }
958 return used;
959}
960
961
963 bool used = false;
964 if( m_backward ) {
965 used = ( used || m_backward->used() );
966 }
967 return used;
968}
969
970
972 bool used = false;
973 if( m_forward ) {
974 used = ( used || m_forward->used() );
975 }
976 if( m_backward ) {
977 used = ( used || m_backward->used() );
978 }
979 return used;
980}
981
982
984 m_forward = pmt;
985 unsigned int quality = m_forward->quality();
986 quality = ( quality & 0x3 );
987 if( quality != 0 ) {
988 m_forward->timespp();
989 if( ( quality & 0x1 ) != 0 ) {
990 m_forward->ttimespp();
991 }
992 if( ( quality & 0x2 ) != 0 ) {
993 m_forward->qtimespp();
994 }
995 }
996 m_quality = ( m_quality | ( quality << 2 ) );
997 return;
998}
999
1000
1002 m_backward = pmt;
1003 unsigned int quality = m_backward->quality();
1004 quality = ( quality & 0x3 );
1005 if( quality != 0 ) {
1006 m_backward->timespp();
1007 if( ( quality & 0x1 ) != 0 ) {
1008 m_backward->ttimespp();
1009 }
1010 if( ( quality & 0x2 ) != 0 ) {
1011 m_backward->qtimespp();
1012 }
1013 }
1014 m_quality = ( m_quality | quality );
1015 return;
1016}
1017
1018
1020 if( m_forward ) {
1021 m_forward->setUsed();
1022 }
1023 if( m_backward ) {
1024 m_backward->setUsed();
1025 }
1026 return;
1027}
1028
1029
1031 if( m_forward ) {
1032 if( m_forward->times() <= 1 ) {
1033 delete m_forward;
1034 m_forward = 0;
1035 }
1036 else {
1037 m_forward->timesmm();
1038 }
1039 }
1040 if( m_backward ) {
1041 if( m_backward->times() <= 1 ) {
1042 delete m_backward;
1043 m_backward = 0;
1044 }
1045 else {
1046 m_backward->timesmm();
1047 }
1048 }
1049 return;
1050}
ITofQElecSvc * tofQElecSvc
ITofQCorrSvc * tofQCorrSvc
Definition TofData.h:43
Adc()
Definition TofData.cxx:69
double qtc() const
Definition TofData.h:52
void setValue(Identifier identify, int value)
Definition TofData.cxx:77
virtual const double BQRaw1(int id, double q)=0
virtual const double EQRaw(int id, double q)=0
virtual const double BQRaw2(int id, double q)=0
virtual const double BQTC2(int id, double q)=0
virtual const double BQTC1(int id, double q)=0
virtual const double EQTC(int id, double q)=0
void qtimespp()
Definition TofData.cxx:370
int qtimes()
Definition TofData.cxx:402
bool tused()
Definition TofData.cxx:447
int tdcChannel()
Definition TofData.cxx:331
void setAdc(Adc *adc)
Definition TofData.cxx:468
unsigned int times() const
Definition TofData.h:76
double tdc()
Definition TofData.cxx:340
bool qused()
Definition TofData.cxx:438
int ttimes()
Definition TofData.cxx:411
void qtimesmm()
Definition TofData.cxx:378
double adc()
Definition TofData.cxx:293
int tnumber()
Definition TofData.cxx:429
void setTdc(Tdc *tdc)
Definition TofData.cxx:478
void timespp()
Definition TofData.cxx:358
void ttimesmm()
Definition TofData.cxx:394
void timesmm()
Definition TofData.cxx:364
unsigned int quality() const
Definition TofData.h:84
int adcChannel()
Definition TofData.cxx:270
void ttimespp()
Definition TofData.cxx:386
int qnumber()
Definition TofData.cxx:420
double qtc()
Definition TofData.cxx:279
void clear()
Definition TofData.cxx:499
int tclock()
Definition TofData.cxx:349
PmtData & operator=(const PmtData &source)
Definition TofData.cxx:260
bool used()
Definition TofData.cxx:456
void setUsed()
Definition TofData.cxx:488
int qclock()
Definition TofData.cxx:322
static double TofTime(unsigned int timeChannel)
Definition RawDataUtil.h:63
Definition TofData.h:60
void setValue(int value)
Definition TofData.cxx:49
int tdcChannel()
Definition TofData.cxx:764
double qtc2()
Definition TofData.cxx:701
int qnumber2()
Definition TofData.cxx:899
int qtimes2()
Definition TofData.cxx:845
void setUsed()
Definition TofData.cxx:1019
bool tused2()
Definition TofData.cxx:944
unsigned int quality() const
Definition TofData.h:168
unsigned int westTimes()
Definition TofData.cxx:872
int ttimes1()
Definition TofData.cxx:836
bool qused1()
Definition TofData.cxx:917
void data(double &adcEast, double &tdcEast, double &adcWest, double &tdcWest)
Definition TofData.cxx:610
bool tused1()
Definition TofData.cxx:926
double adc2()
Definition TofData.cxx:656
int tclock1()
Definition TofData.cxx:782
void setForward(PmtData *pmt)
Definition TofData.cxx:983
int qclock1()
Definition TofData.cxx:773
int tclock()
Definition TofData.cxx:818
double adc()
Definition TofData.cxx:674
unsigned int times() const
Definition TofData.h:135
double tdc2()
Definition TofData.cxx:665
double qtc1()
Definition TofData.cxx:692
TofData & operator=(const TofData &source)
Definition TofData.cxx:542
int tdcChannelWest()
Definition TofData.cxx:746
int adcChannel()
Definition TofData.cxx:755
void clear()
Definition TofData.cxx:1030
bool used2()
Definition TofData.cxx:962
int qtimes1()
Definition TofData.cxx:827
unsigned int identify() const
Definition TofData.h:127
int tnumber1()
Definition TofData.cxx:890
int adcChannelWest()
Definition TofData.cxx:737
bool qused2()
Definition TofData.cxx:935
double tdc1()
Definition TofData.cxx:647
void setBackward(PmtData *pmt)
Definition TofData.cxx:1001
int qnumber1()
Definition TofData.cxx:881
int adcChannelEast()
Definition TofData.cxx:719
int qclock()
Definition TofData.cxx:809
int ttimes2()
Definition TofData.cxx:854
double adc1()
Definition TofData.cxx:638
int qclock2()
Definition TofData.cxx:791
unsigned int eastTimes()
Definition TofData.cxx:863
int tnumber2()
Definition TofData.cxx:908
bool used1()
Definition TofData.cxx:953
double tdc()
Definition TofData.cxx:683
void setIdentify(Identifier identify)
Definition TofData.cxx:577
int tclock2()
Definition TofData.cxx:800
int tdcChannelEast()
Definition TofData.cxx:728
double qtc()
Definition TofData.cxx:710
bool used()
Definition TofData.cxx:971
static int endcap(const Identifier &id)
Definition TofID.cxx:124
static int strip(const Identifier &id)
Definition TofID.cxx:136
static Identifier cell_id(int barrel_ec, int layer, int phi_module, int end)
For a single crystal.
Definition TofID.cxx:143
static bool is_scin(const Identifier &id)
Definition TofID.cxx:102
static int end(const Identifier &id)
Definition TofID.cxx:79
static bool is_mrpc(const Identifier &id)
Definition TofID.cxx:113
static int phi_module(const Identifier &id)
Definition TofID.cxx:73
static int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
Definition TofID.cxx:61
static int layer(const Identifier &id)
Definition TofID.cxx:66
void timespp()
Definition TofData.cxx:37
TofValue & operator=(const TofValue &source)
Definition TofData.cxx:26
void timesmm()
Definition TofData.cxx:43
double value() const
Definition TofData.h:21
double m_value
Definition TofData.h:33
int m_channel
Definition TofData.h:32
int m_clock
Definition TofData.h:31
int clock() const
Definition TofData.h:20
int number() const
Definition TofData.h:19
int channel() const
Definition TofData.h:17
virtual ~TofValue()
Definition TofData.cxx:23
void setUsed(bool used)
Definition TofData.h:28
int times() const
Definition TofData.h:18
bool used() const
Definition TofData.h:22