#define CHENTRIES 500 // number of entries per TOF channel per run
// (to be divided by 5 to get the
// real number of entries), bigarray
-#define CHENTRIESSMALL 300 // number of entries per TOF channel per run
- // (to be divided by 3 to get the
- // real number of entries), smallarray
#define LOWERMOMBOUND 1.0 // [GeV/c] default value Pb-Pb
#define UPPERMOMBOUND 1.8 // [GeV/c] default value Pb-Pb
#define MINTIME 5 // min delta time of flight value (ns)
#define TRACKERROR 90*1E-3 // error on the tracks for
// Combinatorial PID (ns)
-#include "AliAnalysisTask.h"
+#include "AliAnalysisTaskSE.h"
class TTree;
class AliESDtrack ;
class TH1D ;
class TH2F ;
class AliESDEvent ;
+class TList ;
+class AliTOFArray;
-class AliTOFCalibTask : public AliAnalysisTask {
+class AliTOFCalibTask : public AliAnalysisTaskSE {
public:
- AliTOFCalibTask(const char *name) ; //ctor
+ // AliTOFCalibTask() ; //ctor
+ AliTOFCalibTask(const char *name = "TOFCalibTask") ; //ctor
AliTOFCalibTask(const AliTOFCalibTask & calibtask); // copy constructor
AliTOFCalibTask& operator=(const AliTOFCalibTask & calibtask); // assignment operator
virtual ~AliTOFCalibTask(); //dtor
- virtual void Exec(Option_t * opt="") ;
- virtual void ConnectInputData(Option_t *) ;
- virtual void CreateOutputObjects();
+ virtual void UserExec(Option_t * opt="") ;
+ virtual void UserCreateOutputObjects();
virtual void Terminate(Option_t * opt = "") ;
- virtual Bool_t Notify();
- void SetRun(Int_t irun){frun=irun;}
- Int_t GetRun() const {return frun;}
private:
- Bool_t Select(AliESDtrack *t);
- Int_t SelectOnTime(Float_t *charray, Int_t ntracks, Int_t ich);
- Bool_t CombPID(Float_t *smallarray, Int_t size);
- void BookHistos();
- void DrawHistos();
+ Bool_t Select(AliESDtrack *t);
+ Int_t SelectOnTime(Float_t *charray, Int_t ntracks, Int_t ich);
+ Bool_t CombPID(Float_t *smallarray, Int_t size);
+ void BookHistos();
+ void DrawHistos();
Float_t LoopCombPID(Int_t itrkinset, Int_t ntrkinset, Float_t **exptof, Float_t *texp, Float_t *timeofflight, Int_t *index, Float_t chisquarebest);
- const Char_t *fdir; // initial directory
- TTree* fChain ; //!pointer to the analyzed TTree or TChain
//leaf types
AliESDEvent* fESD ; //! Declaration of leave types
Float_t fToT; // Time over Threshold, ns
Float_t fExpTimeKa; // exp time, Kaons, ns
Float_t fExpTimePr; // exp time, Protons, ns
Float_t fMinTime; // min TOF time for track selection; not used
- Float_t** fbigarray; // big array for calibration
- Int_t* findexarray; // array for entry index in each channel
+ AliTOFArray* fTOFArray; //! object for TOF signal, arranged per channel
Int_t fnESD; // number of analyzed ESD tracks
Int_t fnESDselected; // number of selected ESD tracks
Int_t fnESDkTOFout; // number of ESD tracks with kTOFout
TH1F* fhExpTimePr; // Exp Time Pr histo
TH1I* fhPID; // PID histo
TH1D* fhch; // TOF channel histo
+ TH1I* fhESD; // n. of analyzed histo
+ TH1I* fhESDselected; // n. of selected ESD tracks histo
+ TH1I* fhESDkTOFout; // n. of ESD tracks with kTOFout histo
+ TH1I* fhESDkTIME; // n. of ESD tracks with kTIME histo
+ TH1I* fhESDassTOFcl; // n. of ESD tracks with assTOFcl histo
+ TH1I* fhESDTIMEcut; // n. of ESD tracks with TIMEcut histo
+ TH1I* fhESDTRDcut; // n. of ESD tracks with TRDcut histo
- TObjArray * fOutputContainer ; //! output data container
- Int_t frun; // number of current run
Int_t fassparticle[11]; // array for assigned identities
+ TList *fListOfHistos; //! list of Histos to be stored in the output container 1
+ TList *fListArray; //! list of Array for output container 2
+
ClassDef(AliTOFCalibTask, 2); // TOF Calib task
};
#endif // ALITOFCALIBTASK_H