CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DataFormats/EcalRawData/src/EcalDCCHeaderBlock.cc

Go to the documentation of this file.
00001 #include <DataFormats/EcalRawData/interface/EcalDCCHeaderBlock.h>
00002 
00003 EcalDCCHeaderBlock::EcalDCCHeaderBlock()
00004 {
00005   dccId_ = -1; // initialize
00006   fedId_ = -1; // initialize
00007   dccInTTCCommand_ = -1; // initialize
00008   tccStatus_.reserve(MAX_TCC_SIZE);
00009   triggerTowerFlag_.reserve(MAX_TT_SIZE);
00010   feStatus_.reserve(MAX_TT_SIZE);
00011 
00012   feBx_.reserve(MAX_TT_SIZE);
00013   feLv1_.reserve(MAX_TT_SIZE);
00014   tccBx_.reserve(MAX_TCC_SIZE);
00015   tccLv1_.reserve(MAX_TCC_SIZE);
00016 
00017   srpLv1_=-1;
00018   srpBx_=-1;
00019 
00020   dccErrors_=-1;
00021   orbitNumber_=-1; // do we need it here?
00022   runType_=-1;
00023   zs_=-1;
00024   basic_trigger_type_=-1;
00025   LV1event_ =-1;
00026   runNumber_ =-1;
00027   BX_ =-1;
00028  
00029   EcalDCCEventSettings dummySettings;
00030   dummySettings.LaserPower =-1;
00031   dummySettings.LaserFilter =-1;
00032   dummySettings.wavelength =-1;
00033   dummySettings.delay =-1;
00034   dummySettings.MEMVinj =-1;
00035   dummySettings.mgpa_content =-1;
00036   dummySettings.ped_offset =-1;
00037 
00038   EventSettings_ = dummySettings;
00039 
00040   rtHalf_=-1;
00041   mgpaGain_=-1;
00042   memGain_=-1;
00043   srpStatus_ =-1;
00044   selectiveReadout_=false;
00045   testZeroSuppression_=false;
00046   zeroSuppression_=false; 
00047 }
00048 
00049 EcalDCCHeaderBlock::EcalDCCHeaderBlock(const int& dccId)
00050 {
00051   dccId_ = dccId;
00052   fedId_ = -1;  // initialize
00053   tccStatus_.reserve(MAX_TCC_SIZE);
00054   triggerTowerFlag_.reserve(MAX_TT_SIZE);
00055   feStatus_.reserve(MAX_TT_SIZE);
00056 
00057   feBx_.reserve(MAX_TT_SIZE);
00058   feLv1_.reserve(MAX_TT_SIZE);
00059   tccBx_.reserve(MAX_TCC_SIZE);
00060   tccLv1_.reserve(MAX_TCC_SIZE);
00061 
00062   srpLv1_=-1;
00063   srpBx_=-1;
00064 
00065 
00066   dccErrors_=-1;
00067   orbitNumber_=-1; // do we need it here?
00068   runType_=-1;
00069   basic_trigger_type_=-1;
00070   LV1event_ =-1;
00071   runNumber_ =-1;
00072   BX_ =-1;
00073  
00074   EcalDCCEventSettings dummySettings;
00075   dummySettings.LaserPower =-1;
00076   dummySettings.LaserFilter =-1;
00077   dummySettings.wavelength =-1;
00078   dummySettings.delay =-1;
00079   dummySettings.MEMVinj =-1;
00080   dummySettings.mgpa_content =-1;
00081   dummySettings.ped_offset =-1;
00082 
00083   EventSettings_ = dummySettings;
00084 
00085   rtHalf_=-1;
00086   mgpaGain_=-1;
00087   memGain_=-1;
00088   srpStatus_ =-1;
00089   
00090   selectiveReadout_=false;
00091   testZeroSuppression_=false;
00092   zeroSuppression_=false;  
00093 }
00094