Changeset 634 in Sophya for trunk/Poubelle/archTOI.old/toiboloproducer.cc
- Timestamp:
- Nov 25, 1999, 9:34:50 AM (26 years ago)
- File:
-
- 1 edited
-
trunk/Poubelle/archTOI.old/toiboloproducer.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toiboloproducer.cc
r612 r634 11 11 12 12 TOIBoloProducer::TOIBoloProducer() { 13 possibleTOIs.insert(TOI(boloMuV, TOI::all, "linfilt sqfilt ", "microVolts"));13 possibleTOIs.insert(TOI(boloMuV, TOI::all, "linfilt sqfilt total", "microVolts")); 14 14 } 15 15 … … 24 24 25 25 void TOIBoloProducer::dataFeed(TOIProducer* source, TOI const& toi, long sampleNum, double value) { 26 if (toi.name == "boloDACV") { 27 boloDacV[toi.index] = value; 28 } 29 30 if (toi.name == "boloRawMuV") { 26 31 if (source->canGetValue(sampleNum-1, toi)) { 27 32 value = (value + source->getValue(sampleNum-1, toi))/2.; … … 31 36 32 37 TOI toi2(boloMuV, toi.index, "sqfilt", toi.unit); 33 computedValue(toi2, sampleNum, value); 38 if (isProducing(toi2)) 39 computedValue(toi2, sampleNum, value); 40 41 toi2.options.insert("total"); toi2.findref(); 42 if (isProducing(toi2)) { 43 computedValue(toi2, sampleNum, boloDacV[toi.index] - value); 44 } 34 45 } 35 46 … … 51 62 if (isProducing(toi2)) 52 63 computedValue(toi2, sampleNum - filtHalfRange, y); 64 toi2.options.insert("total"); toi2.findref(); 65 if (isProducing(toi2)) { 66 computedValue(toi2, sampleNum - filtHalfRange, boloDacV[toi.index] - y); 67 } 53 68 TOI toi3(boloMuV, toi.index, "", toi.unit); 54 69 if (isProducing(toi3)) 55 70 computedValue(toi3, sampleNum - filtHalfRange, y); 71 toi2.options.insert("total"); toi2.findref(); 72 if (isProducing(toi3)) { 73 computedValue(toi3, sampleNum - filtHalfRange, boloDacV[toi.index] - y); 74 } 56 75 } 76 } 57 77 } 58 78 … … 61 81 if (toi.name == boloMuV) { 62 82 TOI toi2("boloRawMuV", toi.index); 63 //toi2.name = "boloRawMuV";64 83 t.insert(toi2); 65 84 } else { 66 85 throw ArchExc("Cannot produce "+toi.name); 86 } 87 if (toi.options.find("total") != toi.options.end()) { 88 TOI toi2("boloDACV", toi.index); 89 t.insert(toi2); 67 90 } 68 91 return t;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/PI/chrome/site/your_project_logo.png)