X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSTrackleterSPDEff.h;h=e08d4f1362ce70b6e85ada5ba904de3aa641f1fd;hb=69c15b90395b1f5ea4d9e396be14c2cc1f1ff5b1;hp=268bca4cb202186d63962316e013f27d7e6671ab;hpb=17d531c25b29e629885c8e84566cbcd72a87e322;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSTrackleterSPDEff.h b/ITS/AliITSTrackleterSPDEff.h index 268bca4cb20..e08d4f1362c 100644 --- a/ITS/AliITSTrackleterSPDEff.h +++ b/ITS/AliITSTrackleterSPDEff.h @@ -26,16 +26,19 @@ class AliStack; class TTree; class TH1F; class TH2F; +class AliPlaneEff; + #include "AliTracker.h" #include "AliITSPlaneEffSPD.h" -#include "AliPlaneEff.h" + +using std::istream; class AliITSTrackleterSPDEff : public AliTracker { public: AliITSTrackleterSPDEff(); virtual ~AliITSTrackleterSPDEff(); - Int_t Clusters2Tracks(AliESDEvent *); + Int_t Clusters2Tracks(AliESDEvent *esd); Int_t PostProcess(AliESDEvent *); virtual Int_t PropagateBack(AliESDEvent*) {return 0;} @@ -45,22 +48,27 @@ public: virtual AliCluster *GetCluster(Int_t) const {return NULL;} // Main method to perform the trackleter and the SPD efficiency evaluation - void Reconstruct(AliStack* pStack=0x0, TTree* tRef=0x0); - - void SetReflectClusterAroundZAxisForLayer(Int_t ilayer,Bool_t b=kTRUE){ // method to study residual background: - if(b) AliInfo(Form("All clusters on layer %d will be rotated by 180 deg around z",ilayer)); - if(ilayer==0) fReflectClusterAroundZAxisForLayer0=b; // a rotation by 180degree around the Z axis - else if(ilayer==1) fReflectClusterAroundZAxisForLayer1=b; // (x->-x; y->-y) to all RecPoints on a - else AliInfo("Nothing done: input argument (ilayer) either 0 or 1"); // given layer is applied. In such a way - } // you remove all the true tracklets. + void Reconstruct(AliStack* pStack=0x0, TTree* tRef=0x0, Bool_t lbkg=kFALSE); + void SetReflectClusterAroundZAxisForLayer(Int_t ilayer,Bool_t b=kTRUE); // method to study residual background: + // a rotation by 180degree around the Z axis + // (x->-x; y->-y) to all RecPoints on a + // given layer is applied. In such a way + // you remove all the true tracklets. + void SetLightBkgStudyInParallel(Bool_t b = kTRUE); // if you set this on, then the estimation of the + // SPD efficiency is done as usual for data, but in + // parallel a light (i.e. without control histograms, etc.) + // evaluation of combinatorial background is performed + // with the usual ReflectClusterAroundZAxisForLayer method. + Bool_t GetLightBkgStudyInParallel() const {return fLightBkgStudyInParallel;} void SetOnlyOneTrackletPerC2(Bool_t b = kTRUE) {fOnlyOneTrackletPerC2 = b;} - void SetPhiWindow(Float_t w=0.08) {fPhiWindow=w;} - void SetZetaWindow(Float_t w=1.) {fZetaWindow=w;} + void SetPhiWindowL2(Float_t w=0.08) {fPhiWindowL2=w;} + void SetZetaWindowL2(Float_t w=1.) {fZetaWindowL2=w;} void SetPhiWindowL1(Float_t w=0.08) {fPhiWindowL1=w;} // method to set the cuts in the interpolation void SetZetaWindowL1(Float_t w=1.) {fZetaWindowL1=w;} // phase; use method of the base class for extrap. void SetOnlyOneTrackletPerC1(Bool_t b = kTRUE) {fOnlyOneTrackletPerC1 = b;} // as in the base class but + void SetMinContVtx(Int_t min=3) {fMinContVtx=min;} // set minimum n. of contributors to vertex Int_t GetNClustersLayer1() const {return fNClustersLay1;} Int_t GetNClustersLayer2() const {return fNClustersLay2;} @@ -163,8 +171,8 @@ protected: // Following members are set via AliITSRecoParam Bool_t fOnlyOneTrackletPerC2; // Allow only one tracklet per cluster in the outer layer - Float_t fPhiWindow; // Search window in phi - Float_t fZetaWindow; // Search window in eta + Float_t fPhiWindowL2; // Search window in phi + Float_t fZetaWindowL2; // Search window in eta Float_t fPhiOverlapCut; // Fiducial window in phi for overlap cut Float_t fZetaOverlapCut; // Fiducial window in eta for overlap cut @@ -199,13 +207,17 @@ protected: Float_t fZetaWindowL1; // SEarch window in zeta (Layer 1) Bool_t fOnlyOneTrackletPerC1; // only one tracklet per cluster in L. 1 Bool_t fUpdateOncePerEventPlaneEff; // If this is kTRUE, then you can update the chip efficiency only once + Int_t fMinContVtx; // minimum number of contributors (tracklets) to the vertex for the event to be used // per event in that chip. This to avoid double counting from the // same tracklets which has two rec-points on one layer. Bool_t* fChipUpdatedInEvent; //! boolean (chip by chip) to flag which chip has been updated its efficiency // in that event AliITSPlaneEffSPD* fPlaneEffSPD; //! pointer to SPD plane efficiency class + AliITSPlaneEffSPD* fPlaneEffBkg; //! pointer to SPD plane efficiency class for background evaluation Bool_t fReflectClusterAroundZAxisForLayer0; // if kTRUE, then a 180degree rotation around Z is applied to all Bool_t fReflectClusterAroundZAxisForLayer1; // clusters on that layer (x->-x; y->-y) + Bool_t fLightBkgStudyInParallel; // if this is kTRUE, the basic and correct evaluation of background is performed + // in paralell to standard SPD efficiency evaluation Bool_t fMC; // Boolean to access Kinematics (only for MC events ) Bool_t fUseOnlyPrimaryForPred; // Only for MC: if this is true, build tracklet prediction using only primary particles Bool_t fUseOnlySecondaryForPred; // Only for MC: if this is true build tracklet prediction using only secondary particles @@ -244,15 +256,16 @@ protected: TH2F** fhClustersInModuleLay1; //! distribution of cluster in the module Lay 1 (sub-chip scale) TH2F** fhClustersInModuleLay2; //! distribution of cluster in the module Lay 2 (sub-chip scale) // + void Init(); // initialize pointers and allocate memory Double_t GetRLayer(Int_t layer); // return average radius of layer (0,1) from Geometry Bool_t PrimaryTrackChecker(Int_t ipart,AliStack* stack=0x0); // check if a MC particle is primary (need AliStack) Int_t DecayingTrackChecker(Int_t ipart,AliStack* stack=0x0); // For a primary particle, check if it is stable (see cxx) // check if a MC particle is reconstructable - Bool_t IsReconstructableAt(Int_t layer,Int_t iC,Int_t ipart,Float_t* vtx,AliStack* stack=0x0,TTree* ref=0x0); + Bool_t IsReconstructableAt(Int_t layer,Int_t iC,Int_t ipart,const Float_t* vtx,const AliStack* stack=0x0,TTree* ref=0x0); void InitPredictionMC(); // allocate memory for cuts and MC data memebers void DeletePredictionMC(); // deallocate memory // method to locate a chip using current vtx and polar coordinate od tracklet w.r.t. to vtx (zVtx may not be given) - Bool_t FindChip(UInt_t &key, Int_t layer, Float_t* vtx, Float_t thetaVtx, Float_t phiVtx, Float_t zVtx=999.); + Bool_t FindChip(UInt_t &key, Int_t layer,const Float_t* vtx, Float_t thetaVtx, Float_t phiVtx, Float_t zVtx=999.); // method to transform from Global Cilindrical coordinate to local (module) Cartesian coordinate Bool_t FromGloCilToLocCart(Int_t ilayer,Int_t idet, Double_t r, Double_t phi, Double_t z, Float_t &xloc, Float_t &zloc); @@ -261,8 +274,8 @@ protected: // this method gives you the intersections between a line and a circle (centred in the origin) // using polar coordinates Bool_t FindIntersectionPolar(Double_t vtx[2],Double_t phiVtx, Double_t R,Double_t &phi); - Bool_t SetAngleRange02Pi(Double_t &angle); // set the range of angle in [0,2pi[ - Bool_t SetAngleRange02Pi(Float_t &angle) + Bool_t SetAngleRange02Pi(Double_t &angle) const; // set the range of angle in [0,2pi[ + Bool_t SetAngleRange02Pi(Float_t &angle) const {Double_t tmp=(Double_t)angle; Bool_t ret=SetAngleRange02Pi(tmp);angle=(Float_t)tmp;return ret;}; void CallWarningMC() const {if(!fMC) AliWarning("You can use this method only for MC! Call SetMC() first");} Bool_t SaveHists(); @@ -273,9 +286,10 @@ protected: void LoadClusterArrays(TTree* tree); - ClassDef(AliITSTrackleterSPDEff,4) + ClassDef(AliITSTrackleterSPDEff,6) }; // Input and output function for standard C++ input/output (for the cut values and MC statistics). ostream &operator<<(ostream &os,const AliITSTrackleterSPDEff &s); istream &operator>>(istream &is, AliITSTrackleterSPDEff &s); #endif +