1 #ifndef ALIADLOGICALSIGNAL_H
2 #define ALIADLOGICALSIGNAL_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
11 // Class AliADLogicalSignal
12 // ---------------------------
13 // Describes a logical signal in the electronics.
14 // Use it to generate observation windows
15 // which are used by AliADTriggerSimulator class
22 class AliADLogicalSignal : public TObject {
25 AliADLogicalSignal(UShort_t profilClock, UInt_t delay);
26 virtual ~AliADLogicalSignal();
27 AliADLogicalSignal(const AliADLogicalSignal &signal);
28 AliADLogicalSignal& operator= (const AliADLogicalSignal &signal);
29 AliADLogicalSignal operator& (const AliADLogicalSignal &signal) const;
30 AliADLogicalSignal operator| (const AliADLogicalSignal &signal) const;
32 virtual void Print(Option_t* opt="") const { AliInfo(Form("\t%s -> Start %f Stop %f\n ",opt,fStart,fStop));}
34 Float_t GetStartTime() const {return fStart;};
35 Float_t GetStopTime() const {return fStop;};
36 Float_t GetWidth() const {return (fStop - fStart);};
38 void SetStartTime(Float_t time){fStart = time;};
39 void SetStopTime(Float_t time){fStop = time;};
41 Bool_t IsInCoincidence(Float_t time) const;
45 Float_t fStart; // Start Time of the signal with respect to the LHC Clock
46 Float_t fStop; // Stop Time of the signal with respect to the LHC Clock
49 ClassDef( AliADLogicalSignal, 1 )
53 #endif // ALIADLOGICALSIGNAL_H