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