]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixed AliChaoticity (streaming problems + cout)
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jul 2012 14:34:39 +0000 (14:34 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jul 2012 14:34:39 +0000 (14:34 +0000)
PWGCF/FEMTOSCOPY/Chaoticity/AliChaoticity.cxx
PWGCF/FEMTOSCOPY/Chaoticity/AliChaoticity.h

index c0f5e695805c9c76b0152a75aef62de277d67cb3..8ec63871190aa799ca510336c6b5a295915cc279 100644 (file)
@@ -44,7 +44,7 @@ AliChaoticity::AliChaoticity():
 AliAnalysisTaskSE(),
   fname(0),
   fAOD(0x0), 
-  fESD(0x0), 
+//fESD(0x0), 
   fOutputList(0x0),
   fPIDResponse(0x0),
   fEC(0x0),
@@ -183,7 +183,7 @@ AliChaoticity::AliChaoticity(const Char_t *name, Bool_t MCdecision, Bool_t Tabul
 : AliAnalysisTaskSE(name), 
   fname(name),
   fAOD(0x0), 
-  fESD(0x0), 
+  //fESD(0x0), 
   fOutputList(0x0),
   fPIDResponse(0x0),
   fEC(0x0),
@@ -334,7 +334,7 @@ AliChaoticity::AliChaoticity(const AliChaoticity &obj)
   : AliAnalysisTaskSE(obj.fname),
     fname(obj.fname),
     fAOD(obj.fAOD), 
-    fESD(obj.fESD), 
+    //fESD(obj.fESD), 
     fOutputList(obj.fOutputList),
     fPIDResponse(obj.fPIDResponse),
     fEC(obj.fEC),
@@ -432,7 +432,7 @@ AliChaoticity &AliChaoticity::operator=(const AliChaoticity &obj)
 
   fname = obj.fname;
   fAOD = obj.fAOD; 
-  fESD = obj.fESD; 
+  //fESD = obj.fESD; 
   fOutputList = obj.fOutputList;
   fPIDResponse = obj.fPIDResponse;
   fEC = obj.fEC;
@@ -512,7 +512,7 @@ AliChaoticity::~AliChaoticity()
 {
   // Destructor
   if(fAOD) delete fAOD; 
-  if(fESD) delete fESD; 
+  //if(fESD) delete fESD; 
   if(fOutputList) delete fOutputList;
   if(fPIDResponse) delete fPIDResponse;
   if(fEC) delete fEC;
@@ -1092,13 +1092,11 @@ void AliChaoticity::Exec(Option_t *)
   //cout<<"===========  Event # "<<fEventCounter+1<<"  ==========="<<endl;
   fEventCounter++;
 
-  if(fAODcase) fAOD = dynamic_cast<AliAODEvent*> (InputEvent());
-  else fESD = dynamic_cast<AliESDEvent*> (InputEvent());
+  if(!fAODcase) {cout<<"ESDs not supported"<<endl; return;}
   
-  if(fAODcase) {if (!fAOD) {Printf("ERROR: fAOD not available"); return;}}
-  else {if (!fESD) {Printf("ERROR: fESD not available"); return;}}
+  fAOD = dynamic_cast<AliAODEvent*> (InputEvent());
+  if (!fAOD) {Printf("ERROR: fAOD not available"); return;}
   
-  if(!fAODcase) {cout<<"ESDs not supported"<<endl; return;}
   
   // Trigger Cut
   if(fAOD->GetRunNumber() >= 136851 && fAOD->GetRunNumber() <= 139517){// 10h data
@@ -1382,8 +1380,8 @@ void AliChaoticity::Exec(Option_t *)
   }
  
  
-  cout<<"There are "<<myTracks<<"  myTracks"<<endl;
-  cout<<"pionCount = "<<pionCount<<"   kaonCount = "<<kaonCount<<"   protonCount = "<<protonCount<<endl;
+  //cout<<"There are "<<myTracks<<"  myTracks"<<endl;
+  //cout<<"pionCount = "<<pionCount<<"   kaonCount = "<<kaonCount<<"   protonCount = "<<protonCount<<endl;
 
   /////////////////////////////////////////
   // Pion Multiplicity Cut (To ensure all Correlation orders are present in each event)
@@ -2066,7 +2064,7 @@ void AliChaoticity::Exec(Option_t *)
    
 
     //cout<<"pairCountSE = "<<pairCountSE<<"   pairCountME = "<<pairCountME<<endl;
-    cout<<"Start Main analysis"<<endl;
+    //cout<<"Start Main analysis"<<endl;
     
     ///////////////////////////////////////////////////////////////////////
     ///////////////////////////////////////////////////////////////////////
index d00274064d01171a5bbbcaed96800be336a5e974..418eb23d0f50463e8843c3a1d096c0f784e72c4b 100644 (file)
@@ -101,7 +101,7 @@ class AliChaoticity : public AliAnalysisTaskSE {
   
   const char* fname;// name of class
   AliAODEvent            *fAOD; //!    // AOD object
-  AliESDEvent            *fESD; //!    // ESD object
+  //AliESDEvent            *fESD; //!    // ESD object
   TList                  *fOutputList; //! Compact Output list
   AliPIDResponse         *fPIDResponse; //! PID response object; equivalent to AliAODpidUtil
   
@@ -160,7 +160,7 @@ class AliChaoticity : public AliAnalysisTaskSE {
   struct St1 {
     struct St2 Charge2[2];
   };
-  struct St1 Charge1[2];
+  struct St1 Charge1[2];//!
 
 
   /////////////////////
@@ -171,7 +171,7 @@ class AliChaoticity : public AliAnalysisTaskSE {
   struct St_Kt {
     struct St_Ky KY[kKbinsY];
   };
-  struct St_Kt KT[kKbinsT];
+  struct St_Kt KT[kKbinsT];//!
   
  
   Bool_t fLEGO;