#include <RawChip.h>
Public Types | |
| typedef enum RawChip::EChipStatus | ChipStatus_t |
| enum | EChipStatus { kGood = 0x00, kBad = 0x01, kCold = 0x02, kHot = 0x03, kBusy = 0x04, kError = 0x05 } |
Public Member Functions | |
| RawChip (RawChannelId rawch, Int_t adc, Int_t tdc, RawReadout::ReadoutType_t readout, RawChip::ChipStatus_t status, Int_t errcode) | |
| RawChip (const RawChip &rhs) | |
| ~RawChip () | |
| void | AddChannel (RawChannelId rawch, Int_t adc, Int_t tdc, Int_t errcode) |
| void | AddChannel (RawChannelId rawch) |
| RawChannelId | GetChannelId () const |
| Int_t | GetAdc () const |
| Int_t | GetTdc () const |
| Int_t | GetNanosec () const |
| RawReadout::ReadoutType_t | GetReadoutType () const |
| RawChip::ChipStatus_t | GetChipStatus () const |
| Int_t | GetErrorCode () const |
| Int_t | GetElecType () const |
| Int_t | GetCrate () const |
| Int_t | GetVarc () const |
| Int_t | GetVmm () const |
| Int_t | GetVaadc () const |
| Int_t | GetVaChip () const |
| Int_t | GetVaChannel () const |
| Int_t | GetVaChannelWord () const |
| Int_t | GetVaPriority () const |
| Int_t | GetMaster () const |
| Int_t | GetMinder () const |
| Int_t | GetMenu () const |
| Bool_t | IsSameElecType (RawChannelId rawch) const |
| Bool_t | IsSameElecType (RawChip *chip) const |
| Bool_t | IsSameCrate (RawChannelId rawch) const |
| Bool_t | IsSameCrate (RawChip *chip) const |
| Bool_t | IsSameVarc (RawChannelId rawch) const |
| Bool_t | IsSameVmm (RawChannelId rawch) const |
| Bool_t | IsSameVaadc (RawChannelId rawch) const |
| Bool_t | IsSameVaChip (RawChannelId rawch) const |
| Bool_t | IsSameVarc (RawChip *chip) const |
| Bool_t | IsSameVmm (RawChip *chip) const |
| Bool_t | IsSameVaadc (RawChip *chip) const |
| Bool_t | IsSameVaChip (RawChip *chip) const |
| Bool_t | IsSameMaster (RawChannelId rawch) const |
| Bool_t | IsSameMinder (RawChannelId rawch) const |
| Bool_t | IsSameMenu (RawChannelId rawch) const |
| Bool_t | IsSameMaster (RawChip *chip) const |
| Bool_t | IsSameMinder (RawChip *chip) const |
| Bool_t | IsSameMenu (RawChip *chip) const |
| Bool_t | IsSameChip (RawChannelId rawch) const |
| Bool_t | IsSameChip (RawChip *chip) const |
Private Attributes | |
| RawChannelId | fRawChannelId |
| Int_t | fAdc |
| Int_t | fTdc |
| RawReadout::ReadoutType_t | fReadout |
| RawChip::ChipStatus_t | fStatus |
| Int_t | fErrorCode |
| Int_t | fChannelWord |
|
|
Referenced by GetChipStatus(). |
|
|
Definition at line 11 of file RawChip.h. 00011 {
00012 kGood = 0x00,
00013 kBad = 0x01,
00014 kCold = 0x02,
00015 kHot = 0x03,
00016 kBusy = 0x04,
00017 kError = 0x05
00018 } ChipStatus_t;
|
|
||||||||||||||||||||||||||||
|
Definition at line 13 of file RawChip.cxx. 00014 {
00015 fChannelWord=0;
00016 fAdc=adc;
00017 fTdc=tdc;
00018 fReadout=readout;
00019 fStatus=status;
00020 fErrorCode=errcode;
00021
00022 this->AddChannel(rawch);
00023 }
|
|
|
Definition at line 25 of file RawChip.cxx. 00025 : 00026 TObject(rhs), 00027 fRawChannelId(rhs.fRawChannelId), 00028 fAdc(rhs.fAdc), fTdc(rhs.fTdc), 00029 fReadout(rhs.fReadout), 00030 fStatus(rhs.fStatus), 00031 fErrorCode(rhs.fErrorCode), 00032 fChannelWord(rhs.fChannelWord) 00033 { 00034 00035 }
|
|
|
Definition at line 37 of file RawChip.cxx. 00038 {
00039
00040 }
|
|
|
Definition at line 63 of file RawChip.cxx. References fChannelWord, fRawChannelId, RawChannelId::GetElecType(), and RawChannelId::GetVaChannel(). 00064 {
00065 // N.B: fChannelWord can be used to hold more
00066 // than one VA channel on the same VA chip.
00067
00068 if( rawch.GetElecType()==ElecType::kVA ){
00069 if( fChannelWord==0 ){
00070 fRawChannelId=rawch;
00071 fChannelWord=rawch.GetVaChannel();
00072 }
00073 }
00074
00075 if( rawch.GetElecType()==ElecType::kQIE ){
00076 if( fChannelWord==0 ){
00077 fRawChannelId=rawch;
00078 fChannelWord=1;
00079 }
00080 }
00081
00082 return;
00083 }
|
|
||||||||||||||||||||
|
Definition at line 42 of file RawChip.cxx. References fAdc, fChannelWord, fErrorCode, fRawChannelId, RawChannelId::GetElecType(), and IsSameChip(). Referenced by DQRawDigits::Process(). 00043 {
00044 if( fRawChannelId.GetElecType()==ElecType::kVA ){
00045 if( fChannelWord>=0 && this->IsSameChip(rawch) ){
00046 if(adc) fAdc+=adc;
00047 if(errcode) fErrorCode|=errcode;
00048 this->AddChannel(rawch);
00049 }
00050 }
00051
00052 if( fRawChannelId.GetElecType()==ElecType::kQIE ){
00053 if( fChannelWord>=0 && this->IsSameChip(rawch) ){
00054 if(adc) fAdc+=adc;
00055 if(errcode) fErrorCode|=errcode;
00056 this->AddChannel(rawch);
00057 }
00058 }
00059
00060 return;
00061 }
|
|
|
Definition at line 90 of file RawChip.cxx. Referenced by CandDeadChipHandle::AddRawChip(). 00091 {
00092 return fAdc;
00093 }
|
|
|
Definition at line 85 of file RawChip.cxx. Referenced by CandDeadChipHandle::AddRawChip(). 00086 {
00087 return fRawChannelId;
00088 }
|
|
|
Definition at line 120 of file RawChip.cxx. References ChipStatus_t. Referenced by CandDeadChipHandle::AddRawChip(). 00121 {
00122 return fStatus;
00123 }
|
|
|
Definition at line 135 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetCrate(). Referenced by IsSameCrate(). 00136 {
00137 return fRawChannelId.GetCrate();
00138 }
|
|
|
Definition at line 130 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetElecType(). Referenced by IsSameChip(), and IsSameElecType(). 00131 {
00132 return fRawChannelId.GetElecType();
00133 }
|
|
|
Definition at line 125 of file RawChip.cxx. Referenced by CandDeadChipHandle::AddRawChip(). 00126 {
00127 return fErrorCode;
00128 }
|
|
|
Definition at line 175 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetMaster(). Referenced by IsSameMaster(). 00176 {
00177 return fRawChannelId.GetMaster();
00178 }
|
|
|
Definition at line 185 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetMenu(). Referenced by IsSameMenu(). 00186 {
00187 return fRawChannelId.GetMenu();
00188 }
|
|
|
Definition at line 180 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetMinder(). Referenced by IsSameMinder(). 00181 {
00182 return fRawChannelId.GetMinder();
00183 }
|
|
|
Definition at line 100 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetElecType(). Referenced by DQRawDigits::Process(), and AlgDataQuality::RunAlg(). 00101 {
00102 Int_t nsec = -99999;
00103 Double_t nsec_dub = -99999.0;
00104
00105 if( fRawChannelId.GetElecType()==ElecType::kVA ) nsec_dub=(Double_t)((1000.0/640.0)*fTdc);
00106
00107 if( fRawChannelId.GetElecType()==ElecType::kQIE ) nsec_dub=(Double_t)((1000.0/53.1)*fTdc);
00108
00109 if( nsec_dub>1001000001.0 ) nsec_dub=1001000001.0;
00110 nsec = (Int_t)(nsec_dub);
00111
00112 return nsec;
00113 }
|
|
|
Definition at line 115 of file RawChip.cxx. Referenced by DQRawDigits::Process(). 00116 {
00117 return fReadout;
00118 }
|
|
|
Definition at line 95 of file RawChip.cxx. Referenced by CandDeadChipHandle::AddRawChip(), and DQRawDigits::Process(). 00096 {
00097 return fTdc;
00098 }
|
|
|
Definition at line 150 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetVaAdcSel(). Referenced by GetVaPriority(), and IsSameVaadc(). 00151 {
00152 return fRawChannelId.GetVaAdcSel();
00153 }
|
|
|
Definition at line 160 of file RawChip.cxx. 00161 {
00162 return fChannelWord;
00163 }
|
|
|
Definition at line 165 of file RawChip.cxx. 00166 {
00167 return fChannelWord;
00168 }
|
|
|
Definition at line 155 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetVaChip(). Referenced by GetVaPriority(), and IsSameVaChip(). 00156 {
00157 return fRawChannelId.GetVaChip();
00158 }
|
|
|
Definition at line 170 of file RawChip.cxx. References GetVaadc(), and GetVaChip(). Referenced by DQRawDigits::Process().
|
|
|
Definition at line 140 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetVarcId(). Referenced by IsSameVarc(). 00141 {
00142 return fRawChannelId.GetVarcId();
00143 }
|
|
|
Definition at line 145 of file RawChip.cxx. References fRawChannelId, and RawChannelId::GetVmm(). Referenced by IsSameVmm(). 00146 {
00147 return fRawChannelId.GetVmm();
00148 }
|
|
|
Definition at line 361 of file RawChip.cxx. References GetElecType(), IsSameElecType(), IsSameMenu(), and IsSameVaChip(). 00362 {
00363 Bool_t issamechip=0;
00364
00365 if( this->GetElecType()==ElecType::kVA
00366 && this->IsSameElecType(chip)
00367 && this->IsSameVaChip(chip) ) issamechip=1;
00368
00369 if( this->GetElecType()==ElecType::kQIE
00370 && this->IsSameElecType(chip)
00371 && this->IsSameMenu(chip) ) issamechip=1;
00372
00373 return issamechip;
00374 }
|
|
|
Definition at line 346 of file RawChip.cxx. References GetElecType(), IsSameElecType(), IsSameMenu(), and IsSameVaChip(). Referenced by AddChannel(), and AlgDataQuality::RunAlg(). 00347 {
00348 Bool_t issamechip=0;
00349
00350 if( this->GetElecType()==ElecType::kVA
00351 && this->IsSameElecType(rawch)
00352 && this->IsSameVaChip(rawch) ) issamechip=1;
00353
00354 if( this->GetElecType()==ElecType::kQIE
00355 && this->IsSameElecType(rawch)
00356 && this->IsSameMenu(rawch) ) issamechip=1;
00357
00358 return issamechip;
00359 }
|
|
|
Definition at line 209 of file RawChip.cxx. References GetCrate(), and IsSameElecType(). 00210 {
00211 if( this->IsSameElecType(chip)
00212 && this->GetCrate()==chip->GetCrate() ) return 1;
00213 else return 0;
00214 }
|
|
|
Definition at line 202 of file RawChip.cxx. References RawChannelId::GetCrate(), GetCrate(), and IsSameElecType(). Referenced by IsSameMaster(), IsSameMenu(), IsSameMinder(), IsSameVaadc(), IsSameVaChip(), IsSameVarc(), and IsSameVmm(). 00203 {
00204 if( this->IsSameElecType(rawch)
00205 && this->GetCrate()==rawch.GetCrate() ) return 1;
00206 else return 0;
00207 }
|
|
|
Definition at line 196 of file RawChip.cxx. References GetElecType(). 00197 {
00198 if( this->GetElecType()==chip->GetElecType() ) return 1;
00199 else return 0;
00200 }
|
|
|
Definition at line 190 of file RawChip.cxx. References RawChannelId::GetElecType(), and GetElecType(). Referenced by IsSameChip(), IsSameCrate(), IsSameMaster(), IsSameMenu(), IsSameMinder(), IsSameVaadc(), IsSameVaChip(), IsSameVarc(), and IsSameVmm(). 00191 {
00192 if( this->GetElecType()==rawch.GetElecType() ) return 1;
00193 else return 0;
00194 }
|
|
|
Definition at line 319 of file RawChip.cxx. References GetMaster(), IsSameCrate(), and IsSameElecType(). 00320 {
00321 if( this->IsSameElecType(chip)
00322 && this->IsSameCrate(chip)
00323 && this->GetMaster()==chip->GetMaster() ) return 1;
00324 else return 0;
00325 }
|
|
|
Definition at line 292 of file RawChip.cxx. References RawChannelId::GetMaster(), GetMaster(), IsSameCrate(), and IsSameElecType(). Referenced by IsSameMenu(), and IsSameMinder(). 00293 {
00294 if( this->IsSameElecType(rawch)
00295 && this->IsSameCrate(rawch)
00296 && this->GetMaster()==rawch.GetMaster() ) return 1;
00297 else return 0;
00298 }
|
|
|
Definition at line 336 of file RawChip.cxx. References GetMenu(), IsSameCrate(), IsSameElecType(), IsSameMaster(), and IsSameMinder(). 00337 {
00338 if( this->IsSameElecType(chip)
00339 && this->IsSameCrate(chip)
00340 && this->IsSameMaster(chip)
00341 && this->IsSameMinder(chip)
00342 && this->GetMenu()==chip->GetMenu() ) return 1;
00343 else return 0;
00344 }
|
|
|
Definition at line 309 of file RawChip.cxx. References RawChannelId::GetMenu(), GetMenu(), IsSameCrate(), IsSameElecType(), IsSameMaster(), and IsSameMinder(). Referenced by IsSameChip(). 00310 {
00311 if( this->IsSameElecType(rawch)
00312 && this->IsSameCrate(rawch)
00313 && this->IsSameMaster(rawch)
00314 && this->IsSameMinder(rawch)
00315 && this->GetMenu()==rawch.GetMenu() ) return 1;
00316 else return 0;
00317 }
|
|
|
Definition at line 327 of file RawChip.cxx. References GetMinder(), IsSameCrate(), IsSameElecType(), and IsSameMaster(). 00328 {
00329 if( this->IsSameElecType(chip)
00330 && this->IsSameCrate(chip)
00331 && this->IsSameMaster(chip)
00332 && this->GetMinder()==chip->GetMinder() ) return 1;
00333 else return 0;
00334 }
|
|
|
Definition at line 300 of file RawChip.cxx. References RawChannelId::GetMinder(), GetMinder(), IsSameCrate(), IsSameElecType(), and IsSameMaster(). Referenced by IsSameMenu(). 00301 {
00302 if( this->IsSameElecType(rawch)
00303 && this->IsSameCrate(rawch)
00304 && this->IsSameMaster(rawch)
00305 && this->GetMinder()==rawch.GetMinder() ) return 1;
00306 else return 0;
00307 }
|
|
|
Definition at line 271 of file RawChip.cxx. References GetVaadc(), IsSameCrate(), IsSameElecType(), IsSameVarc(), and IsSameVmm(). 00272 {
00273 if( this->IsSameElecType(chip)
00274 && this->IsSameCrate(chip)
00275 && this->IsSameVarc(chip)
00276 && this->IsSameVmm(chip)
00277 && this->GetVaadc()==chip->GetVaadc() ) return 1;
00278 else return 0;
00279 }
|
|
|
Definition at line 233 of file RawChip.cxx. References GetVaadc(), RawChannelId::GetVaAdcSel(), IsSameCrate(), IsSameElecType(), IsSameVarc(), and IsSameVmm(). Referenced by IsSameVaChip(). 00234 {
00235 if( this->IsSameElecType(rawch)
00236 && this->IsSameCrate(rawch)
00237 && this->IsSameVarc(rawch)
00238 && this->IsSameVmm(rawch)
00239 && this->GetVaadc()==rawch.GetVaAdcSel() ) return 1;
00240 else return 0;
00241 }
|
|
|
Definition at line 281 of file RawChip.cxx. References GetVaChip(), IsSameCrate(), IsSameElecType(), IsSameVaadc(), IsSameVarc(), and IsSameVmm(). 00282 {
00283 if( this->IsSameElecType(chip)
00284 && this->IsSameCrate(chip)
00285 && this->IsSameVarc(chip)
00286 && this->IsSameVmm(chip)
00287 && this->IsSameVaadc(chip)
00288 && this->GetVaChip()==chip->GetVaChip() ) return 1;
00289 else return 0;
00290 }
|
|
|
Definition at line 243 of file RawChip.cxx. References RawChannelId::GetVaChip(), GetVaChip(), IsSameCrate(), IsSameElecType(), IsSameVaadc(), IsSameVarc(), and IsSameVmm(). Referenced by IsSameChip(), and DQRawDigits::Process(). 00244 {
00245 if( this->IsSameElecType(rawch)
00246 && this->IsSameCrate(rawch)
00247 && this->IsSameVarc(rawch)
00248 && this->IsSameVmm(rawch)
00249 && this->IsSameVaadc(rawch)
00250 && this->GetVaChip()==rawch.GetVaChip() ) return 1;
00251 else return 0;
00252 }
|
|
|
Definition at line 254 of file RawChip.cxx. References GetVarc(), IsSameCrate(), and IsSameElecType(). 00255 {
00256 if( this->IsSameElecType(chip)
00257 && this->IsSameCrate(chip)
00258 && this->GetVarc()==chip->GetVarc() ) return 1;
00259 else return 0;
00260 }
|
|
|
Definition at line 216 of file RawChip.cxx. References GetVarc(), RawChannelId::GetVarcId(), IsSameCrate(), and IsSameElecType(). Referenced by IsSameVaadc(), IsSameVaChip(), and IsSameVmm(). 00217 {
00218 if( this->IsSameElecType(rawch)
00219 && this->IsSameCrate(rawch)
00220 && this->GetVarc()==rawch.GetVarcId() ) return 1;
00221 else return 0;
00222 }
|
|
|
Definition at line 262 of file RawChip.cxx. References GetVmm(), IsSameCrate(), IsSameElecType(), and IsSameVarc(). 00263 {
00264 if( this->IsSameElecType(chip)
00265 && this->IsSameCrate(chip)
00266 && this->IsSameVarc(chip)
00267 && this->GetVmm()==chip->GetVmm() ) return 1;
00268 else return 0;
00269 }
|
|
|
Definition at line 224 of file RawChip.cxx. References RawChannelId::GetVmm(), GetVmm(), IsSameCrate(), IsSameElecType(), and IsSameVarc(). Referenced by IsSameVaadc(), IsSameVaChip(), and DQRawDigits::Process(). 00225 {
00226 if( this->IsSameElecType(rawch)
00227 && this->IsSameCrate(rawch)
00228 && this->IsSameVarc(rawch)
00229 && this->GetVmm()==rawch.GetVmm() ) return 1;
00230 else return 0;
00231 }
|
|
|
Definition at line 80 of file RawChip.h. Referenced by AddChannel(). |
|
|
Definition at line 85 of file RawChip.h. Referenced by AddChannel(). |
|
|
Definition at line 84 of file RawChip.h. Referenced by AddChannel(). |
|
|
Definition at line 79 of file RawChip.h. Referenced by AddChannel(), GetCrate(), GetElecType(), GetMaster(), GetMenu(), GetMinder(), GetNanosec(), GetVaadc(), GetVaChip(), GetVarc(), and GetVmm(). |
|
|
|
|
|
|
|
|
|
1.3.9.1