]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/FEMTOSCOPY/AliFemto/AliFemtoBasicEventCut.cxx
1) Suppressed unnecessary output. 2) Added option to request multiple filter bits
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / AliFemto / AliFemtoBasicEventCut.cxx
index 8f575bd2ed9f3b64bdfc0bbb296df551744db8b8..54effd0c5ad71337a5b2e527ba05097eb1d6d930 100644 (file)
@@ -19,7 +19,6 @@ AliFemtoBasicEventCut::AliFemtoBasicEventCut() :
   fAcceptBadVertex(false), 
   fNEventsPassed(0), 
   fNEventsFailed(0),
-  fAcceptOnlyPhysics(true),
   fSelectTrigger(0)
 {
   // Default constructor
@@ -27,8 +26,8 @@ AliFemtoBasicEventCut::AliFemtoBasicEventCut() :
   fEventMult[1] = 100000;
   fVertZPos[0] = -100.0;
   fVertZPos[1] = 100.0;
-  fPsiEP[0] = -100.0;
-  fPsiEP[1] = 100.0;
+  fPsiEP[0] = -1000.0;
+  fPsiEP[1] = 1000.0;
 } 
 //------------------------------
 AliFemtoBasicEventCut::~AliFemtoBasicEventCut(){
@@ -43,7 +42,6 @@ bool AliFemtoBasicEventCut::Pass(const AliFemtoEvent* event){
   int mult = (int) event->UncorrectedNumberOfPrimaries();
   double vertexZPos = event->PrimVertPos().z();
 
-
   // Double_t qxEPVZERO = 0, qyEPVZERO = 0;
   // Double_t qVZERO = -999;
   double epvzero = event->ReactionPlaneAngle();
@@ -52,6 +50,7 @@ bool AliFemtoBasicEventCut::Pass(const AliFemtoEvent* event){
 //   cout << "AliFemtoBasicEventCut:: mult:       " << fEventMult[0] << " < " << mult << " < " << fEventMult[1] << endl;
 //   cout << "AliFemtoBasicEventCut:: VertexZPos: " << fVertZPos[0] << " < " << vertexZPos << " < " << fVertZPos[1] << endl;
 //   cout << "AliFemtoBasicEventCut:: VertexZErr: " << event->PrimVertCov()[4] << endl;
+
   // cout << "AliFemtoBasicEventCut:: MagneticField: " << event->MagneticField() << endl;
   // cout << "AliFemtoBasicEventCut:: IsCollisionCandidate: " << event->IsCollisionCandidate() << endl;
   // cout << "AliFemtoBasicEventCut:: TriggerCluster: " << event->TriggerCluster() << endl;
@@ -65,15 +64,15 @@ bool AliFemtoBasicEventCut::Pass(const AliFemtoEvent* event){
      (epvzero > fPsiEP[0]) &&
      (epvzero < fPsiEP[1]) &&
      ((!fAcceptBadVertex) || (event->ZDCParticipants() > 1.0)) &&
-     ((!fAcceptOnlyPhysics) || (event->IsCollisionCandidate())) &&
       ((!fSelectTrigger) || (event->TriggerCluster() == fSelectTrigger))
 );
 
   // cout << "AliFemtoBasicEventCut:: goodEvent" <<goodEvent << endl;
 
   goodEvent ? fNEventsPassed++ : fNEventsFailed++ ;
-//   cout << "AliFemtoBasicEventCut:: return : " << goodEvent << endl;
+  // cout << "AliFemtoBasicEventCut:: return : " << goodEvent << endl;
 //     (fAcceptBadVertex || (event->PrimVertCov()[4] > -1000.0)) &&
+
   return (goodEvent);
 }
 //------------------------------
@@ -98,11 +97,4 @@ bool AliFemtoBasicEventCut::GetAcceptBadVertex()
 {
   return fAcceptBadVertex;
 }
-void AliFemtoBasicEventCut::SetAcceptOnlyPhysics(bool b)
-{
-  fAcceptOnlyPhysics = b;
-}
-bool AliFemtoBasicEventCut::GetAcceptOnlyPhysics()
-{
-  return fAcceptOnlyPhysics;
-}
+