~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/reduce/ReduceCppGlobalPID/test_ReduceCppGlobalPID.py

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
        now = datetime.datetime.now()
272
272
        self.config0['unique_identifier'] = now.strftime("%Y_%m_%dT%H_%M_%S_%f")
273
273
        test5 = ('%s/src/reduce/ReduceCppGlobalPID/PDF_test.json' 
274
 
                                              % os.environ.get("MAUS_ROOT_DIR"))
 
274
                                            % os.environ.get("MAUS_ROOT_DIR"))
275
275
        birthresult = self.reducer.birth(json.dumps(self.config0))
276
276
        self.assertTrue(birthresult)
277
277
        fin = open(test5, 'r')
301
301
        hist1 = rootPDFfile1.Get(hist1name)
302
302
        hist2name = "diffTOF0TOF1vsTrackerMom_test_200MeV_pi_plus"
303
303
        hist2 = rootPDFfile2.Get(hist2name)
304
 
        # Check process has added info from 5 tracks to histograms:
305
 
        # N.B. for PIDVarA the behavior to spread one event over all bins is
306
 
        # on, so there should be as many additional entries as there are bins.
 
304
        ## Check process has added info from 5 tracks to histograms:
 
305
        ## N.B. for PIDVarA the behavior to spread one event over all bins is
 
306
        ## on, so there should be as many additional entries as there are bins.
307
307
        self.assertEqual(hist1.GetEntries(), (hist1.GetSize() + 5))
308
308
        self.assertEqual(hist2.GetEntries(), (hist2.GetSize() + 5))
309
309
        os.system('rm -rf %s' % PDFdirectory)