15 unpacker_(u), mapper_(m), headerUnpacking_(hU), srpUnpacking_(srpU), tccUnpacking_(tccU), feUnpacking_(feU),memUnpacking_(memU), forceToKeepFRdata_(forceToKeepFRdata)
22 for(
int feChannel=1; feChannel <= 70; feChannel++) {
feChStatus_.push_back(0);
hlt_.push_back(1);}
23 for(
int tccChannel=1; tccChannel <= 4 ; tccChannel++){
tccChStatus_.push_back(0);}
26 for(
int feChannel=1; feChannel <= 70; feChannel++) {
feBx_.push_back(-1);
feLv1_.push_back(-1); }
27 for(
int tccChannel=1; tccChannel <= 4 ; tccChannel++){
tccBx_.push_back(-1);
tccLv1_.push_back(-1);}
37 for(
int feChannel=1; feChannel <= 70; feChannel++) {
feBx_[feChannel-1]=-1;
feLv1_[feChannel-1]=-1; }
38 for(
int tccChannel=1; tccChannel <= 4 ; tccChannel++){
tccBx_[tccChannel-1]=-1;
tccLv1_[tccChannel-1]=-1;}
89 theDCCheader.
setId(dccId);
117 theRuntypeDecoder.
Decode(
triggerType_, DCCdetTriggerType , DCCruntype, &theDCCheader);
120 (*dccHeaders_)->push_back(theDCCheader);
125 o<<
"\n Unpacked Info for DCC Event Class"
126 <<
"\n DW1 ============================="
131 <<
"\n DW2 ============================="
135 <<
"\n DW3 ============================="
141 std::vector<short>::iterator it;
144 o<<
"\n TCCStatus#"<<
i<<
" "<<(*it);
149 if(!(
i%14)){ o<<
"\n DW"<<(k+3)<<
" ============================="; k++; }
150 o<<
"\n FEStatus#"<<
i<<
" "<<(*it);
169 const unsigned int bx,
170 const unsigned int dccL1,
171 const unsigned int l1,
173 const unsigned int fov)
177 if ( fov < 1 )
return true;
185 const bool bxSynced =
186 ((type ==
FE_MEM) && (bx == 0) && (dccBx == 3564)) ||
187 ((type ==
FE_MEM) && (bx == dccBx) && (dccBx != 3564)) ||
188 ((type ==
TCC_SRP) && (bx == dccBx));
196 const bool l1Synced =
197 ((type ==
FE_MEM) && (l1 == ((dccL1 - 1) & 0xFFF))) ||
198 ((type ==
TCC_SRP) && (l1 == ( dccL1 & 0xFFF)));
200 return (bxSynced && l1Synced);
bool isSynced(const unsigned int dccBx, const unsigned int bx, const unsigned int dccL1, const unsigned int l1, const BlockType type, const unsigned int fov)
DCCEventBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, bool hU, bool srpU, bool tccU, bool feU, bool memU, bool forceToKeepFRdata)
EcalElectronicsMapper * mapper_
std::auto_ptr< EcalRawDataCollection > * dccHeaders_
virtual void updateCollectors()
unsigned int detailedTriggerType_
std::vector< short > hlt_
unsigned int blockLength_
unsigned int triggerType_
DCCDataUnpacker * unpacker_
virtual void updateCollectors()
std::vector< short > tccBx_
std::auto_ptr< EcalRawDataCollection > * dccHeadersCollection()
std::vector< short > tccLv1_
std::vector< short > feBx_
unsigned int orbitCounter_
std::vector< short > feChStatus_
std::vector< short > feLv1_
void addHeaderToCollection()
void display(std::ostream &o)
unsigned int getActiveSM()
std::vector< short > tccChStatus_