]>
Commit | Line | Data |
---|---|---|
e58e15dc | 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: AliTRDTriggerL0.cxx 31904 2009-04-08 16:42:03Z cblume $ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // TRD trigger L0 (pretrigger) simulation // | |
21 | // So far no real trigger decision is done. // | |
22 | // // | |
23 | /////////////////////////////////////////////////////////////////////////////// | |
24 | ||
25 | #include "TObjArray.h" | |
26 | ||
27 | #include "AliLog.h" | |
28 | #include "AliTriggerInput.h" | |
29 | #include "AliRunLoader.h" | |
30 | #include "AliLoader.h" | |
31 | ||
32 | #include "AliTRDTriggerL0.h" | |
e58e15dc | 33 | |
34 | AliTRDTriggerL0::AliTRDTriggerL0() | |
35 | { | |
36 | SetName("TRD"); | |
37 | } | |
38 | ||
39 | AliTRDTriggerL0::~AliTRDTriggerL0() | |
40 | { | |
41 | ||
42 | } | |
43 | ||
44 | void AliTRDTriggerL0::CreateInputs() | |
45 | { | |
46 | if (fInputs.GetEntriesFast() > 0) | |
47 | return; | |
48 | ||
e43b478f | 49 | fInputs.AddLast(new AliTriggerInput("0HMB", "TRD", 1)); // whatever should be there |
e58e15dc | 50 | } |
51 | ||
52 | void AliTRDTriggerL0::Trigger() | |
53 | { | |
54 | // just an example: | |
55 | AliRunLoader *runLoader = AliRunLoader::Instance(); | |
56 | if (!runLoader) | |
57 | return; | |
58 | AliLoader *trdLoader = runLoader->GetLoader("TRDLoader"); | |
59 | if (!trdLoader) | |
60 | return; | |
61 | ||
62 | // here comes the actual pretrigger simulation | |
63 | ||
64 | } |