~mwinter4/maus/ckov-reco

« back to all changes in this revision

Viewing changes to tests/cpp_unit/JsonCppProcessors/SpillProcessorTest.cc

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
//         example, if we never touch "energy" or something, it never gets used.
40
40
//         But checking this is a lot of work...
41
41
 
 
42
// Tests the MC branch and the Spill overall
 
43
// Recon branch should go in ReconEventProcessorTest (this is getting unwieldy)
 
44
 
42
45
namespace MAUS {
43
46
namespace SpillProcessorTest {
44
47
 
128
131
    std::string("\"maus_event_type\":\"Spill\"");
129
132
 
130
133
std::string SPILL_ALL = SPILL_SEED+","+
131
 
    std::string("\"scalars\":{}, \"emr_spill_data\":{}, ")+
 
134
    std::string("\"scalars\":{}, ")+
132
135
    std::string("\"mc_events\":[], \"recon_events\":[], \"test_branch\":"+
133
136
                TEST_BRANCH("test_branch/")+"}");
134
137
 
135
138
std::string SPILL_MINIMAL = SPILL_SEED+"}";
136
139
 
137
 
 
138
140
TEST(SpillProcessorTest, ThreeVectorProcessorTest) {
139
141
    ThreeVectorProcessor proc;
140
142
    ProcessorTest::test_value(&proc, THREE_VEC);
209
211
TEST(SpillProcessorTest, SpillProcessorTest) {
210
212
    SpillProcessor proc;
211
213
    ProcessorTest::test_value(&proc, SPILL_MINIMAL);
 
214
    std::cerr << SPILL_MINIMAL << std::endl;
212
215
    ProcessorTest::test_value(&proc, SPILL_ALL);
213
216
}
214
217
}