]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Update with new AddTask macro for the azimuthal isotropic expansion analysis by C...
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Dec 2009 21:05:02 +0000 (21:05 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Dec 2009 21:05:02 +0000 (21:05 +0000)
PWG2/SPECTRA/AliAnalysisTaskCentral.cxx
PWG2/SPECTRA/AliAnalysisTaskCentral.h
PWG2/SPECTRA/macros/AddTaskCentral.C

index 1b97ca59054d658123120c89be759756f22e1a17..2cf5e95271f1432d03c045a95cf171abc32b7699 100644 (file)
@@ -128,8 +128,12 @@ void AliAnalysisTaskCentral::ConnectInputData(Option_t *) {
        AliMCEventHandler *mcH = (AliMCEventHandler*) ((AliAnalysisManager::GetAnalysisManager())->GetMCtruthEventHandler());
        if (!mcH) {
            Printf("ERROR: Could not get MCInputHandler");
+           fSim = kFALSE;
+       }
+       else{
+           fMC = mcH->MCEvent();
+           fSim = kTRUE;
        }
-       else fMC = mcH->MCEvent();
     }
 }
 
@@ -510,7 +514,7 @@ void AliAnalysisTaskCentral::Terminate(Option_t *) {
        extPi->SetParticle("kPiPlus"); //set the particle type
        extPi->ApplyEff();             //correct the pt distribution !!HAS TO RUN BEFORE extrapolation!!
        extPi->BoltzmannFit();         //fit and extrapolate using Boltzmann-Gibbs Blast wave model
-       extPi->TsallisFit();           //fit and extrapolate using Tsallis Blast wave model
+//     extPi->TsallisFit();           //fit and extrapolate using Tsallis Blast wave model
        TList *extOutListPi = extPi->GetOutputList();
 
        AliAnalysisCentralExtrapolate *extK = new AliAnalysisCentralExtrapolate("extrapolationK");
@@ -518,7 +522,7 @@ void AliAnalysisTaskCentral::Terminate(Option_t *) {
        extK->SetParticle("kKPlus");
        extK->ApplyEff();
        extK->BoltzmannFit();
-       extK->TsallisFit();
+//     extK->TsallisFit();
        TList *extOutListK = extK->GetOutputList();
 
        AliAnalysisCentralExtrapolate *extP = new AliAnalysisCentralExtrapolate("extrapolationP");
@@ -526,7 +530,7 @@ void AliAnalysisTaskCentral::Terminate(Option_t *) {
        extP->SetParticle("kProton");
        extP->ApplyEff();
        extP->BoltzmannFit();
-       extP->TsallisFit();
+//     extP->TsallisFit();
        TList *extOutListP = extP->GetOutputList();
 
 
index 6e2443190a6a105b035dd7dd4a9f3b4198e4996e..95f3605f40ee0a3bbcc2869515a699e4ba05aff8 100644 (file)
@@ -37,7 +37,7 @@ class AliAnalysisTaskCentral : public AliAnalysisTask {
 
   Bool_t CheckCuts(Int_t no, TObject *obj) const; //used to check if a track/particle is selected
 
-  void SetSimulation(Bool_t type) {fSim = type;} // set to kTRUE if running on simulated data
+//  void SetSimulation(Bool_t type) {fSim = type;} // set to kTRUE if running on simulated data
 
   virtual void   ConnectInputData(Option_t *);
   virtual void   CreateOutputObjects();
index 7c0cbd9201aaecea0eadb1303c06122d871f5fcb..68347cddffd01f3c888c1ee0f0e6bfa1cf672bae 100644 (file)
@@ -24,7 +24,6 @@ AliAnalysisTaskCentral* AddTaskCentral(Bool_t *simulation=kFALSE){
 
        // Create and configure the task
        AliAnalysisTaskCentral *taskcentral = new AliAnalysisTaskCentral("TaskCentral");
-       taskcentral->SetSimulation(kTRUE); //kTRUE if we are running on simulated data 
        mgr->AddTask(taskcentral);
 
        // Create ONLY the output containers for the data produced by the task.