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