TSamuraiFDC2Data.h 1.18 KB
Newer Older
Adrien Matta's avatar
Adrien Matta committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#ifndef TDCDATA_H
#define TDCDATA_H
#include "TObject.h"
#include <vector>
class TSamuraiFDC2Data: public TObject{
  public:
    TSamuraiFDC2Data();
    ~TSamuraiFDC2Data();

  private:
    std::vector<int> fDC_DetectorNbr;
    std::vector<int> fDC_LayerNbr;
    std::vector<int> fDC_WireNbr;
    std::vector<double> fDC_Time;
    std::vector<int> fDC_Edge;
  
  public:
    void Clear();
    void Print();
    void Clear(const Option_t*) {};
    void Dump() const{};
  
  public:
    void SetData(const int& Det, const int& Layer, const int& Wire, const double& Time, const int& Edge);
    unsigned int Mult(){return fDC_DetectorNbr.size();};
    unsigned int MultLayer(unsigned int det , unsigned int layer, int edge=-1);
    std::vector<int> GetWire(unsigned int det , unsigned int layer);
    int const GetDetectorNbr(const unsigned int& i){return fDC_DetectorNbr[i];};
    int const GetLayerNbr(const unsigned int& i){return fDC_LayerNbr[i];};
    int const GetWireNbr(const unsigned int& i){return fDC_WireNbr[i];};
    double const GetTime(const unsigned int& i){return fDC_Time[i];};
    int const GetEdge(const unsigned int& i){return fDC_Edge[i];};

    ClassDef(TSamuraiFDC2Data,1); 
};

#endif