Difference: TFadcEvent (2 vs. 3)

Revision 32011-04-07 - PeterKammel

Line: 1 to 1
 
META TOPICPARENT name="MuCapPhysicsAnalysisPK"
Changed:
<
<

>
>

TFadcEvent

 void SetTriggerTime(int i, Int_t triggerTime);
 void SetTriggerFlags(int i, UShort_t triggerFlags);
 void SetClockPeriod(Double_t dt) { fClockPeriod = dt; }
 void SetTriggerGate(Double_t dT) { fTriggerGate = dT; }
 void SetNTriggerFound(Int_t t) { fNTriggerFound = t; }

 
Changed:
<
<
Typical write 00030 void SetNTriggerFound(Int_t t) { fNTriggerFound = t; } 00026 void SetTriggerTime(int i, Int_t triggerTime); 00027 void SetTriggerFlags(int i, UShort_t triggerFlags); 00050 TFadcAnode* AddAnode(UShort_t wire, UShort_t trigger); 00051 TFadcStrip* AddStrip(UShort_t wire, UShort_t trigger); int AddPulse ( TFadcPulse p) | void | SetMaxHeight (Short_t max) | | void | SetIntegral (Int_t integ) | | void | SetLeftTime (Int_t ltime) | | void | SetCenterTime (Int_t ctime) | | void | SetThreshold (Short_t thr) | | void | SetLength (Short_t l) | | void | SetOvershoot (Bool_t b) | Typical read example TFadcAnalysis.cpp::printAnodesAndStrips The private data members are used via accessor functions private: 00057 Int_t fNTriggerFound; 00058 Int_t *fTriggerTime; //[fNTriggerFound] time in ~ns of the hardware trigger 00059 UShort_t *fTriggerFlags; //[fNTriggerFound] which hardware trigger 00061 Double_t fClockPeriod; 00062 Double_t fTriggerGate; 00064 //*********************************************** 00066 int fNAnodes; 00067 TClonesArray *fAnodes; 00070 int fNStrips; 00071 TClonesArray *fStrips
>
>
static const int kNChannels; // static const int kNSamples; //

// The following functions all take the argument in normal counting convention // i.e.: i = [1, kMaxFadcTriggers] !!!!!!! Int_t GetTriggerTime(int i) const; UShort_t GetTriggerFlags(int i) const; Int_t GetTmin(int i) const; Int_t GetTmax(int i) const;

Double_t GetClockPeriod() const { return fClockPeriod; } Double_t GetTriggerGate() const { return fTriggerGate; } int GetNrAnodes(){ return fNAnodes; }; int GetNrStrips(){ return fNStrips; }; Int_t GetNTriggerFound() { return fNTriggerFound; }

// For the following two functions, both arguments are in // normal counting convention, i.e. 1, 2, 3,... Max TFadcAnode* AddAnode(UShort_t wire, UShort_t trigger); TFadcStrip* AddStrip(UShort_t wire, UShort_t trigger);

TClonesArray *GetAnodes() const { return fAnodes; } TClonesArray *GetStrips() const { return fStrips; }

TFadcAnode

class TFadcAnode : public TFadcWire

TFadcWire

TFadcPulse* GetPulse(int n); // Index n = [1, fNPulses]
TFadcPulse* GetPulses();

Int_t GetNPulses(){ return fNPulses; };
UShort_t GetWireNumber(){ return fWireNumber; };
UShort_t GetTriggerNumber(){ return fTriggerNumber; };

int AddPulse(TFadcPulse *p);
void SetNPulses(Int_t n){ fNPulses = n; };
void SetWireNumber(UShort_t w){ fWireNumber = w; };
void SetTriggerNumber(UShort_t t){ fTriggerNumber = t; };

TFadcPulse

/******************* Data Members Access ***********************/
Short_t GetMaxHeight() const { return MaxHeight; };
Int_t GetIntegral() const { return Integral; };
Int_t GetLeftTime() const { return LeftTime; };
Int_t GetCenterTime() const { return CenterTime; };
Short_t GetThreshold() const { return Threshold; };
Short_t GetLength() const { return Length; };
Bool_t GetOvershoot() const { return Overshoot; };

void SetMaxHeight(Short_t max){ MaxHeight = max; };
void SetIntegral(Int_t integ){ Integral = integ; };
void SetLeftTime(Int_t ltime){ LeftTime = ltime; };
void SetCenterTime(Int_t ctime){ CenterTime = ctime; };
void SetThreshold(Short_t thr){ Threshold = thr; };
void SetLength(Short_t l){ Length = l; };
void SetOvershoot(Bool_t b){ Overshoot = b; };
void CopyPulse(const TFadcPulse &p);

Typical Usage

Typical write in TFadcAnalysis

Typical read example TFadcAnalysis.cpp::printAnodesAndStrips

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback