-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAliAnalysisTaskMyTask.h
64 lines (48 loc) · 2.94 KB
/
AliAnalysisTaskMyTask.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. */
/* See cxx source for full Copyright notice */
/* $Id$ */
#ifndef AliAnalysisTaskMyTask_H
#define AliAnalysisTaskMyTask_H
const std::string TAB(" ");
class AliAnalysisTaskMyTask : public AliAnalysisTaskSE
{
public:
AliAnalysisTaskMyTask();
AliAnalysisTaskMyTask(const char *name);
virtual ~AliAnalysisTaskMyTask();
virtual void UserCreateOutputObjects();
Bool_t UserNotify();
virtual void UserExec(Option_t* option);
virtual void Terminate(Option_t* option);
void PrintTrdTrackletArray(AliESDEvent * fESD, std::string indent);
void PrintTrdTracklet(AliESDTrdTracklet * fESDtracklet, std::string indent);
void PrintTrdTrackArray(AliESDEvent * fESD, std::string indent);
void PrintTracks(AliESDEvent * fESD);
void PrintEsdTrack(AliESDtrack* track, std::string indent);
const char* fOutputPath; //! Path to folder on disk where output will be generated
const char* fOutputRelativeFolder; //! Relative path that will be referenced in AJAX requests
const char* fOutputName; //! Output name that will be used for the .js file and .json output folder
TString fDigitsInputFileName; //! Name of digits file for reading
Bool_t fExportEsdTracks; // Flag determining whether ESD tracks should also be exported, rather than just TRD tracks
private:
Bool_t ReadDigits();
AliESDEvent* fESD; //! input event
TList* fOutputList; //! output list
TH2F* fHistPt; //! dummy histogram
TNtuple* fTracklet; //! dummy histogram
ofstream* summary; //! summary output text file
int eventCount; //! indicator for output comma appends
Double_t minY, maxY;
Bool_t usedDetectors[540];
map<AliESDTrdTracklet *, Int_t> * mp;
map<AliESDTrdTracklet *, TString> * fTrackletMap;
AliTRDdigitsManager* fDigMan; //! digits manager
AliTRDgeometry* fGeo; //! TRD geometry
TFile* OpenDigitsFile(TString inputfile, TString digfile, TString opt);
TFile* fDigitsInputFile; //! Digits file for reading
Int_t fEventNoInFile;
AliAnalysisTaskMyTask(const AliAnalysisTaskMyTask&); // not implemented
AliAnalysisTaskMyTask& operator=(const AliAnalysisTaskMyTask&); // not implemented
ClassDef(AliAnalysisTaskMyTask, 1);
};
#endif