~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQOfflineData/test_InputCppDAQOfflineData.py

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        # Get a single event and check it's the right size
57
57
        self.assertTrue(self.mapper.readNextEvent())
58
58
        data = self.mapper.getCurEvent()
59
 
        # Data shold be 80 (first event is start of burst)
60
 
        self.assertEqual(len(data), 96)
 
59
        # Data shold be 108 (first event is start of burst)
 
60
        self.assertEqual(len(data), 108)
61
61
        self.assertTrue(self.mapper.death())
62
62
        return
63
63
 
80
80
 
81
81
        # Check the md5 sum matches the expected value
82
82
        # changed checksum to reflect the run_num addition
83
 
        # changed checksum from 15abbb1d734e6d72b4270a399af2406a
84
 
        # to reflect Gene's ckov unpacking changes - Oct 12,2012
 
83
        # changed checksum from ca8fb803f65c2ef93327379bee9399d0
 
84
        # to reflect new changes due to the cpp data - Dec 1,2013
85
85
        self.assertEqual(digester.hexdigest(), \
86
 
                         'ca8fb803f65c2ef93327379bee9399d0')
 
86
                         '08bdfba7e5cad1b8da503742c545a7c8')
87
87
 
88
88
        self.assertTrue(self.mapper.death())
89
89