Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32745
b: "refs/heads/CMSSW_7_1_X"
c: b2637bb
h: "refs/heads/CMSSW_7_1_X"
i:
  32743: 875bb31
v: v3
  • Loading branch information
Giovanni Franzoni committed Oct 24, 2007
1 parent 3bf830b commit f0f308f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 845cee8e93ae68ce0119971274b359909b4a5a8f
"refs/heads/CMSSW_7_1_X": b2637bbd76ebf1298449cb2b0a462ccda9f25662
19 changes: 8 additions & 11 deletions trunk/EventFilter/EcalTBRawToDigi/src/EcalTB07DaqFormatter.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
*
* $Date: 2007/10/20 10:58:01 $
* $Revision: 1.12 $
* $Date: 2007/10/23 16:04:07 $
* $Revision: 1.13 $
* \author N. Marinelli IASA
* \author G. Della Ricca
* \author G. Franzoni
Expand Down Expand Up @@ -191,7 +191,7 @@ void EcalTB07DaqFormatter::interpretRawData(const FEDRawData & fedData ,

EcalTriggerPrimitiveSample theSample(TpSamples[i].first, TpSamples[i].second, TpFlags[i]);

EcalTrigTowerDetId idtt(1, EcalBarrel, etaTT, phiTT, 0);
EcalTrigTowerDetId idtt(2, EcalBarrel, etaTT, phiTT, 0);
EcalTriggerPrimitiveDigi thePrimitive(idtt);
thePrimitive.setSize(1); // hard coded
thePrimitive.setSample(0, theSample);
Expand Down Expand Up @@ -285,10 +285,10 @@ void EcalTB07DaqFormatter::interpretRawData(const FEDRawData & fedData ,
<< "number of TowerBlocks found (" << dccTowerBlocks.size()
<< ") differs from expected (" << _numExpectedTowers
<< ") skipping event";

EBDetId idsm(1, 1 + 20 * dccID);
dccsizecollection.push_back(idsm);

EBDetId idsm(1, 1);
dccsizecollection.push_back(idsm);

return;

}
Expand Down Expand Up @@ -886,17 +886,14 @@ void EcalTB07DaqFormatter::DecodeMEM( DCCTBTowerBlock * towerblock, EcalPnDiod
// if present Pn has any of its 5 channels with problems, do not produce digi for it
if (! pnIsOkInBlock [pnId-1] ) continue;

// fixme giof: second argumenti is DCCId, to be determined
EcalPnDiodeDetId PnId(1, 1, pnId + kPnPerTowerBlock*mem_id);
// second argument is DccId which is set to 46 to match h2 data in global CMS geometry
EcalPnDiodeDetId PnId(2, 46, pnId + kPnPerTowerBlock*mem_id);
EcalPnDiodeDigi thePnDigi(PnId );

thePnDigi.setSize(kSamplesPerPn);

for (int sample =0; sample<kSamplesPerPn; sample++)
{
// int adc = (data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] & 0xfff);
// int gain = (data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] & 0x3000) /4096;;
// EcalFEMSample thePnSample(adc, gain);
EcalFEMSample thePnSample( data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] );
thePnDigi.setSample(sample, thePnSample );
}
Expand Down
15 changes: 6 additions & 9 deletions trunk/EventFilter/EcalTBRawToDigi/src/EcalTBDaqFormatter.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
/*
*
* $Date: 2007/10/20 10:58:01 $
* $Revision: 1.60 $
* $Date: 2007/10/23 15:30:05 $
* $Revision: 1.61 $
* \author N. Marinelli IASA
* \author G. Della Ricca
* \author G. Franzoni
Expand Down Expand Up @@ -245,7 +245,7 @@ void EcalTBDaqFormatter::interpretRawData(const FEDRawData & fedData ,
<< ") differs from expected (" << _numExpectedTowers
<< ") skipping event";

EBDetId idsm(1, 1 + 20 * dccID);
EBDetId idsm(1, 1);
dccsizecollection.push_back(idsm);

return;
Expand Down Expand Up @@ -824,17 +824,14 @@ void EcalTBDaqFormatter::DecodeMEM( DCCTBTowerBlock * towerblock, EcalPnDiodeD
// if present Pn has any of its 5 channels with problems, do not produce digi for it
if (! pnIsOkInBlock [pnId-1] ) continue;

// fixme giof: second argumenti is DCCId, to be determined
EcalPnDiodeDetId PnId(1, 1, pnId + kPnPerTowerBlock*mem_id);
// DccId set to 28 to be consistent with ism==1
EcalPnDiodeDetId PnId(1, 28, pnId + kPnPerTowerBlock*mem_id);
EcalPnDiodeDigi thePnDigi(PnId );

thePnDigi.setSize(kSamplesPerPn);

for (int sample =0; sample<kSamplesPerPn; sample++)
{
// int adc = (data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] & 0xfff);
// int gain = (data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] & 0x3000) /4096;;
// EcalFEMSample thePnSample(adc, gain);
EcalFEMSample thePnSample( data_MEM[(mem_id)*250 + (pnId-1)*kSamplesPerPn + sample ] );
thePnDigi.setSample(sample, thePnSample );
}
Expand Down

0 comments on commit f0f308f

Please sign in to comment.