AliPhysics  31210d0 (31210d0)
AliAnalysisTaskEmcalTriggerTreeWriter.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 /*
4  * A small task dumping all EMCal trigger related information into a TTree
5  * Author: Markus Fasel
6  */
7 
8 #ifndef ALIANALYSISTASKEMCALTRIGGERTREEWRITER_H_
9 #define ALIANALYSISTASKEMCALTRIGGERTREEWRITER_H_
10 
11 #include "AliAnalysisTaskSE.h"
12 
13 class TTree;
14 
16 public:
18  AliAnalysisTaskEmcalTriggerTreeWriter(const char *name);
20 
21  virtual void UserCreateOutputObjects();
22  virtual void UserExec(Option_t *);
23 
24 private:
25  struct TriggerInfo{
37 
39  fRun(0),
40  fCol(0), fRow(0),
41  fNL0Times(0), fADC(0), fAmplitude(0.),
42  fTime(0), fTriggerBits(0), fL1Threshold(0), fL1V0(0)
43  {
44  memset(fLevel0Times, 0, sizeof(Int_t) * 10);
45  }
46  void Reset(){
47  fRun = 0; fCol = 0; fRow = 0;
48  fNL0Times = 0; fADC = 0; fAmplitude = 0.;
49  fTime = 0.; fTriggerBits = 0; fL1Threshold = 0; fL1V0 = 0;
50  memset(fLevel0Times, 0, sizeof(Int_t) * 10);
51  }
52  };
54  TriggerInfo fOutputInfo; // Track Info for the tree
55 
57 };
58 
59 #endif /* ALIANALYSISTASKEMCALTRIGGERTREEWRITER_H_ */
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
const char Option_t
Definition: External.C:48