]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG1/AliMCInfo.h
Changes to obey to the coding conventions (M. Lunardon)
[u/mrichter/AliRoot.git] / PWG1 / AliMCInfo.h
index b1f0b5c218cd9bd93c39cf34307f2069357609ea..c989da60c7f826e250249faf6784a1dc812f69f8 100644 (file)
@@ -25,9 +25,7 @@
 class TFile;
 class AliRunLoader;
 class AliStack;
-class AliTPCParam;
 
-const Int_t kgRowBytes = 32;
 
 class AliTPCdigitRow: public TObject {
 public:
@@ -36,13 +34,13 @@ public:
   void SetRow(Int_t row);
   Bool_t TestRow(Int_t row) const ;
   AliTPCdigitRow & operator=(const AliTPCdigitRow &digOld);
-  Int_t RowsOn(Int_t upto=8*kgRowBytes) const;
+  Int_t RowsOn(Int_t upto=8*32) const;
   Int_t Last() const;
   Int_t First() const ;
   void Reset();
 
 private:
-  UChar_t fDig[kgRowBytes];
+  UChar_t fDig[32];   // bitmask of the digits presence
   ClassDef(AliTPCdigitRow,1)  // container for digit pattern
 };
 
@@ -61,13 +59,16 @@ public:
   AliMCInfo();
   ~AliMCInfo();   
   AliMCInfo(const AliMCInfo& info);
+  AliMCInfo& operator=(const AliMCInfo& info);
+  void Update(TParticle * part, TClonesArray * arrayTr, Double_t pvertex[4], Int_t label);
+  void Clear(Option_t* = "");
+  //
   void Update();
   Int_t     GetEventNr() const   {return fEventNr;}
   const AliTrackReference&  GetTrackRef() const {return fTrackRef;}
   const AliTrackReference&  GetTrackRefOut() const {return fTrackRefOut;}
   const AliTrackReference&  GetTRdecay() const {return fTRdecay;} 
   TParticle& GetParticle()   {return fParticle;}
-  Float_t TPCBetheBloch(Float_t bg);
   //
   Int_t     GetPrimPart() const  {return fPrimPart;}
   Float_t   GetMass()   const    {return fMass;}                  
@@ -95,6 +96,7 @@ public:
   const TClonesArray * GetTRDReferences() const { return fTRDReferences;}  
   const TClonesArray * GetITSReferences() const { return fITSReferences;}  
   const TClonesArray * GetTOFReferences() const { return fTOFReferences;}  
+  void CalcTPCrows(TClonesArray *arrayTR);
 private:
   AliTrackReference  fTrackRef;      // track reference saved in the output tree
   AliTrackReference  fTrackRefOut;   // decay track reference saved in the output tree
@@ -103,7 +105,7 @@ private:
   Int_t     fPrimPart;               // index of primary particle in TreeH
   TParticle fParticle;               // generated particle 
   Float_t   fMass;                   // mass of the particle
-  Float_t   fCharge;                 //
+  Float_t   fCharge;                 // charge of the particle
   Int_t     fLabel;                  // track label
   Int_t     fEventNr;                // event number
   Int_t     fMCtracks;               // indication of how many times the track is retuturned back
@@ -111,21 +113,34 @@ private:
   Float_t fDecayCoord[3];            // position of particle decay
   Double_t fVDist[4];                //distance of the particle vertex from primary vertex
   Bool_t fTPCdecay;                  //indicates decay in TPC
+  //
+  // TPC row information using digits
   Int_t fRowsWithDigitsInn;          // number of rows with digits in the inner sectors
   Int_t fRowsWithDigits;             // number of rows with digits in the outer sectors
   Int_t fRowsTrackLength;            // last - first row with digit
+  //
+  // TPC track refernce information
+  Float_t fTPCtrackLength;           // distance between first and last track reference
+  //
   Float_t fPrim;                     // theoretical dedx in tpc according particle momenta and mass
   AliTPCdigitRow fTPCRow;                  // information about digits row pattern
+  //
   Int_t fNTPCRef;                    // tpc references counter
   Int_t fNITSRef;                    // ITS references counter
   Int_t fNTRDRef;                    // TRD references counter
   Int_t fNTOFRef;                    // TOF references counter
+  //
+  Int_t fNTPCRefOut;                    // tpc references counter - out
+  Int_t fNITSRefOut;                    // ITS references counter - out
+  Int_t fNTRDRefOut;                    // TRD references counter - out
+  Int_t fNTOFRefOut;                    // TOF references counter - out
+
   TClonesArray * fTPCReferences;     //containner with all track references -in the TPC
   TClonesArray * fITSReferences;     //container with ITS references
   TClonesArray * fTRDReferences;     //container with TRD references  
   TClonesArray * fTOFReferences;     //container with TRD references  
   //
-  ClassDef(AliMCInfo,1);  // container for 
+  ClassDef(AliMCInfo,2);  // container for 
 };