#include <UberEvent.h>
Public Member Functions | |
| UberEvent () | |
| virtual | ~UberEvent () |
| void | ResetEvent () |
| void | AddNextHit (UShort_t p, UShort_t s) |
| void | AddNextHitValues (StripEnd::StripEnd_t se, Int_t adc, Float_t npe, Float_t sigcorr, Float_t mip, Float_t time, Int_t agg) |
| void | AddNextCosmicHit (UShort_t p, UShort_t s) |
| void | AddNextCosmicHitValues (StripEnd::StripEnd_t se, Int_t adc, Float_t time, Int_t agg) |
| void | Print (Option_t *option="") const |
| const TClonesArray * | GetHitList () const |
Public Attributes | |
| UInt_t | snarlno |
| Int_t | triggerword |
| Double_t | triggertime |
| UInt_t | nhits |
| UShort_t | nhitplanes |
| UShort_t | nhitstrips |
| UShort_t | ndeadplanes |
| UShort_t | mindeadplaneno |
| Float_t | sigcorrconv |
| Float_t | totmip |
| Int_t | maxadc |
| Float_t | maxnpe |
| Float_t | maxmip |
| Float_t | maxtime |
| Float_t | p0totmip |
| Float_t | p1totmip |
| UShort_t | p0stripmaxmip |
| Float_t | p0maxmiptstamp |
| UShort_t | p1stripmaxmip |
| Float_t | p1maxmiptstamp |
| Float_t | mipweighaveplane |
| Float_t | mipweighcentereven |
| Float_t | mipweighcenterodd |
| Float_t | mipweighrad |
| UShort_t | showermax |
| Float_t | mipshowermax |
| Int_t | ceradc [CalDetConstants::KOVCONST] |
| Float_t | certime [CalDetConstants::KOVCONST] |
| Int_t | toftdc [CalDetConstants::TOFCONST] |
| Int_t | tofadc [CalDetConstants::TOFCONST] |
| Float_t | tofhittime [CalDetConstants::TOFCONST] |
| Float_t | toftime |
Private Attributes | |
| UInt_t | fhitindex |
| TClonesArray * | hitlist |
| a variable to keep track of the position of current hit | |
| UInt_t | fcoshitindex |
| TClonesArray * | coshitlist |
| a variable to keep track of the position of current hit | |
Static Private Attributes | |
| TClonesArray * | fghitlist = 0 |
| TClonesArray * | fgcoshitlist = 0 |
|
|
Definition at line 19 of file UberEvent.cxx. References MSG. 00019 : 00020 snarlno(0), 00021 triggerword(0), 00022 triggertime(0.), 00023 nhits(0), 00024 nhitplanes(0), 00025 nhitstrips(0), 00026 ndeadplanes(0), 00027 mindeadplaneno(CalDetConstants::PLANECONST), 00028 sigcorrconv(0.), 00029 totmip(0.), 00030 maxadc(0), 00031 maxnpe(0.), 00032 maxmip(0.), 00033 maxtime(0.), 00034 p0totmip(0.), 00035 p1totmip(0.), 00036 p0stripmaxmip(CalDetConstants::STRIPCONST), 00037 p0maxmiptstamp(0.), 00038 p1stripmaxmip(CalDetConstants::STRIPCONST), 00039 p1maxmiptstamp(0.), 00040 mipweighaveplane(0.), 00041 mipweighcentereven(0.), 00042 mipweighcenterodd(0.), 00043 mipweighrad(0.), 00044 showermax(0), 00045 mipshowermax(0.), 00046 toftime(0.), 00047 fhitindex(0), 00048 fcoshitindex(0) 00049 00050 { 00051 00052 MSG("UberEvent",Msg::kDebug)<<"In UberEvent creator"<<endl; 00053 for(int i=0;i<CalDetConstants::KOVCONST;i++){ 00054 ceradc[i]=0; 00055 certime[i]=0.; 00056 } 00057 for(int i=0;i<CalDetConstants::TOFCONST;i++){ 00058 toftdc[i]=0; 00059 tofadc[i]=0; 00060 tofhittime[i]=0.; 00061 } 00062 if(!fghitlist){ 00063 fghitlist = new TClonesArray("UberHit",1440); 00064 } 00065 hitlist = fghitlist; 00066 00067 if(!fgcoshitlist){ 00068 fgcoshitlist = new TClonesArray("UberCosmicHit",96); 00069 } 00070 coshitlist = fgcoshitlist; 00071 00072 }//end UberEvent() //________________________________________________________________________________
|
|
|
Definition at line 74 of file UberEvent.cxx. References hitlist. 00075 {
00076 hitlist->Clear();
00077
00078 }//end ~UberEvent()
|
|
||||||||||||
|
Definition at line 148 of file UberEvent.cxx. References fcoshitindex, MSG, s(), and UberCosmicHit::SetPlaneStrip(). Referenced by UberDST::Ana(). 00149 {
00150 MSG("UberEvent",Msg::kDebug)<<"In UberEvent AddNextHit"<<endl;
00151 new((*coshitlist)[fcoshitindex]) UberCosmicHit();
00152 UberCosmicHit *uch = static_cast<UberCosmicHit *>((*coshitlist)[fcoshitindex]);
00153 uch->SetPlaneStrip(p,s);
00154 fcoshitindex++;
00155 return;
00156
00157 }//end AddNextCosmicHit()
|
|
||||||||||||||||||||
|
Definition at line 159 of file UberEvent.cxx. References UberCosmicHit::AddValues(), fcoshitindex, and MSG. Referenced by UberDST::Ana(). 00161 {
00162 MSG("UberEvent",Msg::kDebug)<<"In UberEvent AddnextCosmicHitValues"<<endl;
00163 UberCosmicHit *uch = static_cast<UberCosmicHit *>((*coshitlist)[fcoshitindex-1]);
00164 uch->AddValues(se, adc, time, agg);
00165 return;
00166 }//end AddNextCosmicHitValues()
|
|
||||||||||||
|
Definition at line 127 of file UberEvent.cxx. References fhitindex, MSG, s(), and UberHit::SetPlaneStrip(). Referenced by UberDST::Ana(). 00128 {
00129 MSG("UberEvent",Msg::kDebug)<<"In UberEvent AddNextHit"<<endl;
00130 new((*hitlist)[fhitindex]) UberHit();
00131 UberHit *uh = static_cast<UberHit *>((*hitlist)[fhitindex]);
00132 uh->SetPlaneStrip(p,s);
00133 fhitindex++;
00134 return;
00135
00136 }//end AddNextHit()
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 138 of file UberEvent.cxx. References UberHit::AddValues(), fhitindex, and MSG. Referenced by UberDST::Ana(). 00141 {
00142 MSG("UberEvent",Msg::kDebug)<<"In UberEvent AddnextHitValues"<<endl;
00143 UberHit *uh = static_cast<UberHit *>((*hitlist)[fhitindex-1]);
00144 uh->AddValues(se, adc, siglin, npe, mip, time, agg);
00145 return;
00146 }//end AddNextHitValues()
|
|
|
Definition at line 31 of file UberEvent.h. 00031 {return hitlist;}
|
|
|
Definition at line 168 of file UberEvent.cxx. References hitlist, and UberHit::Print(). 00169 {
00170
00171 int i=0;
00172 TObject *obj = 0;
00173 while((obj = hitlist->At(i))){
00174 UberHit *uh = static_cast<UberHit *>(obj);
00175 cout<<"HIT "<<i<<endl;
00176 uh->Print();
00177 i++;
00178 }
00179
00180 }//end Print()
|
|
|
Definition at line 80 of file UberEvent.cxx. References ceradc, certime, coshitlist, fcoshitindex, fhitindex, hitlist, maxadc, maxmip, maxnpe, maxtime, mindeadplaneno, mipshowermax, mipweighaveplane, mipweighcentereven, mipweighcenterodd, mipweighrad, MSG, ndeadplanes, nhitplanes, nhits, nhitstrips, p0maxmiptstamp, p0stripmaxmip, p0totmip, p1maxmiptstamp, p1stripmaxmip, p1totmip, showermax, sigcorrconv, snarlno, tofadc, tofhittime, toftdc, toftime, totmip, triggertime, and triggerword. Referenced by UberDST::Ana(). 00081 {
00082 MSG("UberEvent",Msg::kDebug)<<"In UberEvent ResetEvent"<<endl;
00083 hitlist->Clear();
00084 fhitindex=0;
00085 coshitlist->Clear();
00086 fcoshitindex=0;
00087
00088 fhitindex=0;
00089 snarlno=0;
00090 triggerword=0;
00091 triggertime=0.;
00092 nhits=0;
00093 nhitplanes=0;
00094 nhitstrips=0;
00095 ndeadplanes=0;
00096 mindeadplaneno=CalDetConstants::PLANECONST;
00097 sigcorrconv =0.;
00098 totmip=0;
00099 maxadc=0;
00100 maxnpe=0;
00101 maxmip=0;
00102 maxtime=0;
00103 p0totmip=0;
00104 p1totmip=0;
00105 p0stripmaxmip=CalDetConstants::STRIPCONST;
00106 p0maxmiptstamp=0.;
00107 p1stripmaxmip=CalDetConstants::STRIPCONST;
00108 p1maxmiptstamp=0.;
00109 mipweighaveplane=0.;
00110 mipweighcentereven=0.;
00111 mipweighcenterodd=0.;
00112 mipweighrad=0.;
00113 showermax=0;
00114 mipshowermax = 0.;
00115 for(int i=0;i<CalDetConstants::KOVCONST;i++){
00116 ceradc[i]=0;
00117 certime[i]=0.;
00118 }
00119 for(int i=0;i<CalDetConstants::TOFCONST;i++){
00120 toftdc[i]=0;
00121 tofadc[i]=0;
00122 tofhittime[i]=0.;
00123 }
00124 toftime=0;
00125 }//end ResetEvent()
|
|
|
Definition at line 63 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 64 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
a variable to keep track of the position of current hit
Definition at line 78 of file UberEvent.h. Referenced by ResetEvent(). |
|
|
Definition at line 77 of file UberEvent.h. Referenced by AddNextCosmicHit(), AddNextCosmicHitValues(), and ResetEvent(). |
|
|
Definition at line 17 of file UberEvent.cxx. |
|
|
Definition at line 16 of file UberEvent.cxx. |
|
|
Definition at line 72 of file UberEvent.h. Referenced by AddNextHit(), AddNextHitValues(), and ResetEvent(). |
|
|
a variable to keep track of the position of current hit
Definition at line 73 of file UberEvent.h. Referenced by Print(), ResetEvent(), and ~UberEvent(). |
|
|
Definition at line 45 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 47 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 46 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 48 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 42 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 60 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 55 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 56 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 57 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 58 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 41 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 39 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 38 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 40 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 52 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 51 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 49 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 54 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 53 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 50 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 59 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 43 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 35 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 66 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 67 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 65 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 68 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 44 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 37 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
|
|
Definition at line 36 of file UberEvent.h. Referenced by UberDST::Ana(), and ResetEvent(). |
1.3.9.1