Ignore:
Timestamp:
Nov 25, 1999, 9:34:50 AM (26 years ago)
Author:
ansari
Message:

linux-ppc, gcc 2.95.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/toiboloproducer.cc

    r612 r634  
    1111
    1212TOIBoloProducer::TOIBoloProducer() {
    13   possibleTOIs.insert(TOI(boloMuV, TOI::all, "linfilt sqfilt", "microVolts")); 
     13  possibleTOIs.insert(TOI(boloMuV, TOI::all, "linfilt sqfilt total", "microVolts")); 
    1414}
    1515
     
    2424
    2525void 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") {
    2631  if (source->canGetValue(sampleNum-1, toi)) {
    2732    value = (value + source->getValue(sampleNum-1, toi))/2.;
     
    3136
    3237    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    }
    3445  }
    3546 
     
    5162    if (isProducing(toi2))
    5263      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    }
    5368    TOI toi3(boloMuV, toi.index, "", toi.unit);
    5469    if (isProducing(toi3))
    5570      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    }
    5675  }
     76 }
    5777}
    5878
     
    6181  if (toi.name == boloMuV) {
    6282    TOI toi2("boloRawMuV", toi.index);
    63     //toi2.name = "boloRawMuV";
    6483    t.insert(toi2);
    6584  } else {
    6685    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);
    6790  }
    6891  return t;
Note: See TracChangeset for help on using the changeset viewer.