]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRIGGER/AliTrigScheduledEntry.cxx
Fix compilation problems on Fedora (Laurent)
[u/mrichter/AliRoot.git] / TRIGGER / AliTrigScheduledEntry.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17 // Author: Andrei Gheata, 04/01/2010
18
19 #include "AliTrigScheduledEntry.h"
20
21 #include "AliTrigScheduler.h"
22 #include "AliTrigDevice.h"
23
24 ClassImp(AliTrigScheduledEntry)
25 //==============================================================================
26 //
27 //   AliTrigScheduledEntry - ABC for scheduled responses of a device that is
28 //                           able to fire-up single response functions or the 
29 //                           full device scheduled sequence. The start time is
30 //                           in arbitrary units and in case it is 0 will not be
31 //                           considered when ordering by time by schedulers.
32 // 
33 //==============================================================================
34
35 //______________________________________________________________________________
36 AliTrigScheduledEntry::AliTrigScheduledEntry(const char *name, AliTrigDevice *device, Int_t start)
37                       :TNamed(name,""), 
38                        fStartTime(start), 
39                        fDevice(device) 
40 {
41 // Default constructor. The only way to set the device.
42 }
43
44
45 ClassImp(AliTrigScheduledResponse)
46 //==============================================================================
47 //
48 //   AliTrigScheduledResponse - Scheduled device response function. Fires-up a
49 //                              single response function at a time.
50 //
51 //==============================================================================
52
53 //______________________________________________________________________________
54 AliTrigScheduledResponse::AliTrigScheduledResponse(const char *name, AliTrigDevice *device, Int_t output, Int_t start)
55                          :AliTrigScheduledEntry(name, device, start),
56                           fOutputID(output)
57 {
58 // Default constructor. The only way to set the device and response function.
59 }
60
61 //______________________________________________________________________________
62 void AliTrigScheduledResponse::FireUp(Int_t /*time*/)
63 {
64 // Virtual fire-up method. Calls the device response function.
65    fDevice->Response(fOutputID);
66 }
67
68 ClassImp(AliTrigScheduledDevice)
69 //==============================================================================
70 //
71 //   AliTrigScheduledDevice - Scheduled entry for a full device sequence. Invokes
72 //                            the device scheduler when firing-up.
73 //
74 //==============================================================================
75
76 //______________________________________________________________________________
77 AliTrigScheduledDevice::AliTrigScheduledDevice(const char *name, AliTrigDevice *device, Int_t start)
78                          :AliTrigScheduledEntry(name, device, start)
79 {
80 // Default constructor. The only way to set the device. Device scheduler must be set up.
81 }
82
83 //______________________________________________________________________________
84 void AliTrigScheduledDevice::FireUp(Int_t time)
85 {
86 // Virtual fire-up method. Calls the device response function.
87    fDevice->GetScheduler()->FireUp(time);
88 }