MultiWF


class description - source file - inheritance tree

class MultiWF : public TObject

    private:
Int_t i2a(Char_t*, Float_t, Int_t = 1) void swoo(char*, char*) void swooip(float*, int) public:
MultiWF(const MultiWF&) MultiWF(Char_t*, Float_t = -1111., Int_t = 0) virtual ~MultiWF() TH1F* Add(Int_t = 0, Int_t end = 0) TH1F* Average(Int_t, Int_t) TH1F* AverPlot(Int_t) Int_t CheckSize() static TClass* Class() TH1F* CMHisto() void CommonMode() void EShaping(Elec*, TH1F*, Int_t = 1) void FitShape(Int_t, Float_t) Float_t GetDeltat() Int_t GetEvents() Float_t GetI(int ind = 0) void GetNextEvent(Int_t = 0) Int_t GetPoints() Float_t GetT(int ind = 0) Float_t Gett0() Float_t GetU(int ind = 0) MeasureWF* GetWF() void Info() Float_t Integral(Float_t = -1111, Float_t = -1111) virtual TClass* IsA() const void Legend(TH1F*, Int_t, Int_t, Int_t = 1) TH1F* operator()(Int_t index) TH1F* PHSpecter(Float_t = 10, Int_t = 180, Float_t = 0, Float_t = 6, Float_t = -1e6, Float_t = -1e6, Int_t mode = 0) void Rewind(Int_t = 0) void SetNewFile(char*) void SetPoints(Int_t x) void Sett0(Float_t x) virtual void ShowMembers(TMemberInspector& insp, char* parent) TH1F* Specter(Float_t = 0, Float_t = -1111, Float_t = 1, Int_t = 100, Float_t = -0.5, Float_t = 5) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) TH1F* Time(Float_t = 1, Float_t = 0, Float_t = -1111, Int_t = 1, Float_t = 0) TH1F* WaveHisto(Float_t, Int_t, Float_t, Float_t, Int_t = -1, Int_t = -1) void WF(Int_t, Int_t, Int_t, Float_t = -5, Float_t = 30, Int_t = 0)

Data Members

    private:
FILE* in Stream Int_t HeaderSize Size of the header Int_t Events Number of Events Int_t Points Number of points per event Float_t t0 Starting point Float_t deltat distance between two points Int_t NumU Int_t NumUAver TArrayF Date Date of the Measurement (or simulation) TArrayF Voltage Array of Voltages TArrayF Current Array of Currents TArrayF Temperature Array of Temperatures public:
Float_t Weight TPaveText* pt Int_t cevent TH1F* chis Float_t cm_mint Float_t cm_maxt Int_t CCmode Float_t cmode Float_t cmcut

Class Description


MultiWF(Char_t *name, Float_t newt0,Int_t type)
 constructor
	 Char_t *name  ;  file name
	 Float_t newt0 ;  time shift to correct time scale

~MultiWF()
destructor

void swoo(char *a, char *b)
 byte swaping (LABVIEW,HPUX g++)<->(LINUX g++, WINNT cl)

void swooip(float *in, int s)
 byte swaping (LABVIEW,HPUX g++)<->(LINUX g++, WINNT cl)

TH1F* AverPlot(Int_t num)

Int_t CheckSize()
 Retruns estimated number of events in the file

void GetNextEvent(Int_t CM)
 Gets next event in the file
	         Int_t CM   ; ignore=0  ,  correct common mode=1 (this is base line shift)

void CommonMode()
 Corrects base line shift

Float_t Integral(Float_t mint,Float_t maxt)
Calculates integral of the current histogram (chis)!
		Float_t mint	; integration time interval
		Float_t maxt	;

void EShaping(Elec *el,TH1F *his,Int_t what)
copies the current histogram in TH1F *his and shapes it with Elec *el
 Int_t what; 0-> preamplifier->CR-RC^2 shaper ,  1->deconvolution for the TCT transfer function

void WF(Int_t start,Int_t end,Int_t step ,Float_t stime,Float_t etime,Int_t aver)
 Display waveform dependence on time of the measurement
			Int_t start   ;   the first event to be displayed
			Int_t end     ;   the first event to be displayed
                    Int_t step    ;   step size between events
			Float_t stime ;   time window of display
			Float_t etime ;   time window of display
			Int_t aver    ;   number of events to average first event
					  Average(start,start+aver) etc.

void Legend(TH1F *ch,Int_t start, Int_t end,Int_t Step)
Draws legend

TH1F* Time(Float_t time,Float_t low, Float_t high,Int_t rebin,Float_t stime)
 Used with known trigger interval period
 Each event charge (integral) is drawn vs. time of its occurence
			Float_t time ; 1/frequency of repetition
			Float_t low  ; integration time interval
			Float_t high ;
			Int_t rebin  ; rebining factor (average charge is shown)
			Float_t stime ; start time of the histogram (used with delayed DAQ)

TH1F* Specter(Float_t low, Float_t high,Float_t weight,Int_t num,Float_t first,Float_t last)
 Specter of all recorded events
			Float_t low   ; integration time interval
			Float_t high  ;
			Float_t weight; normalization
			Int_t num     ; number of bins
			Int_t first   ; histogram limits
			Int_t last    ;

TH1F* CMHisto()

TH1F* PHSpecter(Float_t weight,Int_t num,Float_t first,Float_t last,Float_t time_lo,Float_t time_hi,Int_t mode)
 Pulse height specter of all recorded events
			Float_t weight; normalization
			Int_t num     ; number of bins
			Int_t first   ; histogram limits
			Int_t last    ;
		printf("max=%fn",max);
		c1->Update();
		while(!getchar());

TH1F* WaveHisto(Float_t weight,Int_t num,Float_t first,Float_t last,Int_t startbin,Int_t endbin)
 Pulse height specter of all recorded events
			Float_t weight; normalization
			Int_t num     ; number of bins
			Int_t first   ; histogram limits
			Int_t last    ;
                    Int_t startbin; start bin of the waveform histogram
                    Int_t endbin;   end bin of the waveform histogram

void SetNewFile(Char_t *name)

void Rewind(Int_t index)
Rewinds the file poiter to the desired event
		      Int_t index ; event number (defualt=0, begining of the file)

TH1F* Average(Int_t start, Int_t end)
 Averaging events (Waveforms)
		Int_t start ; first event
		Int_t end   ; last event
		Function returns pointer to averaged histogram

TH1F* Add(Int_t start, Int_t end)
 Averaging events (Waveforms)
		Int_t start ; first event
		Int_t end   ; last event
		Function returns pointer to averaged histogram

void Info()

Int_t i2a(Char_t *v,Float_t vol,Int_t sign)
 int to ascii with signs (same as in MeasureWF)

void FitShape(Int_t order,Float_t peaking_time)

MeasureWF* GetWF()



Inline Functions


              Int_t GetPoints()
            Float_t Gett0()
            Float_t GetDeltat()
              Int_t GetEvents()
            Float_t GetU(int ind = 0)
            Float_t GetT(int ind = 0)
            Float_t GetI(int ind = 0)
               void Sett0(Float_t x)
              TH1F* operator()(Int_t index)
               void SetPoints(Int_t x)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
            MultiWF MultiWF(const MultiWF&)


Last update: Tue Jul 28 11:30:21 2009


ROOT page - Class index - 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.