Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. //
  2. // ConfigFemtoAnalysis.C
  3. //
  4.  
  5. AliFemtoManager*
  6. ConfigFemtoAnalysis()
  7. {
  8. const double PionMass = 0.13956995;
  9.  
  10. //
  11. // Setup Event Reader
  12. //
  13. AliFemtoEventReaderAOD *rdr = new AliFemtoEventReaderAODChain();
  14.  
  15. rdr->SetFilterBit(7);
  16. rdr->SetEPVZERO(kTRUE);
  17. rdr->SetUseMultiplicity(AliFemtoEventReaderAOD::kCentrality);
  18. rdr->SetCentralityFlattening(kFALSE);
  19. rdr->SetReadV0(0);
  20.  
  21.  
  22. AliFemtoManager *manager = new AliFemtoManager();
  23.  
  24. manager->SetEventReader(rdr);
  25.  
  26.  
  27. // Analysis
  28.  
  29. AliFemtoSimpleAnalysis *analysis = new AliFemtoSimpleAnalysis();
  30. analysis->SetNumEventsToMix(5);
  31. analysis->SetVerboseMode(kFALSE);
  32.  
  33. // Event Cut
  34.  
  35. AliFemtoEventCut *ev_cut = new AliFemtoBasicEventCut();
  36. ev_cut->AddCutMonitor(
  37. new AliFemtoCutMonitorEventMult("EvPass"),
  38. new AliFemtoCutMonitorEventMult("EvFail")
  39. );
  40. analysis->SetEventCut(ev_cut);
  41.  
  42. // Particle Cut 1
  43.  
  44. AliFemtoBasicTrackCut* particle_cut = new AliFemtoBasicTrackCut();
  45. particle_cut->SetPt(0.5, 2);
  46. particle_cut->SetRapidity(-0.8, 0.8);
  47. particle_cut->SetCharge(1);
  48. particle_cut->AddCutMonitor(
  49. new AliFemtoCutMonitorParticleYPt("particle1_pass", PionMass),
  50. new AliFemtoCutMonitorParticleYPt("particle1_fail", PionMass)
  51. );
  52. analysis->SetFirstParticleCut(particle_cut);
  53.  
  54. // Particle Cut 2
  55.  
  56. particle_cut = new AliFemtoBasicTrackCut();
  57. particle_cut->SetPt(2, 4);
  58. particle_cut->SetRapidity(-0.8, 0.8);
  59. particle_cut->SetCharge(1);
  60. particle_cut->AddCutMonitor(
  61. new AliFemtoCutMonitorParticleYPt("particle2_pass", PionMass),
  62. new AliFemtoCutMonitorParticleYPt("particle2_fail", PionMass)
  63. );
  64. analysis->SetSecondParticleCut(particle_cut);
  65.  
  66. // Pair Cut
  67.  
  68. AliFemtoShareQualityPairCut *pair_cut = new AliFemtoShareQualityPairCut();
  69. pair_cut->SetShareFractionMax(0.2);
  70. analysis->SetPairCut(pair_cut);
  71.  
  72. // Correlation Functions
  73.  
  74. analysis->AddCorrFctn(new AliFemtoQinvCorrFctn(
  75. "Qinv",
  76. 144, 0.0, 2.0
  77. ));
  78.  
  79.  
  80. analysis->AddCorrFctn(new AliFemtoAvgSepCorrFctn(
  81. "AvgSep",
  82. 144, 0, 15
  83. ));
  84.  
  85. manager->AddAnalysis(analysis);
  86.  
  87. return manager;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement