00001 #include <FWCore/Framework/interface/MakerMacros.h>
00002
00003 #include <DataFormats/Common/interface/DetSetVector.h>
00004
00005 #include <DataFormats/SiStripCommon/interface/SiStripEventSummary.h>
00006 #include <DataFormats/SiStripDigi/interface/SiStripDigi.h>
00007 #include <DataFormats/SiStripDigi/interface/SiStripRawDigi.h>
00008 #include <DataFormats/SiStripDigi/interface/SiStripProcessedRawDigi.h>
00009 #include <FWCore/Framework/interface/EventSetup.h>
00010 #include <FWCore/Framework/interface/EventSetupRecord.h>
00011
00012 #include <Alignment/LaserAlignment/interface/LASGlobalLoop.h>
00013
00014 #include "TFile.h"
00015 #include "TTree.h"
00016
00017 #include "RawDataConverter.h"
00018
00022 RawDataConverter::RawDataConverter( const edm::ParameterSet& iConfig ) :
00023 theOutputFile(0),
00024 theOutputTree(0),
00025 latency(-1),
00026 eventnumber(-1),
00027 runnumber(-1),
00028 lumiBlock(-1)
00029
00030 {
00031 theOutputFile = new TFile( iConfig.getUntrackedParameter<std::string>( "OutputFileName" ).c_str() , "RECREATE" );
00032 theOutputFile->cd();
00033 theOutputTree = new TTree( "lasRawDataTree", "lasRawDataTree" );
00034 theOutputTree->Branch( "lasRawData", &theData );
00035 theOutputTree->Branch( "latency", &latency, "latency/I" );
00036 theOutputTree->Branch( "eventnumber", &eventnumber, "eventnumber/I" );
00037 theOutputTree->Branch( "runnumber", &runnumber, "runnumber/I" );
00038 theOutputTree->Branch( "lumiblock", &lumiBlock, "lumiblock/I" );
00039
00040 theDigiModuleLabels = iConfig.getParameter<std::vector<std::string> >( "DigiModuleLabels" );
00041 theProductInstanceLabels = iConfig.getParameter<std::vector<std::string> >( "ProductInstanceLabels" );
00042 }
00043
00044
00048 RawDataConverter::~RawDataConverter() {
00049 }
00050
00051
00055 void RawDataConverter::beginJob()
00056 {
00057 fillDetectorId();
00058
00059 }
00060
00061
00062
00066 void RawDataConverter::beginRun(edm::Run const & theRun, edm::EventSetup const & theEventSetup)
00067 {
00068 std::vector< edm::eventsetup::EventSetupRecordKey > oToFill;
00069 theEventSetup.fillAvailableRecordKeys (oToFill);
00070 std::ostringstream o;
00071 for(std::vector<edm::eventsetup::EventSetupRecordKey>::size_type i = 0; i < oToFill.size(); i++){
00072 o << oToFill[i].name() << "\n";
00073 }
00074 LogDebug("RawDataConverter") << "The size of EventSetup is: " << oToFill.size() << "\n" << o.str();
00075 }
00076
00077
00078
00079 RawDataConverter::DigiType RawDataConverter::GetValidLabels( const edm::Event& iEvent )
00080 {
00081
00082 CurrentModuleLabel = "";
00083 CurrentInstanceLabel = "";
00084
00085
00086 edm::Handle< edm::DetSetVector<SiStripDigi> > theStripDigis;
00087 edm::Handle< edm::DetSetVector<SiStripRawDigi> > theStripRawDigis;
00088 edm::Handle< edm::DetSetVector<SiStripProcessedRawDigi> > theStripProcessedRawDigis;
00089
00090
00091 std::ostringstream search_message;
00092 search_message << "Searching for SiStripDigis\n";
00093
00094 for( std::vector<std::string>::iterator moduleLabel = theDigiModuleLabels.begin(); moduleLabel != theDigiModuleLabels.end(); ++moduleLabel ) {
00095 for( std::vector<std::string>::iterator instanceLabel = theProductInstanceLabels.begin(); instanceLabel != theProductInstanceLabels.end(); ++instanceLabel ) {
00096
00097 search_message << "Checking for Module " << *moduleLabel << " Instance " << *instanceLabel << "\n";
00098
00099
00100 iEvent.getByLabel( *moduleLabel , *instanceLabel , theStripDigis );
00101 if(theStripDigis.isValid()){
00102 search_message << "Found ZeroSuppressed\n";
00103 edm::LogInfo("RawDataConverter") << search_message.str();
00104 CurrentModuleLabel = *moduleLabel;
00105 CurrentInstanceLabel = *instanceLabel;
00106 return ZeroSuppressed;
00107 }
00108
00109
00110 iEvent.getByLabel( *moduleLabel , *instanceLabel , theStripRawDigis );
00111 if(theStripRawDigis.isValid()){
00112 search_message << "Found Raw\n";
00113 edm::LogInfo("RawDataConverter") << search_message.str();
00114 CurrentModuleLabel = *moduleLabel;
00115 CurrentInstanceLabel = *instanceLabel;
00116 return VirginRaw;
00117 }
00118
00119
00120 iEvent.getByLabel( *moduleLabel , *instanceLabel , theStripProcessedRawDigis );
00121 if(theStripProcessedRawDigis.isValid()){
00122 search_message << "Found ProcessedRaw\n";
00123 edm::LogInfo("RawDataConverter") << search_message.str();
00124 CurrentModuleLabel = *moduleLabel;
00125 CurrentInstanceLabel = *instanceLabel;
00126 return ProcessedRaw;
00127 }
00128 }
00129 }
00130 return Unknown;
00131 }
00132
00136 void RawDataConverter::analyze( const edm::Event& iEvent, const edm::EventSetup& iSetup )
00137 {
00138
00139 static DigiType digitype = Unknown;
00140 if(digitype == Unknown) digitype = GetValidLabels( iEvent );
00141
00143
00145 edm::Handle<SiStripEventSummary> summary;
00146
00147 iEvent.getByLabel( "siStripDigis", summary );
00148 latency = static_cast<int32_t>( summary->latency() );
00149 eventnumber = iEvent.id().event();
00150 runnumber = iEvent.run();
00151 lumiBlock = iEvent.luminosityBlock();
00152
00153
00155
00156 edm::Handle< edm::DetSetVector<SiStripRawDigi> > theStripRawDigis;
00157 edm::Handle< edm::DetSetVector<SiStripProcessedRawDigi> > theStripProcessedRawDigis;
00158
00159
00160
00161 switch( digitype){
00162 case ZeroSuppressed:
00163 GetDigis<SiStripDigi>(iEvent);
00164 break;
00165 case VirginRaw:
00166 throw std::runtime_error("RawDataConverter is not yet able to process VirginRaw Data");
00167 break;
00168 case ProcessedRaw:
00169 throw std::runtime_error("RawDataConverter is not yet able to process ProcessedRaw Data");
00170 break;
00171 default:
00172 throw std::runtime_error("Did not find valid Module or Instance label");
00173 }
00174
00175
00176
00177 theOutputTree->Fill();
00178
00179 return;
00180 }
00181
00182
00186 void RawDataConverter::endJob()
00187 {
00188 theOutputFile->Write();
00189 theOutputFile->Close();
00190 }
00191
00192
00196 void RawDataConverter::ClearData( void ) {
00197
00198
00199
00200
00201
00202
00203 static const std::vector<float> zero_buffer(512,0);
00204
00205
00206 LASGlobalLoop loop;
00207 int det, ring, beam, disk, pos;
00208
00209
00210 det = 0; ring = 0; beam = 0; disk = 0;
00211 do {
00212 theData.GetTECEntry( det, ring, beam, disk ) = zero_buffer;
00213 } while( loop.TECLoop( det, ring, beam, disk ) );
00214
00215
00216 det = 2; beam = 0; pos = 0;
00217 do {
00218 theData.GetTIBTOBEntry( det, beam, pos ) = zero_buffer;
00219 } while( loop.TIBTOBLoop( det, beam, pos ) );
00220
00221
00222 det = 0; beam = 0; disk = 0;
00223 do {
00224 theData.GetTEC2TECEntry( det, beam, disk ) = zero_buffer;
00225 } while( loop.TEC2TECLoop( det, beam, disk ) );
00226
00227 }
00228
00229
00233 void RawDataConverter::fillDetectorId( void ) {
00234
00235
00236 detectorId.SetTECEntry( 0, 0, 0, 0, 470307208 );
00237 detectorId.SetTECEntry( 0, 0, 0, 1, 470323592 );
00238 detectorId.SetTECEntry( 0, 0, 0, 2, 470339976 );
00239 detectorId.SetTECEntry( 0, 0, 0, 3, 470356360 );
00240 detectorId.SetTECEntry( 0, 0, 0, 4, 470372744 );
00241 detectorId.SetTECEntry( 0, 0, 0, 5, 470389128 );
00242 detectorId.SetTECEntry( 0, 0, 0, 6, 470405512 );
00243 detectorId.SetTECEntry( 0, 0, 0, 7, 470421896 );
00244 detectorId.SetTECEntry( 0, 0, 0, 8, 470438280 );
00245 detectorId.SetTECEntry( 0, 0, 1, 0, 470307464 );
00246 detectorId.SetTECEntry( 0, 0, 1, 1, 470323848 );
00247 detectorId.SetTECEntry( 0, 0, 1, 2, 470340232 );
00248 detectorId.SetTECEntry( 0, 0, 1, 3, 470356616 );
00249 detectorId.SetTECEntry( 0, 0, 1, 4, 470373000 );
00250 detectorId.SetTECEntry( 0, 0, 1, 5, 470389384 );
00251 detectorId.SetTECEntry( 0, 0, 1, 6, 470405768 );
00252 detectorId.SetTECEntry( 0, 0, 1, 7, 470422152 );
00253 detectorId.SetTECEntry( 0, 0, 1, 8, 470438536 );
00254 detectorId.SetTECEntry( 0, 0, 2, 0, 470307720 );
00255 detectorId.SetTECEntry( 0, 0, 2, 1, 470324104 );
00256 detectorId.SetTECEntry( 0, 0, 2, 2, 470340488 );
00257 detectorId.SetTECEntry( 0, 0, 2, 3, 470356872 );
00258 detectorId.SetTECEntry( 0, 0, 2, 4, 470373256 );
00259 detectorId.SetTECEntry( 0, 0, 2, 5, 470389640 );
00260 detectorId.SetTECEntry( 0, 0, 2, 6, 470406024 );
00261 detectorId.SetTECEntry( 0, 0, 2, 7, 470422408 );
00262 detectorId.SetTECEntry( 0, 0, 2, 8, 470438792 );
00263 detectorId.SetTECEntry( 0, 0, 3, 0, 470307976 );
00264 detectorId.SetTECEntry( 0, 0, 3, 1, 470324360 );
00265 detectorId.SetTECEntry( 0, 0, 3, 2, 470340744 );
00266 detectorId.SetTECEntry( 0, 0, 3, 3, 470357128 );
00267 detectorId.SetTECEntry( 0, 0, 3, 4, 470373512 );
00268 detectorId.SetTECEntry( 0, 0, 3, 5, 470389896 );
00269 detectorId.SetTECEntry( 0, 0, 3, 6, 470406280 );
00270 detectorId.SetTECEntry( 0, 0, 3, 7, 470422664 );
00271 detectorId.SetTECEntry( 0, 0, 3, 8, 470439048 );
00272 detectorId.SetTECEntry( 0, 0, 4, 0, 470308232 );
00273 detectorId.SetTECEntry( 0, 0, 4, 1, 470324616 );
00274 detectorId.SetTECEntry( 0, 0, 4, 2, 470341000 );
00275 detectorId.SetTECEntry( 0, 0, 4, 3, 470357384 );
00276 detectorId.SetTECEntry( 0, 0, 4, 4, 470373768 );
00277 detectorId.SetTECEntry( 0, 0, 4, 5, 470390152 );
00278 detectorId.SetTECEntry( 0, 0, 4, 6, 470406536 );
00279 detectorId.SetTECEntry( 0, 0, 4, 7, 470422920 );
00280 detectorId.SetTECEntry( 0, 0, 4, 8, 470439304 );
00281 detectorId.SetTECEntry( 0, 0, 5, 0, 470308488 );
00282 detectorId.SetTECEntry( 0, 0, 5, 1, 470324872 );
00283 detectorId.SetTECEntry( 0, 0, 5, 2, 470341256 );
00284 detectorId.SetTECEntry( 0, 0, 5, 3, 470357640 );
00285 detectorId.SetTECEntry( 0, 0, 5, 4, 470374024 );
00286 detectorId.SetTECEntry( 0, 0, 5, 5, 470390408 );
00287 detectorId.SetTECEntry( 0, 0, 5, 6, 470406792 );
00288 detectorId.SetTECEntry( 0, 0, 5, 7, 470423176 );
00289 detectorId.SetTECEntry( 0, 0, 5, 8, 470439560 );
00290 detectorId.SetTECEntry( 0, 0, 6, 0, 470308744 );
00291 detectorId.SetTECEntry( 0, 0, 6, 1, 470325128 );
00292 detectorId.SetTECEntry( 0, 0, 6, 2, 470341512 );
00293 detectorId.SetTECEntry( 0, 0, 6, 3, 470357896 );
00294 detectorId.SetTECEntry( 0, 0, 6, 4, 470374280 );
00295 detectorId.SetTECEntry( 0, 0, 6, 5, 470390664 );
00296 detectorId.SetTECEntry( 0, 0, 6, 6, 470407048 );
00297 detectorId.SetTECEntry( 0, 0, 6, 7, 470423432 );
00298 detectorId.SetTECEntry( 0, 0, 6, 8, 470439816 );
00299 detectorId.SetTECEntry( 0, 0, 7, 0, 470309000 );
00300 detectorId.SetTECEntry( 0, 0, 7, 1, 470325384 );
00301 detectorId.SetTECEntry( 0, 0, 7, 2, 470341768 );
00302 detectorId.SetTECEntry( 0, 0, 7, 3, 470358152 );
00303 detectorId.SetTECEntry( 0, 0, 7, 4, 470374536 );
00304 detectorId.SetTECEntry( 0, 0, 7, 5, 470390920 );
00305 detectorId.SetTECEntry( 0, 0, 7, 6, 470407304 );
00306 detectorId.SetTECEntry( 0, 0, 7, 7, 470423688 );
00307 detectorId.SetTECEntry( 0, 0, 7, 8, 470440072 );
00308 detectorId.SetTECEntry( 0, 1, 0, 0, 470307272 );
00309 detectorId.SetTECEntry( 0, 1, 0, 1, 470323656 );
00310 detectorId.SetTECEntry( 0, 1, 0, 2, 470340040 );
00311 detectorId.SetTECEntry( 0, 1, 0, 3, 470356424 );
00312 detectorId.SetTECEntry( 0, 1, 0, 4, 470372808 );
00313 detectorId.SetTECEntry( 0, 1, 0, 5, 470389192 );
00314 detectorId.SetTECEntry( 0, 1, 0, 6, 470405576 );
00315 detectorId.SetTECEntry( 0, 1, 0, 7, 470421960 );
00316 detectorId.SetTECEntry( 0, 1, 0, 8, 470438344 );
00317 detectorId.SetTECEntry( 0, 1, 1, 0, 470307528 );
00318 detectorId.SetTECEntry( 0, 1, 1, 1, 470323912 );
00319 detectorId.SetTECEntry( 0, 1, 1, 2, 470340296 );
00320 detectorId.SetTECEntry( 0, 1, 1, 3, 470356680 );
00321 detectorId.SetTECEntry( 0, 1, 1, 4, 470373064 );
00322 detectorId.SetTECEntry( 0, 1, 1, 5, 470389448 );
00323 detectorId.SetTECEntry( 0, 1, 1, 6, 470405832 );
00324 detectorId.SetTECEntry( 0, 1, 1, 7, 470422216 );
00325 detectorId.SetTECEntry( 0, 1, 1, 8, 470438600 );
00326 detectorId.SetTECEntry( 0, 1, 2, 0, 470307784 );
00327 detectorId.SetTECEntry( 0, 1, 2, 1, 470324168 );
00328 detectorId.SetTECEntry( 0, 1, 2, 2, 470340552 );
00329 detectorId.SetTECEntry( 0, 1, 2, 3, 470356936 );
00330 detectorId.SetTECEntry( 0, 1, 2, 4, 470373320 );
00331 detectorId.SetTECEntry( 0, 1, 2, 5, 470389704 );
00332 detectorId.SetTECEntry( 0, 1, 2, 6, 470406088 );
00333 detectorId.SetTECEntry( 0, 1, 2, 7, 470422472 );
00334 detectorId.SetTECEntry( 0, 1, 2, 8, 470438856 );
00335 detectorId.SetTECEntry( 0, 1, 3, 0, 470308040 );
00336 detectorId.SetTECEntry( 0, 1, 3, 1, 470324424 );
00337 detectorId.SetTECEntry( 0, 1, 3, 2, 470340808 );
00338 detectorId.SetTECEntry( 0, 1, 3, 3, 470357192 );
00339 detectorId.SetTECEntry( 0, 1, 3, 4, 470373576 );
00340 detectorId.SetTECEntry( 0, 1, 3, 5, 470389960 );
00341 detectorId.SetTECEntry( 0, 1, 3, 6, 470406344 );
00342 detectorId.SetTECEntry( 0, 1, 3, 7, 470422728 );
00343 detectorId.SetTECEntry( 0, 1, 3, 8, 470439112 );
00344 detectorId.SetTECEntry( 0, 1, 4, 0, 470308296 );
00345 detectorId.SetTECEntry( 0, 1, 4, 1, 470324680 );
00346 detectorId.SetTECEntry( 0, 1, 4, 2, 470341064 );
00347 detectorId.SetTECEntry( 0, 1, 4, 3, 470357448 );
00348 detectorId.SetTECEntry( 0, 1, 4, 4, 470373832 );
00349 detectorId.SetTECEntry( 0, 1, 4, 5, 470390216 );
00350 detectorId.SetTECEntry( 0, 1, 4, 6, 470406600 );
00351 detectorId.SetTECEntry( 0, 1, 4, 7, 470422984 );
00352 detectorId.SetTECEntry( 0, 1, 4, 8, 470439368 );
00353 detectorId.SetTECEntry( 0, 1, 5, 0, 470308552 );
00354 detectorId.SetTECEntry( 0, 1, 5, 1, 470324936 );
00355 detectorId.SetTECEntry( 0, 1, 5, 2, 470341320 );
00356 detectorId.SetTECEntry( 0, 1, 5, 3, 470357704 );
00357 detectorId.SetTECEntry( 0, 1, 5, 4, 470374088 );
00358 detectorId.SetTECEntry( 0, 1, 5, 5, 470390472 );
00359 detectorId.SetTECEntry( 0, 1, 5, 6, 470406856 );
00360 detectorId.SetTECEntry( 0, 1, 5, 7, 470423240 );
00361 detectorId.SetTECEntry( 0, 1, 5, 8, 470439624 );
00362 detectorId.SetTECEntry( 0, 1, 6, 0, 470308808 );
00363 detectorId.SetTECEntry( 0, 1, 6, 1, 470325192 );
00364 detectorId.SetTECEntry( 0, 1, 6, 2, 470341576 );
00365 detectorId.SetTECEntry( 0, 1, 6, 3, 470357960 );
00366 detectorId.SetTECEntry( 0, 1, 6, 4, 470374344 );
00367 detectorId.SetTECEntry( 0, 1, 6, 5, 470390728 );
00368 detectorId.SetTECEntry( 0, 1, 6, 6, 470407112 );
00369 detectorId.SetTECEntry( 0, 1, 6, 7, 470423496 );
00370 detectorId.SetTECEntry( 0, 1, 6, 8, 470439880 );
00371 detectorId.SetTECEntry( 0, 1, 7, 0, 470309064 );
00372 detectorId.SetTECEntry( 0, 1, 7, 1, 470325448 );
00373 detectorId.SetTECEntry( 0, 1, 7, 2, 470341832 );
00374 detectorId.SetTECEntry( 0, 1, 7, 3, 470358216 );
00375 detectorId.SetTECEntry( 0, 1, 7, 4, 470374600 );
00376 detectorId.SetTECEntry( 0, 1, 7, 5, 470390984 );
00377 detectorId.SetTECEntry( 0, 1, 7, 6, 470407368 );
00378 detectorId.SetTECEntry( 0, 1, 7, 7, 470423752 );
00379 detectorId.SetTECEntry( 0, 1, 7, 8, 470440136 );
00380
00381
00382 detectorId.SetTECEntry( 1, 0, 0, 0, 470045064 );
00383 detectorId.SetTECEntry( 1, 0, 0, 1, 470061448 );
00384 detectorId.SetTECEntry( 1, 0, 0, 2, 470077832 );
00385 detectorId.SetTECEntry( 1, 0, 0, 3, 470094216 );
00386 detectorId.SetTECEntry( 1, 0, 0, 4, 470110600 );
00387 detectorId.SetTECEntry( 1, 0, 0, 5, 470126984 );
00388 detectorId.SetTECEntry( 1, 0, 0, 6, 470143368 );
00389 detectorId.SetTECEntry( 1, 0, 0, 7, 470159752 );
00390 detectorId.SetTECEntry( 1, 0, 0, 8, 470176136 );
00391 detectorId.SetTECEntry( 1, 0, 1, 0, 470045320 );
00392 detectorId.SetTECEntry( 1, 0, 1, 1, 470061704 );
00393 detectorId.SetTECEntry( 1, 0, 1, 2, 470078088 );
00394 detectorId.SetTECEntry( 1, 0, 1, 3, 470094472 );
00395 detectorId.SetTECEntry( 1, 0, 1, 4, 470110856 );
00396 detectorId.SetTECEntry( 1, 0, 1, 5, 470127240 );
00397 detectorId.SetTECEntry( 1, 0, 1, 6, 470143624 );
00398 detectorId.SetTECEntry( 1, 0, 1, 7, 470160008 );
00399 detectorId.SetTECEntry( 1, 0, 1, 8, 470176392 );
00400 detectorId.SetTECEntry( 1, 0, 2, 0, 470045576 );
00401 detectorId.SetTECEntry( 1, 0, 2, 1, 470061960 );
00402 detectorId.SetTECEntry( 1, 0, 2, 2, 470078344 );
00403 detectorId.SetTECEntry( 1, 0, 2, 3, 470094728 );
00404 detectorId.SetTECEntry( 1, 0, 2, 4, 470111112 );
00405 detectorId.SetTECEntry( 1, 0, 2, 5, 470127496 );
00406 detectorId.SetTECEntry( 1, 0, 2, 6, 470143880 );
00407 detectorId.SetTECEntry( 1, 0, 2, 7, 470160264 );
00408 detectorId.SetTECEntry( 1, 0, 2, 8, 470176648 );
00409 detectorId.SetTECEntry( 1, 0, 3, 0, 470045832 );
00410 detectorId.SetTECEntry( 1, 0, 3, 1, 470062216 );
00411 detectorId.SetTECEntry( 1, 0, 3, 2, 470078600 );
00412 detectorId.SetTECEntry( 1, 0, 3, 3, 470094984 );
00413 detectorId.SetTECEntry( 1, 0, 3, 4, 470111368 );
00414 detectorId.SetTECEntry( 1, 0, 3, 5, 470127752 );
00415 detectorId.SetTECEntry( 1, 0, 3, 6, 470144136 );
00416 detectorId.SetTECEntry( 1, 0, 3, 7, 470160520 );
00417 detectorId.SetTECEntry( 1, 0, 3, 8, 470176904 );
00418 detectorId.SetTECEntry( 1, 0, 4, 0, 470046088 );
00419 detectorId.SetTECEntry( 1, 0, 4, 1, 470062472 );
00420 detectorId.SetTECEntry( 1, 0, 4, 2, 470078856 );
00421 detectorId.SetTECEntry( 1, 0, 4, 3, 470095240 );
00422 detectorId.SetTECEntry( 1, 0, 4, 4, 470111624 );
00423 detectorId.SetTECEntry( 1, 0, 4, 5, 470128008 );
00424 detectorId.SetTECEntry( 1, 0, 4, 6, 470144392 );
00425 detectorId.SetTECEntry( 1, 0, 4, 7, 470160776 );
00426 detectorId.SetTECEntry( 1, 0, 4, 8, 470177160 );
00427 detectorId.SetTECEntry( 1, 0, 5, 0, 470046344 );
00428 detectorId.SetTECEntry( 1, 0, 5, 1, 470062728 );
00429 detectorId.SetTECEntry( 1, 0, 5, 2, 470079112 );
00430 detectorId.SetTECEntry( 1, 0, 5, 3, 470095496 );
00431 detectorId.SetTECEntry( 1, 0, 5, 4, 470111880 );
00432 detectorId.SetTECEntry( 1, 0, 5, 5, 470128264 );
00433 detectorId.SetTECEntry( 1, 0, 5, 6, 470144648 );
00434 detectorId.SetTECEntry( 1, 0, 5, 7, 470161032 );
00435 detectorId.SetTECEntry( 1, 0, 5, 8, 470177416 );
00436 detectorId.SetTECEntry( 1, 0, 6, 0, 470046600 );
00437 detectorId.SetTECEntry( 1, 0, 6, 1, 470062984 );
00438 detectorId.SetTECEntry( 1, 0, 6, 2, 470079368 );
00439 detectorId.SetTECEntry( 1, 0, 6, 3, 470095752 );
00440 detectorId.SetTECEntry( 1, 0, 6, 4, 470112136 );
00441 detectorId.SetTECEntry( 1, 0, 6, 5, 470128520 );
00442 detectorId.SetTECEntry( 1, 0, 6, 6, 470144904 );
00443 detectorId.SetTECEntry( 1, 0, 6, 7, 470161288 );
00444 detectorId.SetTECEntry( 1, 0, 6, 8, 470177672 );
00445 detectorId.SetTECEntry( 1, 0, 7, 0, 470046856 );
00446 detectorId.SetTECEntry( 1, 0, 7, 1, 470063240 );
00447 detectorId.SetTECEntry( 1, 0, 7, 2, 470079624 );
00448 detectorId.SetTECEntry( 1, 0, 7, 3, 470096008 );
00449 detectorId.SetTECEntry( 1, 0, 7, 4, 470112392 );
00450 detectorId.SetTECEntry( 1, 0, 7, 5, 470128776 );
00451 detectorId.SetTECEntry( 1, 0, 7, 6, 470145160 );
00452 detectorId.SetTECEntry( 1, 0, 7, 7, 470161544 );
00453 detectorId.SetTECEntry( 1, 0, 7, 8, 470177928 );
00454 detectorId.SetTECEntry( 1, 1, 0, 0, 470045128 );
00455 detectorId.SetTECEntry( 1, 1, 0, 1, 470061512 );
00456 detectorId.SetTECEntry( 1, 1, 0, 2, 470077896 );
00457 detectorId.SetTECEntry( 1, 1, 0, 3, 470094280 );
00458 detectorId.SetTECEntry( 1, 1, 0, 4, 470110664 );
00459 detectorId.SetTECEntry( 1, 1, 0, 5, 470127048 );
00460 detectorId.SetTECEntry( 1, 1, 0, 6, 470143432 );
00461 detectorId.SetTECEntry( 1, 1, 0, 7, 470159816 );
00462 detectorId.SetTECEntry( 1, 1, 0, 8, 470176200 );
00463 detectorId.SetTECEntry( 1, 1, 1, 0, 470045384 );
00464 detectorId.SetTECEntry( 1, 1, 1, 1, 470061768 );
00465 detectorId.SetTECEntry( 1, 1, 1, 2, 470078152 );
00466 detectorId.SetTECEntry( 1, 1, 1, 3, 470094536 );
00467 detectorId.SetTECEntry( 1, 1, 1, 4, 470110920 );
00468 detectorId.SetTECEntry( 1, 1, 1, 5, 470127304 );
00469 detectorId.SetTECEntry( 1, 1, 1, 6, 470143688 );
00470 detectorId.SetTECEntry( 1, 1, 1, 7, 470160072 );
00471 detectorId.SetTECEntry( 1, 1, 1, 8, 470176456 );
00472 detectorId.SetTECEntry( 1, 1, 2, 0, 470045640 );
00473 detectorId.SetTECEntry( 1, 1, 2, 1, 470062024 );
00474 detectorId.SetTECEntry( 1, 1, 2, 2, 470078408 );
00475 detectorId.SetTECEntry( 1, 1, 2, 3, 470094792 );
00476 detectorId.SetTECEntry( 1, 1, 2, 4, 470111176 );
00477 detectorId.SetTECEntry( 1, 1, 2, 5, 470127560 );
00478 detectorId.SetTECEntry( 1, 1, 2, 6, 470143944 );
00479 detectorId.SetTECEntry( 1, 1, 2, 7, 470160328 );
00480 detectorId.SetTECEntry( 1, 1, 2, 8, 470176712 );
00481 detectorId.SetTECEntry( 1, 1, 3, 0, 470045896 );
00482 detectorId.SetTECEntry( 1, 1, 3, 1, 470062280 );
00483 detectorId.SetTECEntry( 1, 1, 3, 2, 470078664 );
00484 detectorId.SetTECEntry( 1, 1, 3, 3, 470095048 );
00485 detectorId.SetTECEntry( 1, 1, 3, 4, 470111432 );
00486 detectorId.SetTECEntry( 1, 1, 3, 5, 470127816 );
00487 detectorId.SetTECEntry( 1, 1, 3, 6, 470144200 );
00488 detectorId.SetTECEntry( 1, 1, 3, 7, 470160584 );
00489 detectorId.SetTECEntry( 1, 1, 3, 8, 470176968 );
00490 detectorId.SetTECEntry( 1, 1, 4, 0, 470046152 );
00491 detectorId.SetTECEntry( 1, 1, 4, 1, 470062536 );
00492 detectorId.SetTECEntry( 1, 1, 4, 2, 470078920 );
00493 detectorId.SetTECEntry( 1, 1, 4, 3, 470095304 );
00494 detectorId.SetTECEntry( 1, 1, 4, 4, 470111688 );
00495 detectorId.SetTECEntry( 1, 1, 4, 5, 470128072 );
00496 detectorId.SetTECEntry( 1, 1, 4, 6, 470144456 );
00497 detectorId.SetTECEntry( 1, 1, 4, 7, 470160840 );
00498 detectorId.SetTECEntry( 1, 1, 4, 8, 470177224 );
00499 detectorId.SetTECEntry( 1, 1, 5, 0, 470046408 );
00500 detectorId.SetTECEntry( 1, 1, 5, 1, 470062792 );
00501 detectorId.SetTECEntry( 1, 1, 5, 2, 470079176 );
00502 detectorId.SetTECEntry( 1, 1, 5, 3, 470095560 );
00503 detectorId.SetTECEntry( 1, 1, 5, 4, 470111944 );
00504 detectorId.SetTECEntry( 1, 1, 5, 5, 470128328 );
00505 detectorId.SetTECEntry( 1, 1, 5, 6, 470144712 );
00506 detectorId.SetTECEntry( 1, 1, 5, 7, 470161096 );
00507 detectorId.SetTECEntry( 1, 1, 5, 8, 470177480 );
00508 detectorId.SetTECEntry( 1, 1, 6, 0, 470046664 );
00509 detectorId.SetTECEntry( 1, 1, 6, 1, 470063048 );
00510 detectorId.SetTECEntry( 1, 1, 6, 2, 470079432 );
00511 detectorId.SetTECEntry( 1, 1, 6, 3, 470095816 );
00512 detectorId.SetTECEntry( 1, 1, 6, 4, 470112200 );
00513 detectorId.SetTECEntry( 1, 1, 6, 5, 470128584 );
00514 detectorId.SetTECEntry( 1, 1, 6, 6, 470144968 );
00515 detectorId.SetTECEntry( 1, 1, 6, 7, 470161352 );
00516 detectorId.SetTECEntry( 1, 1, 6, 8, 470177736 );
00517 detectorId.SetTECEntry( 1, 1, 7, 0, 470046920 );
00518 detectorId.SetTECEntry( 1, 1, 7, 1, 470063304 );
00519 detectorId.SetTECEntry( 1, 1, 7, 2, 470079688 );
00520 detectorId.SetTECEntry( 1, 1, 7, 3, 470096072 );
00521 detectorId.SetTECEntry( 1, 1, 7, 4, 470112456 );
00522 detectorId.SetTECEntry( 1, 1, 7, 5, 470128840 );
00523 detectorId.SetTECEntry( 1, 1, 7, 6, 470145224 );
00524 detectorId.SetTECEntry( 1, 1, 7, 7, 470161608 );
00525 detectorId.SetTECEntry( 1, 1, 7, 8, 470177992 );
00526
00527
00528 detectorId.SetTIBTOBEntry( 2, 0, 0, 369174604 );
00529 detectorId.SetTIBTOBEntry( 2, 0, 1, 369174600 );
00530 detectorId.SetTIBTOBEntry( 2, 0, 2, 369174596 );
00531 detectorId.SetTIBTOBEntry( 2, 0, 3, 369170500 );
00532 detectorId.SetTIBTOBEntry( 2, 0, 4, 369170504 );
00533 detectorId.SetTIBTOBEntry( 2, 0, 5, 369170508 );
00534 detectorId.SetTIBTOBEntry( 2, 1, 0, 369174732 );
00535 detectorId.SetTIBTOBEntry( 2, 1, 1, 369174728 );
00536 detectorId.SetTIBTOBEntry( 2, 1, 2, 369174724 );
00537 detectorId.SetTIBTOBEntry( 2, 1, 3, 369170628 );
00538 detectorId.SetTIBTOBEntry( 2, 1, 4, 369170632 );
00539 detectorId.SetTIBTOBEntry( 2, 1, 5, 369170636 );
00540 detectorId.SetTIBTOBEntry( 2, 2, 0, 369174812 );
00541 detectorId.SetTIBTOBEntry( 2, 2, 1, 369174808 );
00542 detectorId.SetTIBTOBEntry( 2, 2, 2, 369174804 );
00543 detectorId.SetTIBTOBEntry( 2, 2, 3, 369170708 );
00544 detectorId.SetTIBTOBEntry( 2, 2, 4, 369170712 );
00545 detectorId.SetTIBTOBEntry( 2, 2, 5, 369170716 );
00546 detectorId.SetTIBTOBEntry( 2, 3, 0, 369174940 );
00547 detectorId.SetTIBTOBEntry( 2, 3, 1, 369174936 );
00548 detectorId.SetTIBTOBEntry( 2, 3, 2, 369174932 );
00549 detectorId.SetTIBTOBEntry( 2, 3, 3, 369170836 );
00550 detectorId.SetTIBTOBEntry( 2, 3, 4, 369170840 );
00551 detectorId.SetTIBTOBEntry( 2, 3, 5, 369170844 );
00552 detectorId.SetTIBTOBEntry( 2, 4, 0, 369175068 );
00553 detectorId.SetTIBTOBEntry( 2, 4, 1, 369175064 );
00554 detectorId.SetTIBTOBEntry( 2, 4, 2, 369175060 );
00555 detectorId.SetTIBTOBEntry( 2, 4, 3, 369170964 );
00556 detectorId.SetTIBTOBEntry( 2, 4, 4, 369170968 );
00557 detectorId.SetTIBTOBEntry( 2, 4, 5, 369170972 );
00558 detectorId.SetTIBTOBEntry( 2, 5, 0, 369175164 );
00559 detectorId.SetTIBTOBEntry( 2, 5, 1, 369175160 );
00560 detectorId.SetTIBTOBEntry( 2, 5, 2, 369175156 );
00561 detectorId.SetTIBTOBEntry( 2, 5, 3, 369171060 );
00562 detectorId.SetTIBTOBEntry( 2, 5, 4, 369171064 );
00563 detectorId.SetTIBTOBEntry( 2, 5, 5, 369171068 );
00564 detectorId.SetTIBTOBEntry( 2, 6, 0, 369175292 );
00565 detectorId.SetTIBTOBEntry( 2, 6, 1, 369175288 );
00566 detectorId.SetTIBTOBEntry( 2, 6, 2, 369175284 );
00567 detectorId.SetTIBTOBEntry( 2, 6, 3, 369171188 );
00568 detectorId.SetTIBTOBEntry( 2, 6, 4, 369171192 );
00569 detectorId.SetTIBTOBEntry( 2, 6, 5, 369171196 );
00570 detectorId.SetTIBTOBEntry( 2, 7, 0, 369175372 );
00571 detectorId.SetTIBTOBEntry( 2, 7, 1, 369175368 );
00572 detectorId.SetTIBTOBEntry( 2, 7, 2, 369175364 );
00573 detectorId.SetTIBTOBEntry( 2, 7, 3, 369171268 );
00574 detectorId.SetTIBTOBEntry( 2, 7, 4, 369171272 );
00575 detectorId.SetTIBTOBEntry( 2, 7, 5, 369171276 );
00576
00577
00578 detectorId.SetTIBTOBEntry( 3, 0, 0, 436232314 );
00579 detectorId.SetTIBTOBEntry( 3, 0, 1, 436232306 );
00580 detectorId.SetTIBTOBEntry( 3, 0, 2, 436232298 );
00581 detectorId.SetTIBTOBEntry( 3, 0, 3, 436228198 );
00582 detectorId.SetTIBTOBEntry( 3, 0, 4, 436228206 );
00583 detectorId.SetTIBTOBEntry( 3, 0, 5, 436228214 );
00584 detectorId.SetTIBTOBEntry( 3, 1, 0, 436232506 );
00585 detectorId.SetTIBTOBEntry( 3, 1, 1, 436232498 );
00586 detectorId.SetTIBTOBEntry( 3, 1, 2, 436232490 );
00587 detectorId.SetTIBTOBEntry( 3, 1, 3, 436228390 );
00588 detectorId.SetTIBTOBEntry( 3, 1, 4, 436228398 );
00589 detectorId.SetTIBTOBEntry( 3, 1, 5, 436228406 );
00590 detectorId.SetTIBTOBEntry( 3, 2, 0, 436232634 );
00591 detectorId.SetTIBTOBEntry( 3, 2, 1, 436232626 );
00592 detectorId.SetTIBTOBEntry( 3, 2, 2, 436232618 );
00593 detectorId.SetTIBTOBEntry( 3, 2, 3, 436228518 );
00594 detectorId.SetTIBTOBEntry( 3, 2, 4, 436228526 );
00595 detectorId.SetTIBTOBEntry( 3, 2, 5, 436228534 );
00596 detectorId.SetTIBTOBEntry( 3, 3, 0, 436232826 );
00597 detectorId.SetTIBTOBEntry( 3, 3, 1, 436232818 );
00598 detectorId.SetTIBTOBEntry( 3, 3, 2, 436232810 );
00599 detectorId.SetTIBTOBEntry( 3, 3, 3, 436228710 );
00600 detectorId.SetTIBTOBEntry( 3, 3, 4, 436228718 );
00601 detectorId.SetTIBTOBEntry( 3, 3, 5, 436228726 );
00602 detectorId.SetTIBTOBEntry( 3, 4, 0, 436233018 );
00603 detectorId.SetTIBTOBEntry( 3, 4, 1, 436233010 );
00604 detectorId.SetTIBTOBEntry( 3, 4, 2, 436233002 );
00605 detectorId.SetTIBTOBEntry( 3, 4, 3, 436228902 );
00606 detectorId.SetTIBTOBEntry( 3, 4, 4, 436228910 );
00607 detectorId.SetTIBTOBEntry( 3, 4, 5, 436228918 );
00608 detectorId.SetTIBTOBEntry( 3, 5, 0, 436233146 );
00609 detectorId.SetTIBTOBEntry( 3, 5, 1, 436233138 );
00610 detectorId.SetTIBTOBEntry( 3, 5, 2, 436233130 );
00611 detectorId.SetTIBTOBEntry( 3, 5, 3, 436229030 );
00612 detectorId.SetTIBTOBEntry( 3, 5, 4, 436229038 );
00613 detectorId.SetTIBTOBEntry( 3, 5, 5, 436229046 );
00614 detectorId.SetTIBTOBEntry( 3, 6, 0, 436233338 );
00615 detectorId.SetTIBTOBEntry( 3, 6, 1, 436233330 );
00616 detectorId.SetTIBTOBEntry( 3, 6, 2, 436233322 );
00617 detectorId.SetTIBTOBEntry( 3, 6, 3, 436229222 );
00618 detectorId.SetTIBTOBEntry( 3, 6, 4, 436229230 );
00619 detectorId.SetTIBTOBEntry( 3, 6, 5, 436229238 );
00620 detectorId.SetTIBTOBEntry( 3, 7, 0, 436233466 );
00621 detectorId.SetTIBTOBEntry( 3, 7, 1, 436233458 );
00622 detectorId.SetTIBTOBEntry( 3, 7, 2, 436233450 );
00623 detectorId.SetTIBTOBEntry( 3, 7, 3, 436229350 );
00624 detectorId.SetTIBTOBEntry( 3, 7, 4, 436229358 );
00625 detectorId.SetTIBTOBEntry( 3, 7, 5, 436229366 );
00626
00627
00628 detectorId.SetTEC2TECEntry( 0, 0, 0, 470307208 );
00629 detectorId.SetTEC2TECEntry( 0, 0, 1, 470323592 );
00630 detectorId.SetTEC2TECEntry( 0, 0, 2, 470339976 );
00631 detectorId.SetTEC2TECEntry( 0, 0, 3, 470356360 );
00632 detectorId.SetTEC2TECEntry( 0, 0, 4, 470372744 );
00633 detectorId.SetTEC2TECEntry( 0, 1, 0, 470307468 );
00634 detectorId.SetTEC2TECEntry( 0, 1, 1, 470323852 );
00635 detectorId.SetTEC2TECEntry( 0, 1, 2, 470340236 );
00636 detectorId.SetTEC2TECEntry( 0, 1, 3, 470356620 );
00637 detectorId.SetTEC2TECEntry( 0, 1, 4, 470373004 );
00638 detectorId.SetTEC2TECEntry( 0, 2, 0, 470307716 );
00639 detectorId.SetTEC2TECEntry( 0, 2, 1, 470324100 );
00640 detectorId.SetTEC2TECEntry( 0, 2, 2, 470340484 );
00641 detectorId.SetTEC2TECEntry( 0, 2, 3, 470356868 );
00642 detectorId.SetTEC2TECEntry( 0, 2, 4, 470373252 );
00643 detectorId.SetTEC2TECEntry( 0, 3, 0, 470307976 );
00644 detectorId.SetTEC2TECEntry( 0, 3, 1, 470324360 );
00645 detectorId.SetTEC2TECEntry( 0, 3, 2, 470340744 );
00646 detectorId.SetTEC2TECEntry( 0, 3, 3, 470357128 );
00647 detectorId.SetTEC2TECEntry( 0, 3, 4, 470373512 );
00648 detectorId.SetTEC2TECEntry( 0, 4, 0, 470308236 );
00649 detectorId.SetTEC2TECEntry( 0, 4, 1, 470324620 );
00650 detectorId.SetTEC2TECEntry( 0, 4, 2, 470341004 );
00651 detectorId.SetTEC2TECEntry( 0, 4, 3, 470357388 );
00652 detectorId.SetTEC2TECEntry( 0, 4, 4, 470373772 );
00653 detectorId.SetTEC2TECEntry( 0, 5, 0, 470308488 );
00654 detectorId.SetTEC2TECEntry( 0, 5, 1, 470324872 );
00655 detectorId.SetTEC2TECEntry( 0, 5, 2, 470341256 );
00656 detectorId.SetTEC2TECEntry( 0, 5, 3, 470357640 );
00657 detectorId.SetTEC2TECEntry( 0, 5, 4, 470374024 );
00658 detectorId.SetTEC2TECEntry( 0, 6, 0, 470308748 );
00659 detectorId.SetTEC2TECEntry( 0, 6, 1, 470325132 );
00660 detectorId.SetTEC2TECEntry( 0, 6, 2, 470341516 );
00661 detectorId.SetTEC2TECEntry( 0, 6, 3, 470357900 );
00662 detectorId.SetTEC2TECEntry( 0, 6, 4, 470374284 );
00663 detectorId.SetTEC2TECEntry( 0, 7, 0, 470308996 );
00664 detectorId.SetTEC2TECEntry( 0, 7, 1, 470325380 );
00665 detectorId.SetTEC2TECEntry( 0, 7, 2, 470341764 );
00666 detectorId.SetTEC2TECEntry( 0, 7, 3, 470358148 );
00667 detectorId.SetTEC2TECEntry( 0, 7, 4, 470374532 );
00668
00669
00670 detectorId.SetTEC2TECEntry( 1, 0, 0, 470045064 );
00671 detectorId.SetTEC2TECEntry( 1, 0, 1, 470061448 );
00672 detectorId.SetTEC2TECEntry( 1, 0, 2, 470077832 );
00673 detectorId.SetTEC2TECEntry( 1, 0, 3, 470094216 );
00674 detectorId.SetTEC2TECEntry( 1, 0, 4, 470110600 );
00675 detectorId.SetTEC2TECEntry( 1, 1, 0, 470045316 );
00676 detectorId.SetTEC2TECEntry( 1, 1, 1, 470061700 );
00677 detectorId.SetTEC2TECEntry( 1, 1, 2, 470078084 );
00678 detectorId.SetTEC2TECEntry( 1, 1, 3, 470094468 );
00679 detectorId.SetTEC2TECEntry( 1, 1, 4, 470110852 );
00680 detectorId.SetTEC2TECEntry( 1, 2, 0, 470045580 );
00681 detectorId.SetTEC2TECEntry( 1, 2, 1, 470061964 );
00682 detectorId.SetTEC2TECEntry( 1, 2, 2, 470078348 );
00683 detectorId.SetTEC2TECEntry( 1, 2, 3, 470094732 );
00684 detectorId.SetTEC2TECEntry( 1, 2, 4, 470111116 );
00685 detectorId.SetTEC2TECEntry( 1, 3, 0, 470045832 );
00686 detectorId.SetTEC2TECEntry( 1, 3, 1, 470062216 );
00687 detectorId.SetTEC2TECEntry( 1, 3, 2, 470078600 );
00688 detectorId.SetTEC2TECEntry( 1, 3, 3, 470094984 );
00689 detectorId.SetTEC2TECEntry( 1, 3, 4, 470111368 );
00690 detectorId.SetTEC2TECEntry( 1, 4, 0, 470046084 );
00691 detectorId.SetTEC2TECEntry( 1, 4, 1, 470062468 );
00692 detectorId.SetTEC2TECEntry( 1, 4, 2, 470078852 );
00693 detectorId.SetTEC2TECEntry( 1, 4, 3, 470095236 );
00694 detectorId.SetTEC2TECEntry( 1, 4, 4, 470111620 );
00695 detectorId.SetTEC2TECEntry( 1, 5, 0, 470046344 );
00696 detectorId.SetTEC2TECEntry( 1, 5, 1, 470062728 );
00697 detectorId.SetTEC2TECEntry( 1, 5, 2, 470079112 );
00698 detectorId.SetTEC2TECEntry( 1, 5, 3, 470095496 );
00699 detectorId.SetTEC2TECEntry( 1, 5, 4, 470111880 );
00700 detectorId.SetTEC2TECEntry( 1, 6, 0, 470046596 );
00701 detectorId.SetTEC2TECEntry( 1, 6, 1, 470062980 );
00702 detectorId.SetTEC2TECEntry( 1, 6, 2, 470079364 );
00703 detectorId.SetTEC2TECEntry( 1, 6, 3, 470095748 );
00704 detectorId.SetTEC2TECEntry( 1, 6, 4, 470112132 );
00705 detectorId.SetTEC2TECEntry( 1, 7, 0, 470046860 );
00706 detectorId.SetTEC2TECEntry( 1, 7, 1, 470063244 );
00707 detectorId.SetTEC2TECEntry( 1, 7, 2, 470079628 );
00708 detectorId.SetTEC2TECEntry( 1, 7, 3, 470096012 );
00709 detectorId.SetTEC2TECEntry( 1, 7, 4, 470112396 );
00710
00711 }
00712
00713
00714 DEFINE_FWK_MODULE(RawDataConverter);
00715