add protection against truncated events + coverity - Rachid
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerElectronics.h
CommitLineData
916f1e76 1#ifndef ALIEMCALTRIGGERELECTRONICS_H
2#define ALIEMCALTRIGGERELECTRONICS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/*
7EMCal trigger electronics manager L0/L1
8can handle both simulated digits and raw data
9Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
10*/
11
12#ifndef ROOT_TObject
13# include "TObject.h"
14#endif
15#include "TClonesArray.h"
16
17class AliRawReader;
fff39dd1 18class AliEMCALTriggerDCSConfig;
916f1e76 19class TTree;
20class AliEMCALTriggerData;
21class AliEMCALTriggerSTU;
22class AliESDVZERO;
23class AliEMCALTriggerTRU;
24
25class AliEMCALTriggerElectronics : public TObject
26{
27public:
fff39dd1 28 AliEMCALTriggerElectronics(const AliEMCALTriggerDCSConfig* dcsConfig = 0x0); // ctor
916f1e76 29 virtual ~AliEMCALTriggerElectronics(); // dtor
30
de39a0ff 31 virtual void Digits2Trigger(TClonesArray* digits, const Int_t V0M[], AliEMCALTriggerData* data);
916f1e76 32 virtual void Reset();
33
34 virtual AliEMCALTriggerTRU* GetTRU( Int_t iTRU ) {return (AliEMCALTriggerTRU*)fTRU->At(iTRU);}
fff39dd1 35 virtual AliEMCALTriggerSTU* GetSTU( ) {return fSTU; }
916f1e76 36
37private:
38
39 AliEMCALTriggerElectronics(const AliEMCALTriggerElectronics& other); // Not implemented
40 AliEMCALTriggerElectronics& operator=(const AliEMCALTriggerElectronics& other); // Not implemented
41
42 TClonesArray* fTRU; // 32 TRU
43 AliEMCALTriggerSTU* fSTU; // 1 STU
44
45 ClassDef(AliEMCALTriggerElectronics,1)
46};
47
48#endif