]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Less verbose output
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Nov 2009 11:54:40 +0000 (11:54 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Nov 2009 11:54:40 +0000 (11:54 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoBasicEventCut.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFemtoPicoEventCollectionVectorHideAway.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFemtoPicoEventCollectionVectorHideAway.h
PWG2/FEMTOSCOPY/AliFemto/AliFemtoSimpleAnalysis.cxx

index 2acb3e28ad7d1f9e30003e3552e08a79459afbb9..3a0bff2fae34f13a1472ebd67bc1afad3412bbd4 100644 (file)
@@ -36,9 +36,9 @@ bool AliFemtoBasicEventCut::Pass(const AliFemtoEvent* event){
   // position range. Fail otherwise
   int mult =  event->NumberOfTracks();
   double vertexZPos = event->PrimVertPos().z();
-  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:: mult:       " << fEventMult[0] << " < " << mult << " < " << fEventMult[1] << endl;
+//   cout << "AliFemtoBasicEventCut:: VertexZPos: " << fVertZPos[0] << " < " << vertexZPos << " < " << fVertZPos[1] << endl;
+//   cout << "AliFemtoBasicEventCut:: VertexZErr: " << event->PrimVertCov()[4] << endl;
   bool goodEvent =
     ((mult >= fEventMult[0]) && 
      (mult <= fEventMult[1]) && 
@@ -46,7 +46,7 @@ bool AliFemtoBasicEventCut::Pass(const AliFemtoEvent* event){
      (vertexZPos < fVertZPos[1]) &&
      (fAcceptBadVertex || (event->PrimVertCov()[4] > -1000.0)));
   goodEvent ? fNEventsPassed++ : fNEventsFailed++ ;
-  cout << "AliFemtoBasicEventCut:: return : " << goodEvent << endl;
+//   cout << "AliFemtoBasicEventCut:: return : " << goodEvent << endl;
   return (goodEvent);
 }
 //------------------------------
index fabf663d92424501ce9bf7d1e33f9f9882682d01..31f67e98ef6e9847ace10669962898baefff8847 100644 (file)
@@ -40,8 +40,8 @@ AliFemtoPicoEventCollection* AliFemtoPicoEventCollectionVectorHideAway::PicoEven
   if ( iy<0 || iy >= fBinsy) return 0;
   if ( iz<0 || iz >= fBinsz) return 0;
   int bin = ix + iy*fBinsx + iz*fBinsy*fBinsx; 
-  cout << " AliFemtoPicoEventCollectionVectorHideAway::PicoEventCollection(...) - bin(ix,iy,iz): ";
-  cout << bin << "(" << ix <<"," << iy << "," << iz <<")" << endl;
+//   cout << " AliFemtoPicoEventCollectionVectorHideAway::PicoEventCollection(...) - bin(ix,iy,iz): ";
+//   cout << bin << "(" << ix <<"," << iy << "," << iz <<")" << endl;
   return fCollectionVector[bin]; 
 }
 // -----------------------------------
@@ -123,3 +123,6 @@ AliFemtoPicoEventCollectionVectorHideAway& AliFemtoPicoEventCollectionVectorHide
 
   return *this;
 }
+unsigned int AliFemtoPicoEventCollectionVectorHideAway::GetBinXNumber(double x) { return (int)floor( (x-fMinx)/fStepx ); }
+unsigned int AliFemtoPicoEventCollectionVectorHideAway::GetBinYNumber(double y) { return (int)floor( (y-fMiny)/fStepy ); }
+unsigned int AliFemtoPicoEventCollectionVectorHideAway::GetBinZNumber(double z) { return (int)floor( (z-fMinz)/fStepz ); }
index 631d326044c1c58389e127e696dc36cdf3cfe889..c4518d24d8cd70a38fcb136cb934dbeb3cc7898a 100644 (file)
@@ -32,6 +32,9 @@ public:
 
   AliFemtoPicoEventCollection* PicoEventCollection(int bx, int by, int bz);
   AliFemtoPicoEventCollection* PicoEventCollection(double x, double y=0, double z=0);
+  unsigned int GetBinXNumber(double x);
+  unsigned int GetBinYNumber(double y);
+  unsigned int GetBinZNumber(double z);
 private:
   int fBinsTot;                                        // Total number of bins 
   int fBinsx,fBinsy,fBinsz;                            // Number of bins on x, y, z axis
index 3c3e330b199ecd00cc63643d35141cdb66635d05..74a77430c44925af6cdebbfddd626c81ad79118e 100644 (file)
@@ -324,15 +324,20 @@ void AliFemtoSimpleAnalysis::ProcessEvent(const AliFemtoEvent* hbtEvent) {
   bool tmpPassEvent = fEventCut->Pass(hbtEvent);
   fEventCut->FillCutMonitor(hbtEvent, tmpPassEvent);
   if (tmpPassEvent) {
-    cout << "AliFemtoSimpleAnalysis::ProcessEvent() - Event has passed cut - build picoEvent from " <<
-      hbtEvent->TrackCollection()->size() << " tracks in TrackCollection" << endl;
+//     cout << "AliFemtoSimpleAnalysis::ProcessEvent() - Event has passed cut - build picoEvent from " <<
+//       hbtEvent->TrackCollection()->size() << " tracks in TrackCollection" << endl;
+//    cout << "Event has passed cut with " << hbtEvent->TrackCollection()->size() << " tracks" << endl;
     // OK, analysis likes the event-- build a pico event from it, using tracks the analysis likes...
     fPicoEvent = new AliFemtoPicoEvent; // this is what we will make pairs from and put in Mixing Buffer
     // no memory leak. we will delete picoevents when they come out of the mixing buffer
     FillHbtParticleCollection(fFirstParticleCut,(AliFemtoEvent*)hbtEvent,fPicoEvent->FirstParticleCollection());
     if ( !(AnalyzeIdenticalParticles()) )
       FillHbtParticleCollection(fSecondParticleCut,(AliFemtoEvent*)hbtEvent,fPicoEvent->SecondParticleCollection());
-    cout <<"AliFemtoSimpleAnalysis::ProcessEvent - #particles in First, Second Collections: " <<
+//     cout <<"AliFemtoSimpleAnalysis::ProcessEvent - #particles in First, Second Collections: " <<
+//       fPicoEvent->FirstParticleCollection()->size() << " " <<
+//       fPicoEvent->SecondParticleCollection()->size() << endl;
+    
+    cout << "#particles in Collection 1, 2: " <<
       fPicoEvent->FirstParticleCollection()->size() << " " <<
       fPicoEvent->SecondParticleCollection()->size() << endl;