QCoSelector.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_COSELECTOR_HH_
00003 #define _Q_COSELECTOR_HH_
00004 
00005 #include <map>
00006 #include <list>
00007 #include <string>
00008 
00009 class QCoincidence;
00010 
00017 class QCoSelector
00018 {
00019   enum CoVarType
00020     {
00021       CoEnergy = 0, Mult, InitialTime, DeltaTimeNs, 
00022       EnergyInd, TimeInd, DeltaTimeNsInd, ChannelInd
00023     };
00024 
00025 protected:
00026   std::map<std::string, CoVarType> fVariables;
00027 
00028 public:
00029   QCoSelector ();
00030   virtual ~QCoSelector ();
00031 
00032   //* @brief Return list of variables
00033   std::list<std::string> GetVariables();
00034 
00035   //* @brief If expression is in fVariables, return its value for coin 
00036   double Select (std::string expression, const QCoincidence & coin);
00037 
00038 };
00039 
00040 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1