]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Limit print outs
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2010 08:57:47 +0000 (08:57 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2010 08:57:47 +0000 (08:57 +0000)
JETAN/AliJetBkg.cxx

index 76638d8773b0a3bba51dcb21bdd4efbd66633e1a..12a69df57332a96d99f18a1857f6f1416afaab1c 100644 (file)
@@ -88,15 +88,17 @@ AliJetBkg& AliJetBkg::operator=(const AliJetBkg& source){
 //___________________________________________________________________
   void AliJetBkg::BkgFastJetb(Double_t& rho,Double_t& sigma, 
 Double_t& meanarea){
-  
-  cout<<"===============  AliJetBkg::BkgFastJetb()  =========== "<<endl;
+
+    AliFastJetHeaderV1 *header = (AliFastJetHeaderV1*)fHeader; 
+    Bool_t debug  = header->GetDebug();     // debug option 
+    if(debug)cout<<"===============  AliJetBkg::BkgFastJetb()  =========== "<<endl;
   vector<fastjet::PseudoJet> inputParticles=fInputFJ->GetInputParticles();
   
   //cout<<"printing inputParticles for BKG "<<inputParticles.size()<<endl;
   
 
    
-  AliFastJetHeaderV1 *header = (AliFastJetHeaderV1*)fHeader;
+
   double rParamBkg = header->GetRparamBkg(); //Radius for background calculation
 
   Double_t medianb,sigmab,meanareab;
@@ -110,15 +112,12 @@ Double_t& meanarea){
 
   void AliJetBkg::BkgFastJetWoHardest(Double_t& rho,Double_t& sigma, 
 Double_t& meanarea){
-  
-  cout<<"===============  AliJetBkg::BkgWoHardest()  =========== "<<endl;
+    AliFastJetHeaderV1 *header = (AliFastJetHeaderV1*)fHeader; 
+    Bool_t debug  = header->GetDebug();     // debug option 
+    if(debug)cout<<"===============  AliJetBkg::BkgWoHardest()  =========== "<<endl;
   vector<fastjet::PseudoJet> inputParticles=fInputFJ->GetInputParticles();
   
-  //cout<<"printing inputParticles for BKG "<<inputParticles.size()<<endl;
-  
-
-   
-  AliFastJetHeaderV1 *header = (AliFastJetHeaderV1*)fHeader;
+  //cout<<"printing inputParticles for BKG "<<inputParticles.size()<<endl;   
   double rParamBkg = header->GetRparamBkg(); //Radius for background calculation  
   Double_t medianb,sigmab,meanareab;
   CalcRhoWoHardest(medianb,sigmab,meanareab,inputParticles,rParamBkg,"All");
@@ -331,7 +330,7 @@ Float_t  AliJetBkg::BkgChargedFastJet(){
 
   Double_t rho=CalcRho(inputParticlesCharged,rParam,"Charg");
 
-  cout<<"-------- rho (from CHARGED part)="<<rho<<endl; 
+  if(debug)cout<<"-------- rho (from CHARGED part)="<<rho<<endl; 
   return rho;
 }