]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding conventions (C.Finck)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Apr 2005 05:41:19 +0000 (05:41 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Apr 2005 05:41:19 +0000 (05:41 +0000)
ANALYSIS/AliMuonAnalysis.cxx
ANALYSIS/AliMuonAnalysis.h

index 262dd1a39cb2e54264892e1e898ff40a937450b2..71c1a8e07aa989980a276dc34aac5fdbd94d530a 100644 (file)
@@ -50,13 +50,13 @@ AliMuonAnalysis::~AliMuonAnalysis()
   delete fHRapMuon;
   delete fHRapResonance;
   delete fHPtResonance;
-  delete fHInvMassAll_vs_Pt;
+  delete fHInvMassAllvsPt;
 }
 /*********************************************************/
 
 Int_t AliMuonAnalysis::Init()
 {
-  //Initilizes anaysis
+  //Initilizes analysis
   Info("Init","Histo initialized for MUON Analysis");
 
   fHistoFile         = new TFile("MUONmassPlot.root", "RECREATE");
@@ -68,7 +68,7 @@ Int_t AliMuonAnalysis::Init()
   fHRapMuon          = new TH1F("hRapMuon"," Muon Rapidity",50,-4.5,-2);
   fHRapResonance     = new TH1F("hRapResonance"," Resonance Rapidity",50,-4.5,-2);
   fHPtResonance      = new TH1F("hPtResonance", "Resonance Pt (GeV/c)", 100, 0., 20.);
-  fHInvMassAll_vs_Pt = new TH2F("hInvMassAll_vs_Pt","hInvMassAll_vs_Pt",480,0.,12.,80,0.,20.);
+  fHInvMassAllvsPt = new TH2F("hInvMassAll_vs_Pt","hInvMassAll_vs_Pt",480,0.,12.,80,0.,20.);
 
   return 0; 
 }
@@ -76,7 +76,9 @@ Int_t AliMuonAnalysis::Init()
 
 Int_t AliMuonAnalysis::ProcessEvent(AliAOD* aodrec, AliAOD* aodsim)
 {
+  //
+  // process the event
+  // 
   if (aodrec) {
     GetInvMass(aodrec);
     //    Info("ProcessEvent","Inv Mass Rec");
@@ -106,7 +108,9 @@ Int_t AliMuonAnalysis::Finish()
 
 void AliMuonAnalysis::GetInvMass(AliAOD* aod)
 {
-
+  // get the invariant mass distribution
+  // from the oad events
   TLorentzVector lorV1, lorV2, lorVtot;
   Float_t massMin = 9.17;
   Float_t massMax = 9.77;
@@ -162,7 +166,7 @@ void AliMuonAnalysis::GetInvMass(AliAOD* aod)
        Float_t invMass = lorVtot.M();
 
        fHInvMassAll->Fill(invMass);
-       fHInvMassAll_vs_Pt->Fill(invMass,lorVtot.Pt());
+       fHInvMassAllvsPt->Fill(invMass,lorVtot.Pt());
 
        if (invMass > massMin && invMass < massMax) {
          fHRapResonance->Fill(lorVtot.Rapidity());
index 97bb6dcde999341ce5fc9d3fc796026ed76ccf90..d831b143481b6c52bc8569a892f66d0aab9fe19c 100644 (file)
@@ -41,16 +41,16 @@ class AliMuonAnalysis: public AliAnalysis
     
   private:
 
-    TFile *fHistoFile;
-    TH1F *fHPtMuon;
-    TH1F *fHPtMuonPlus;
-    TH1F *fHPtMuonMinus;
-    TH1F *fHPMuon;
-    TH1F *fHInvMassAll;
-    TH1F *fHRapMuon;
-    TH1F *fHRapResonance;
-    TH1F *fHPtResonance;
-    TH2F *fHInvMassAll_vs_Pt;
+    TFile *fHistoFile;         // histogramm file pointer
+    TH1F *fHPtMuon;            // Muon Pt distribution
+    TH1F *fHPtMuonPlus;        // Muon Plus Pt distribution
+    TH1F *fHPtMuonMinus;       // Muon Minus Pt distribution
+    TH1F *fHPMuon;             // Muon momentum distribution
+    TH1F *fHInvMassAll;        // Invariant mass distribution
+    TH1F *fHRapMuon;           // Muon rapidity distribution
+    TH1F *fHRapResonance;      // Muon rapidity distribution around resonance
+    TH1F *fHPtResonance;       // Muon Pt distribution around resonance
+    TH2F *fHInvMassAllvsPt;    // Invariant mass vs Pt distribution
 
     AliAODParticleCut* fPartCut;//Particle Cut
     ClassDef(AliMuonAnalysis,1)