]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZEROLogicalSignal.h
- Add simple QA to the trigger patch maker and set the default to
[u/mrichter/AliRoot.git] / VZERO / AliVZEROLogicalSignal.h
CommitLineData
a65a7e70 1#ifndef ALIVZEROLOGICALSIGNAL_H
2#define ALIVZEROLOGICALSIGNAL_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * See cxx source for full Copyright notice
7 */
8
9
10//
11// Class AliVZEROLogicalSignal
12// ---------------------------
13// Describes a logical signal in the electronics.
14// Use it to generate observation windows
15// which are used by AliVZEROTriggerSimulator class
16//
17
18
19#include <TObject.h>
20
21class AliVZEROLogicalSignal : public TObject {
22public:
23 AliVZEROLogicalSignal();
24 AliVZEROLogicalSignal(UShort_t profilClock, UInt_t delay);
25 virtual ~AliVZEROLogicalSignal();
26 AliVZEROLogicalSignal(const AliVZEROLogicalSignal &signal);
27 AliVZEROLogicalSignal& operator= (const AliVZEROLogicalSignal &signal);
28 AliVZEROLogicalSignal operator& (const AliVZEROLogicalSignal &signal) const;
29 AliVZEROLogicalSignal operator| (const AliVZEROLogicalSignal &signal) const;
30 // Print method
31 virtual void Print(Option_t* opt="") const { AliInfo(Form("\t%s -> Start %f Stop %f\n ",opt,fStart,fStop));}
32
33 Float_t GetStartTime() const {return fStart;};
34 Float_t GetStopTime() const {return fStop;};
35 Float_t GetWidth() const {return (fStop - fStart);};
36
37 void SetStartTime(Float_t time){fStart = time;};
38 void SetStopTime(Float_t time){fStop = time;};
39
40 Bool_t IsInCoincidence(Float_t time) const;
41
42private:
43
44 Float_t fStart; // Start Time of the signal with respect to the LHC Clock
45 Float_t fStop; // Stop Time of the signal with respect to the LHC Clock
46
47
48 ClassDef( AliVZEROLogicalSignal, 1 )
49
50};
51
52#endif // ALIVZEROLOGICALSIGNAL_H
53
54