GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » verbose level
verbose level [message #16429] Wed, 23 April 2014 17:54 Go to next message
ForamShah is currently offline  ForamShah
Messages: 25
Registered: March 2014
Location: india
continuous participant
From: 106.66.216*
hi,
// Verbosity level
Int_t iVerbose = 0;
Int_t nEvents = 0;
what is the basic use of verbosity level?
Re: verbose level [message #16431 is a reply to message #16429] Wed, 23 April 2014 17:59 Go to previous messageGo to next message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
A variable with such a name is usually used as a "switch" for putting out some debugging information. The higher the number is, the more information is written to the screen.

However, as these two lines could come from any kind of code it is hard to tell what exactly it does. I would recommend to search for the name iVerbose and check where it is being used and for what purpose.

For future posts, please consider to give more detailed information about your questions. Once you start doing that, you will probably recognize that you will be able to answer your own questions in many cases.

[Updated on: Wed, 23 April 2014 18:01]

Report message to a moderator

Re: verbose level [message #16433 is a reply to message #16431] Wed, 23 April 2014 18:05 Go to previous messageGo to next message
ForamShah is currently offline  ForamShah
Messages: 25
Registered: March 2014
Location: india
continuous participant
From: 106.66.216*
thanks for ur reply.I would try to be more precise next time
Re: verbose level [message #16439 is a reply to message #16429] Thu, 24 April 2014 16:20 Go to previous message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 103.21.127*
Hi,
If you really want to understand it please go to a directory /pandaroot/sds/SdsDigi and open this class PndSdsCalcStrip.cxx then you will find there are many statement like (for example):
if (fVerboseLevel > 2){
      std::cout<<" part of last strip : "<<(nuOut-prevOut)<<std::endl ;
      std::cout<<" charge : "<<Q2<<std::endl ;
      std::cout<<" end of previous strip : "<<prevOut<<std::endl ;
    }

so when you will choose verboselevel greater than two than the below cout statement will be show the details of what is happening at the time of execution of macro. so It gives the detailed information of what is happening at the time of running of macro.

Previous Topic: understand the sim file
Next Topic: Web Services @ GSI - Interruption from May 2nd 14:00 till May 4th
Goto Forum:
  


Current Time: Wed Apr 24 20:28:36 CEST 2024

Total time taken to generate the page: 0.00976 seconds