]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/VZERObase/AliVZEROLogicalSignal.h
Adding macros to create Calibration objects
[u/mrichter/AliRoot.git] / VZERO / VZERObase / 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>
17f9c1f8 20#include <AliLog.h>
a65a7e70 21
22class AliVZEROLogicalSignal : public TObject {
23public:
24 AliVZEROLogicalSignal();
25 AliVZEROLogicalSignal(UShort_t profilClock, UInt_t delay);
26 virtual ~AliVZEROLogicalSignal();
27 AliVZEROLogicalSignal(const AliVZEROLogicalSignal &signal);
28 AliVZEROLogicalSignal& operator= (const AliVZEROLogicalSignal &signal);
29 AliVZEROLogicalSignal operator& (const AliVZEROLogicalSignal &signal) const;
30 AliVZEROLogicalSignal operator| (const AliVZEROLogicalSignal &signal) const;
31 // Print method
32 virtual void Print(Option_t* opt="") const { AliInfo(Form("\t%s -> Start %f Stop %f\n ",opt,fStart,fStop));}
33
34 Float_t GetStartTime() const {return fStart;};
35 Float_t GetStopTime() const {return fStop;};
36 Float_t GetWidth() const {return (fStop - fStart);};
37
38 void SetStartTime(Float_t time){fStart = time;};
39 void SetStopTime(Float_t time){fStop = time;};
40
41 Bool_t IsInCoincidence(Float_t time) const;
42
43private:
44
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
47
48
49 ClassDef( AliVZEROLogicalSignal, 1 )
50
51};
52
53#endif // ALIVZEROLOGICALSIGNAL_H
54
55