]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add protection on the array of selected events (owned by AliMuonEventCuts) (Diego)
authorscompar <scompar@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Mar 2013 18:00:35 +0000 (18:00 +0000)
committerscompar <scompar@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Mar 2013 18:00:35 +0000 (18:00 +0000)
PWG/muon/AliMuonEventCuts.cxx
PWG/muon/AliMuonEventCuts.h
PWG/muon/AliVAnalysisMuon.cxx

index f2185ab2a5db2784a51ae97f15f74d80c781d5e7..a66734016f2689c6b1139a1c4de5cb9804961d65 100644 (file)
@@ -544,7 +544,7 @@ void AliMuonEventCuts::SetDefaultTrigInputsMap ()
 }
 
 //________________________________________________________________________
-TObjArray* AliMuonEventCuts::GetSelectedTrigClassesInEvent( const AliVEvent* event )
+const TObjArray* AliMuonEventCuts::GetSelectedTrigClassesInEvent( const AliVEvent* event )
 {
   /// Return the selected trigger classes in the current event
   UpdateEvent(event);
index 449dabf74725ce260737f4e9fbd205403b97cfeb..f7dbb28ee63b64485da1c5487190484759b99035 100644 (file)
@@ -46,7 +46,7 @@ class AliMuonEventCuts : public AliAnalysisCuts
   void SetTrigInputsMap ( const TString trigInputsMap );
   /// Get trigger classes found in run
   TList* GetAllSelectedTrigClasses () const { return fAllSelectedTrigClasses; }
-  TObjArray* GetSelectedTrigClassesInEvent ( const AliVEvent* event );
+  const TObjArray* GetSelectedTrigClassesInEvent ( const AliVEvent* event );
 
   
   // Handle centrality
index 0c829331104e008ef2a9a512d1d3c96b54ab9e3b..4b35d860613e1231d3f766d1160d3aff84cd9f8d 100644 (file)
@@ -312,7 +312,7 @@ void AliVAnalysisMuon::UserExec(Option_t * /*option*/)
   //
   // Global event info
   //
-  TObjArray* selectTrigClasses = fMuonEventCuts->GetSelectedTrigClassesInEvent(InputEvent());
+  const TObjArray* selectTrigClasses = fMuonEventCuts->GetSelectedTrigClassesInEvent(InputEvent());
 
   Double_t centrality = fMuonEventCuts->GetCentrality(InputEvent());
   Int_t centralityBin = GetCentralityClasses()->FindBin(centrality);