#include "hmdctimecut.h"

HMdcTimeCut


class description - source file - inheritance tree (.pdf)

class HMdcTimeCut : public HParSet

Inheritance Chart:
TObject
<-
TNamed
<-
HParSet
<-
HMdcTimeCut

    protected:
void setNameTitle() public:
HMdcTimeCut(const char* name = "MdcTimeCut", const char* title = "cut on time1, time2 & time2-time1", const char* context = "MdcTimeCutProduction", Int_t secs = 6, Int_t mods = 4) ~HMdcTimeCut() static TClass* Class() virtual void clear() Bool_t cut(HMdcCal1* cal) Bool_t cutComStop(HMdcCal1* cal) Bool_t cutTime1(HMdcCal1* cal) Bool_t cutTime1(Int_t, Int_t, Float_t) Bool_t cutTime2(HMdcCal1* cal) Bool_t cutTime2(Int_t, Int_t, Float_t) Bool_t cutTimesDif(HMdcCal1* cal) Bool_t cutTimesDif(Int_t, Int_t, Float_t, Float_t) void getCut(Int_t s, Int_t mod, Float_t& cT1L, Float_t& cT1R, Float_t& cT2L, Float_t& cT2R, Float_t& cLeft, Float_t& cRight) Float_t getCutDTime21L(Int_t sec, Int_t mod) Float_t getCutDTime21R(Int_t sec, Int_t mod) Float_t getCutT1L(Int_t sec, Int_t mod) Float_t getCutT1R(Int_t sec, Int_t mod) Float_t getCutT2L(Int_t sec, Int_t mod) Float_t getCutT2R(Int_t sec, Int_t mod) static HMdcTimeCut* getExObject() Bool_t getIsUsed() static HMdcTimeCut* getObject() Int_t getSize() virtual Bool_t init(HParIo* input, Int_t* set) virtual TClass* IsA() const HMdcTimeCutSec& operator[](Int_t i) void printParam() void putAsciiHeader(TString&) void readline(const char* buf, Int_t* set) void setCut(Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R, Float_t cLeft, Float_t cRight) void setCut(Float_t* cT1L, Float_t* cT1R, Float_t* cT2L, Float_t* cT2R, Float_t* cLeft, Float_t* cRight) void setCut(Int_t mod, Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R, Float_t cLeft, Float_t cRight) void setCutDTime21(Float_t cLeft, Float_t cRight) void setCutDTime21(Int_t mod, Float_t cLeft, Float_t cRight) void setCutTime1(Float_t cT1L, Float_t cT1R) void setCutTime1(Int_t mod, Float_t cT1L, Float_t cT1R) void setCutTime2(Float_t cT2L, Float_t cT2R) void setCutTime2(Int_t mod, Float_t cT2L, Float_t cT2R) void setIsUsed(Bool_t flag) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t write(HParIo* output) Bool_t writeline(char*, Int_t, Int_t)

Data Members


    protected:
TObjArray fSecs Sectors containins modules containing cuts Bool_t isContainer HMdcDetector* fMdc Bool_t isused flag for used/not used

Class Description

HMdcTimeCut

  class for cut time1, time2 and time2-time1
  used for beam data only (time1: leading edge, time2
  trailing edge, see http://www-hades.gsi.de/docs/mdc/mdcana).

  Using: create the object HMdcTimeCut in a macros
  and set the edges for a cut (see hmdctimecut.h)
  Default seting - cut is absent (all edges = 0).

  If you don't need in a cut don't create this object.

  cT1L[module],cT1R[module] - cut for time1
  cT2L[module],cT2R[module] - cut for time2
  cLeft[module],cRight[module] - cut for time2-time1

  Member fuctions:
  setCut(Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R,
              Float_t cLeft, Float_t cRight);
    seting identical cuts for all modules
  setCut(Int_t mod, Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R,
              Float_t cLeft, Float_t cRight);
    seting cuts for module mod.
  ...

  Static function getExObject return the pointer to
  HMdcTimeCut object. If pointer=0, the object
  not exist:
  HMdcTimeCut* fCut=HMdcTimeCut::getExObject();

  Static function getObject return the pointer to
  HMdcTimeCut object. If object is not existing
  it will created:
  HMdcTimeCut* fCut=HMdcTimeCut::getObject();

  Examples are in mdcTrackD.C and mdcEfficiency.C



HMdcTimeCut(const char* name,const char* title, const char* context,Int_t s,Int_t m) : HParSet(name,title,context), fSecs(s)

void clear(void)

void setNameTitle()

HMdcTimeCut* getExObject()

HMdcTimeCut* getObject()

void setCut(Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R, Float_t cLeft, Float_t cRight)

void setCut(Float_t* cT1L, Float_t* cT1R, Float_t* cT2L, Float_t* cT2R, Float_t* cLeft, Float_t* cRight)

void setCutTime1(Float_t cT1L, Float_t cT1R)

void setCutTime2(Float_t cT2L, Float_t cT2R)

void setCutDTime21(Float_t cLeft, Float_t cRight)

void setCut(Int_t mod, Float_t cT1L, Float_t cT1R, Float_t cT2L, Float_t cT2R, Float_t cLeft, Float_t cRight)

void setCutTime1(Int_t mod, Float_t cT1L, Float_t cT1R)

void setCutTime2(Int_t mod, Float_t cT2L, Float_t cT2R)

void setCutDTime21(Int_t mod, Float_t cLeft, Float_t cRight)

void getCut(Int_t s,Int_t mod, Float_t &cT1L, Float_t &cT1R, Float_t &cT2L, Float_t &cT2R, Float_t &cLeft, Float_t &cRight)

Bool_t cut(HMdcCal1* cal)

Bool_t cutTime1(HMdcCal1* cal)

Bool_t cutTime1(Int_t s,Int_t m,Float_t time1)

Bool_t cutTime2(HMdcCal1* cal)

Bool_t cutTime2(Int_t s,Int_t m,Float_t time2)

Bool_t cutTimesDif(HMdcCal1* cal)

Bool_t cutTimesDif(Int_t s,Int_t m,Float_t time1,Float_t time2)

Bool_t cutComStop(HMdcCal1* cal)

Bool_t init(HParIo* inp,Int_t* set)
 intitializes the container from an input

Int_t write(HParIo* output)
 writes the container to an output

void readline(const char* buf, Int_t* set)
 decodes one line read from ascii file I/O

void putAsciiHeader(TString& b)

Bool_t writeline(char*buf, Int_t s, Int_t m)



Inline Functions


                   void ~HMdcTimeCut()
                   void setIsUsed(Bool_t flag)
                 Bool_t getIsUsed()
                Float_t getCutT1L(Int_t sec, Int_t mod)
                Float_t getCutT1R(Int_t sec, Int_t mod)
                Float_t getCutT2L(Int_t sec, Int_t mod)
                Float_t getCutT2R(Int_t sec, Int_t mod)
                Float_t getCutDTime21L(Int_t sec, Int_t mod)
                Float_t getCutDTime21R(Int_t sec, Int_t mod)
        HMdcTimeCutSec& operator[](Int_t i)
                  Int_t getSize()
                   void printParam()
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)


Last update: 17/01/2002 by I. Koenig


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.