#ifndef ALIFMDMCTRACKINSPECTOR_H
#define ALIFMDMCTRACKINSPECTOR_H
#include "AliFMDEnergyFitter.h"
#include "AliFMDMCTrackELoss.h"
#include <TArrayF.h>
class AliMCEvent;
class AliESDEvent;
class AliFMDMCTrackInspector : public AliFMDEnergyFitter
{
public:
AliFMDMCTrackInspector();
AliFMDMCTrackInspector(const char* title);
virtual ~AliFMDMCTrackInspector();
virtual void CreateOutputObjects(TList* dir);
virtual Bool_t PreEvent(const AliMCEvent& mcInput);
virtual Bool_t Event(const AliESDEvent& esdInput,
const AliMCEvent& mcInput,
Double_t cent=-1);
virtual Bool_t PostEvent();
AliFMDMCTrackELoss& GetTracker() { return fTracker; }
const AliFMDMCTrackELoss& GetTracker() const { return fTracker; }
protected:
AliFMDMCTrackInspector(const AliFMDMCTrackInspector&);
AliFMDMCTrackInspector& operator=(const AliFMDMCTrackInspector&);
public:
struct RingHistos : public AliFMDEnergyFitter::RingHistos
{
RingHistos();
RingHistos(UShort_t d, Char_t r);
~RingHistos() {}
RingHistos(const RingHistos& o);
RingHistos& operator=(const RingHistos& o);
TArrayD MakeIncreasingAxis(Int_t nBins,
Double_t low,
Double_t high) const;
virtual void SetupForData(const TAxis& eAxis,
const TAxis& cAxis,
Double_t maxDE=10,
Int_t nDEbins=300,
Bool_t useIncrBin=true);
virtual void FillMC(UShort_t flag, Double_t eta, Double_t mult);
virtual void Scale(TH1* dist) const;
TObjArray* Fit(TList* dir,
Double_t lowCut,
UShort_t nParticles,
UShort_t minEntries,
UShort_t minusBins,
Double_t relErrorCut,
Double_t chi2nuCut,
Double_t minWeight,
Double_t regCut,
EResidualMethod residuals) const;
TH2* fPrimary;
TH2* fSecondary;
public:
TH2* fBetaGammadEdx;
TH2* fBetaGammaEta;
TH2* fDedxEta;
ClassDef(RingHistos,1);
};
protected:
AliFMDEnergyFitter::RingHistos* CreateRingHistos(UShort_t d, Char_t r) const;
AliFMDMCTrackELoss fTracker;
TArrayF fIp;
Int_t fNTrack;
Int_t fNPrimary;
ClassDef(AliFMDMCTrackInspector,1);
};
#endif
AliFMDMCTrackInspector.h:1 AliFMDMCTrackInspector.h:2 AliFMDMCTrackInspector.h:3 AliFMDMCTrackInspector.h:4 AliFMDMCTrackInspector.h:5 AliFMDMCTrackInspector.h:6 AliFMDMCTrackInspector.h:7 AliFMDMCTrackInspector.h:8 AliFMDMCTrackInspector.h:9 AliFMDMCTrackInspector.h:10 AliFMDMCTrackInspector.h:11 AliFMDMCTrackInspector.h:12 AliFMDMCTrackInspector.h:13 AliFMDMCTrackInspector.h:14 AliFMDMCTrackInspector.h:15 AliFMDMCTrackInspector.h:16 AliFMDMCTrackInspector.h:17 AliFMDMCTrackInspector.h:18 AliFMDMCTrackInspector.h:19 AliFMDMCTrackInspector.h:20 AliFMDMCTrackInspector.h:21 AliFMDMCTrackInspector.h:22 AliFMDMCTrackInspector.h:23 AliFMDMCTrackInspector.h:24 AliFMDMCTrackInspector.h:25 AliFMDMCTrackInspector.h:26 AliFMDMCTrackInspector.h:27 AliFMDMCTrackInspector.h:28 AliFMDMCTrackInspector.h:29 AliFMDMCTrackInspector.h:30 AliFMDMCTrackInspector.h:31 AliFMDMCTrackInspector.h:32 AliFMDMCTrackInspector.h:33 AliFMDMCTrackInspector.h:34 AliFMDMCTrackInspector.h:35 AliFMDMCTrackInspector.h:36 AliFMDMCTrackInspector.h:37 AliFMDMCTrackInspector.h:38 AliFMDMCTrackInspector.h:39 AliFMDMCTrackInspector.h:40 AliFMDMCTrackInspector.h:41 AliFMDMCTrackInspector.h:42 AliFMDMCTrackInspector.h:43 AliFMDMCTrackInspector.h:44 AliFMDMCTrackInspector.h:45 AliFMDMCTrackInspector.h:46 AliFMDMCTrackInspector.h:47 AliFMDMCTrackInspector.h:48 AliFMDMCTrackInspector.h:49 AliFMDMCTrackInspector.h:50 AliFMDMCTrackInspector.h:51 AliFMDMCTrackInspector.h:52 AliFMDMCTrackInspector.h:53 AliFMDMCTrackInspector.h:54 AliFMDMCTrackInspector.h:55 AliFMDMCTrackInspector.h:56 AliFMDMCTrackInspector.h:57 AliFMDMCTrackInspector.h:58 AliFMDMCTrackInspector.h:59 AliFMDMCTrackInspector.h:60 AliFMDMCTrackInspector.h:61 AliFMDMCTrackInspector.h:62 AliFMDMCTrackInspector.h:63 AliFMDMCTrackInspector.h:64 AliFMDMCTrackInspector.h:65 AliFMDMCTrackInspector.h:66 AliFMDMCTrackInspector.h:67 AliFMDMCTrackInspector.h:68 AliFMDMCTrackInspector.h:69 AliFMDMCTrackInspector.h:70 AliFMDMCTrackInspector.h:71 AliFMDMCTrackInspector.h:72 AliFMDMCTrackInspector.h:73 AliFMDMCTrackInspector.h:74 AliFMDMCTrackInspector.h:75 AliFMDMCTrackInspector.h:76 AliFMDMCTrackInspector.h:77 AliFMDMCTrackInspector.h:78 AliFMDMCTrackInspector.h:79 AliFMDMCTrackInspector.h:80 AliFMDMCTrackInspector.h:81 AliFMDMCTrackInspector.h:82 AliFMDMCTrackInspector.h:83 AliFMDMCTrackInspector.h:84 AliFMDMCTrackInspector.h:85 AliFMDMCTrackInspector.h:86 AliFMDMCTrackInspector.h:87 AliFMDMCTrackInspector.h:88 AliFMDMCTrackInspector.h:89 AliFMDMCTrackInspector.h:90 AliFMDMCTrackInspector.h:91 AliFMDMCTrackInspector.h:92 AliFMDMCTrackInspector.h:93 AliFMDMCTrackInspector.h:94 AliFMDMCTrackInspector.h:95 AliFMDMCTrackInspector.h:96 AliFMDMCTrackInspector.h:97 AliFMDMCTrackInspector.h:98 AliFMDMCTrackInspector.h:99 AliFMDMCTrackInspector.h:100 AliFMDMCTrackInspector.h:101 AliFMDMCTrackInspector.h:102 AliFMDMCTrackInspector.h:103 AliFMDMCTrackInspector.h:104 AliFMDMCTrackInspector.h:105 AliFMDMCTrackInspector.h:106 AliFMDMCTrackInspector.h:107 AliFMDMCTrackInspector.h:108 AliFMDMCTrackInspector.h:109 AliFMDMCTrackInspector.h:110 AliFMDMCTrackInspector.h:111 AliFMDMCTrackInspector.h:112 AliFMDMCTrackInspector.h:113 AliFMDMCTrackInspector.h:114 AliFMDMCTrackInspector.h:115 AliFMDMCTrackInspector.h:116 AliFMDMCTrackInspector.h:117 AliFMDMCTrackInspector.h:118 AliFMDMCTrackInspector.h:119 AliFMDMCTrackInspector.h:120 AliFMDMCTrackInspector.h:121 AliFMDMCTrackInspector.h:122 AliFMDMCTrackInspector.h:123 AliFMDMCTrackInspector.h:124 AliFMDMCTrackInspector.h:125 AliFMDMCTrackInspector.h:126 AliFMDMCTrackInspector.h:127 AliFMDMCTrackInspector.h:128 AliFMDMCTrackInspector.h:129 AliFMDMCTrackInspector.h:130 AliFMDMCTrackInspector.h:131 AliFMDMCTrackInspector.h:132 AliFMDMCTrackInspector.h:133 AliFMDMCTrackInspector.h:134 AliFMDMCTrackInspector.h:135 AliFMDMCTrackInspector.h:136 AliFMDMCTrackInspector.h:137 AliFMDMCTrackInspector.h:138 AliFMDMCTrackInspector.h:139 AliFMDMCTrackInspector.h:140 AliFMDMCTrackInspector.h:141 AliFMDMCTrackInspector.h:142 AliFMDMCTrackInspector.h:143 AliFMDMCTrackInspector.h:144 AliFMDMCTrackInspector.h:145 AliFMDMCTrackInspector.h:146 AliFMDMCTrackInspector.h:147 AliFMDMCTrackInspector.h:148 AliFMDMCTrackInspector.h:149 AliFMDMCTrackInspector.h:150 AliFMDMCTrackInspector.h:151 AliFMDMCTrackInspector.h:152 AliFMDMCTrackInspector.h:153 AliFMDMCTrackInspector.h:154 AliFMDMCTrackInspector.h:155 AliFMDMCTrackInspector.h:156 AliFMDMCTrackInspector.h:157 AliFMDMCTrackInspector.h:158 AliFMDMCTrackInspector.h:159 AliFMDMCTrackInspector.h:160 AliFMDMCTrackInspector.h:161 AliFMDMCTrackInspector.h:162 AliFMDMCTrackInspector.h:163 AliFMDMCTrackInspector.h:164 AliFMDMCTrackInspector.h:165 AliFMDMCTrackInspector.h:166 AliFMDMCTrackInspector.h:167 AliFMDMCTrackInspector.h:168 AliFMDMCTrackInspector.h:169 AliFMDMCTrackInspector.h:170 AliFMDMCTrackInspector.h:171 AliFMDMCTrackInspector.h:172 AliFMDMCTrackInspector.h:173 AliFMDMCTrackInspector.h:174 AliFMDMCTrackInspector.h:175 AliFMDMCTrackInspector.h:176 AliFMDMCTrackInspector.h:177 AliFMDMCTrackInspector.h:178 AliFMDMCTrackInspector.h:179 AliFMDMCTrackInspector.h:180 AliFMDMCTrackInspector.h:181 AliFMDMCTrackInspector.h:182 AliFMDMCTrackInspector.h:183 AliFMDMCTrackInspector.h:184 AliFMDMCTrackInspector.h:185 AliFMDMCTrackInspector.h:186 AliFMDMCTrackInspector.h:187 AliFMDMCTrackInspector.h:188 AliFMDMCTrackInspector.h:189 AliFMDMCTrackInspector.h:190 AliFMDMCTrackInspector.h:191 AliFMDMCTrackInspector.h:192 AliFMDMCTrackInspector.h:193 AliFMDMCTrackInspector.h:194 AliFMDMCTrackInspector.h:195 AliFMDMCTrackInspector.h:196 AliFMDMCTrackInspector.h:197 AliFMDMCTrackInspector.h:198 AliFMDMCTrackInspector.h:199 AliFMDMCTrackInspector.h:200 AliFMDMCTrackInspector.h:201 AliFMDMCTrackInspector.h:202 AliFMDMCTrackInspector.h:203 AliFMDMCTrackInspector.h:204 AliFMDMCTrackInspector.h:205 AliFMDMCTrackInspector.h:206 AliFMDMCTrackInspector.h:207 AliFMDMCTrackInspector.h:208 AliFMDMCTrackInspector.h:209 AliFMDMCTrackInspector.h:210 AliFMDMCTrackInspector.h:211 AliFMDMCTrackInspector.h:212 AliFMDMCTrackInspector.h:213 AliFMDMCTrackInspector.h:214 AliFMDMCTrackInspector.h:215 AliFMDMCTrackInspector.h:216 AliFMDMCTrackInspector.h:217 AliFMDMCTrackInspector.h:218 AliFMDMCTrackInspector.h:219 AliFMDMCTrackInspector.h:220 AliFMDMCTrackInspector.h:221 AliFMDMCTrackInspector.h:222 AliFMDMCTrackInspector.h:223 AliFMDMCTrackInspector.h:224 AliFMDMCTrackInspector.h:225 AliFMDMCTrackInspector.h:226 AliFMDMCTrackInspector.h:227 AliFMDMCTrackInspector.h:228 AliFMDMCTrackInspector.h:229 AliFMDMCTrackInspector.h:230