#ifndef HSTARTSELFCOPAR_H
#define HSTARTSELFCOPAR_H
#include "TObject.h"
#include "TObjArray.h"
#include "hparset.h"
class HStartSelfCoParChan : public TObject {
protected:
Float_t time;
Float_t halfwidth;
public:
HStartSelfCoParChan() { clear(); }
~HStartSelfCoParChan() {;}
Float_t getTime() { return time; }
Float_t getHalfWidth() { return halfwidth; }
void fill(Float_t t,Float_t hw) {
time=t;
halfwidth=hw;
}
void fill(HStartSelfCoParChan& r) {
time=r.getTime();
halfwidth=r.getHalfWidth();
}
void setTime(Float_t t) { time=t; }
void setHalfWidth(Float_t hw) { halfwidth=hw; }
void clear() {
time=0.F;
halfwidth=0.F;
}
ClassDef(HStartSelfCoParChan,1)
};
class HStartSelfCoParMod: public TObject {
protected:
TObjArray* array;
public:
HStartSelfCoParMod(Int_t n=8);
~HStartSelfCoParMod();
HStartSelfCoParChan& operator[](Int_t i) {
return *static_cast<HStartSelfCoParChan*>((*array)[i]);
}
Int_t getSize() { return array->GetEntries(); }
ClassDef(HStartSelfCoParMod,1)
};
class HStartSelfCoPar : public HParSet {
protected:
TObjArray* array;
public:
HStartSelfCoPar(const Char_t* name="StartSelfCoPar",
const Char_t* title="Selfcoincidence parameters for Start",
const Char_t* context="StartSelfCoProduction");
~HStartSelfCoPar();
HStartSelfCoParMod& operator[](Int_t i) {
return *static_cast<HStartSelfCoParMod*>((*array)[i]);
}
Int_t getSize() { return array->GetEntries(); }
Bool_t init(HParIo* input,Int_t* set);
Int_t write(HParIo* output);
void clear();
void printParam();
void readline(const Char_t*, Int_t*);
void putAsciiHeader(TString&);
Bool_t writeline(Char_t*, Int_t, Int_t);
ClassDef(HStartSelfCoPar,1)
};
#endif /*!HSTARTSELFCOPAR_H*/
Last change: Sat May 22 13:14:53 2010
Last generated: 2010-05-22 13:14
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.