]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDTriggerL0.cxx
Reintroduce header files
[u/mrichter/AliRoot.git] / TRD / AliTRDTriggerL0.cxx
CommitLineData
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"
33#include "AliTRDgtuSim.h"
34#include "AliTRDtrackGTU.h"
35
36AliTRDTriggerL0::AliTRDTriggerL0()
37{
38 SetName("TRD");
39}
40
41AliTRDTriggerL0::~AliTRDTriggerL0()
42{
43
44}
45
46void AliTRDTriggerL0::CreateInputs()
47{
48 if (fInputs.GetEntriesFast() > 0)
49 return;
50
e43b478f 51 fInputs.AddLast(new AliTriggerInput("0HMB", "TRD", 1)); // whatever should be there
e58e15dc 52}
53
54void AliTRDTriggerL0::Trigger()
55{
56 // just an example:
57 AliRunLoader *runLoader = AliRunLoader::Instance();
58 if (!runLoader)
59 return;
60 AliLoader *trdLoader = runLoader->GetLoader("TRDLoader");
61 if (!trdLoader)
62 return;
63
64 // here comes the actual pretrigger simulation
65
66}