Changeset 12332 for trunk/FACT++


Ignore:
Timestamp:
10/30/11 22:34:59 (13 years ago)
Author:
tbretz
Message:
Replaced kTakingData by kTriggerOn
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ftmctrl.cc

    r12313 r12332  
    3333        kIdle,
    3434        kConfigured,  // Returned if idle and fBufStaticData==fStaticData
    35         kTakingData,
     35        kTriggerOn,
    3636    };
    3737
     
    11551155        case FTM::kFtmRunning:
    11561156        case FTM::kFtmCalib:
    1157             return kTakingData;
     1157            return kTriggerOn;
    11581158
    11591159        case FTM::kFtmIdle:
     
    19041904            case ConnectionFTM::kIdle:         return FTM::kIdle;
    19051905            case ConnectionFTM::kConfigured:   return FTM::kIdle;
    1906             case ConnectionFTM::kTakingData:   return FTM::kTakingData;
     1906            case ConnectionFTM::kTriggerOn:    return FTM::kTriggerOn;
    19071907            default:
    19081908                throw runtime_error("StateMachienFTM - Execute() - Inavlid state.");
     
    19111911
    19121912        if (T::GetCurrentState()==FTM::kConfigured &&
    1913             fFTM.GetState()==ConnectionFTM::kTakingData)
    1914             return FTM::kTakingData;
     1913            fFTM.GetState()==ConnectionFTM::kTriggerOn)
     1914            return FTM::kTriggerOn;
    19151915
    19161916        return T::GetCurrentState();
     
    19471947                        "Received answer identical with target configuration.");
    19481948
    1949         T::AddStateName(FTM::kTakingData, "TriggerOn",
    1950                         "Ethernet connection to FTM established, FTM is in taking data state (trigger switched on).");
     1949        T::AddStateName(FTM::kTriggerOn, "TriggerOn",
     1950                        "Ethernet connection to FTM established, FTM trigger output to FADs enabled.");
    19511951
    19521952        T::AddStateName(FTM::kConfigError1, "ErrorInConfig1", "");
     
    19851985            ("start a run (start distributing triggers)");
    19861986
    1987         T::AddEvent("STOP_RUN", FTM::kTakingData)
     1987        T::AddEvent("STOP_RUN", FTM::kTriggerOn)
    19881988            (Wrapper(bind(&ConnectionFTM::CmdStopRun, &fFTM)))
    19891989            ("stop a run (stop distributing triggers)");
     
    19981998             "|status[bool]:disable or enable that the FTM sends rate reports (yes/no)");
    19991999
    2000         T::AddEvent("SET_THRESHOLD", "I:2", FTM::kIdle, FTM::kTakingData)
     2000        T::AddEvent("SET_THRESHOLD", "I:2", FTM::kIdle, FTM::kTriggerOn)
    20012001            (bind(&StateMachineFTM::SetThreshold, this, placeholders::_1))
    20022002            ("Set the comparator threshold"
     
    20042004             "|Threshold[counts]:Threshold to be set in binary counts");
    20052005
    2006         T::AddEvent("SET_N_OUT_OF_4", "I:2", FTM::kIdle, FTM::kTakingData)
     2006        T::AddEvent("SET_N_OUT_OF_4", "I:2", FTM::kIdle, FTM::kTriggerOn)
    20072007            (bind(&StateMachineFTM::SetNoutof4, this, placeholders::_1))
    20082008            ("Set the comparator threshold"
     
    20202020             "|Enable[bool]:Whether FTU should be enabled or disabled (yes/no)");
    20212021
    2022         T::AddEvent("DISABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTakingData)
     2022        T::AddEvent("DISABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTriggerOn)
    20232023            (bind(&StateMachineFTM::EnablePixel, this, placeholders::_1, false))
    20242024            ("(-1 or all)");
    20252025
    2026         T::AddEvent("ENABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTakingData)
     2026        T::AddEvent("ENABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTriggerOn)
    20272027            (bind(&StateMachineFTM::EnablePixel, this, placeholders::_1, true))
    20282028            ("(-1 or all)");
     
    21552155        // A new configure will first stop the FTM this means
    21562156        // we can allow it in idle _and_ taking data
    2157         T::AddEvent("CONFIGURE", "C", FTM::kIdle, FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kTakingData)
     2157        T::AddEvent("CONFIGURE", "C", FTM::kIdle, FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kTriggerOn)
    21582158            (bind(&StateMachineFTM::ConfigureFTM, this, placeholders::_1))
    21592159            ("");
Note: See TracChangeset for help on using the changeset viewer.