Skip to content

Commit

Permalink
Merge pull request #35 from baffioni/baffioni-smihits-810pre6
Browse files Browse the repository at this point in the history
Baffioni smihits 810pre6
  • Loading branch information
jbsauvan authored Jun 23, 2016
2 parents 3b166c6 + 8cb6384 commit 4c29779
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ std::vector<bool> HGCalBestChoiceCodecImpl::encode(const HGCalBestChoiceCodecImp
<< " : Number of energy values = "<<nData_<<"\n";
}
// Saturate and truncate energy values
if(value+1>(0x1u<<triggerCellSaturationBits_)) value = (0x1<<triggerCellSaturationBits_);
if(value+1>(0x1u<<triggerCellSaturationBits_)) value = (0x1<<triggerCellSaturationBits_)-1;
for(size_t i=0; i<dataLength_; i++)
{
result[nCellsInModule_ + idata*dataLength_ + i] = static_cast<bool>(value & (0x1<<(i+triggerCellTruncationBits_)));// remove the lowest bits (=triggerCellTruncationBits_)
Expand Down
1 change: 1 addition & 0 deletions L1Trigger/L1THGCal/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<use name="Geometry/Records"/>
<use name="CommonTools/UtilAlgos"/>
<use name="DataFormats/L1Trigger"/>
<use name="SimDataFormats/CaloTest"/>

<library name="testL1TriggerL1THGCal" file="HGCalTriggerGeomTester.cc,HGCalTriggerBestChoiceTester.cc">
<flags EDM_PLUGIN="1"/>
Expand Down
Loading

0 comments on commit 4c29779

Please sign in to comment.