Bernd Reinhold | 1 Oct 2010 11:30
Picon

Re: [ROOT] TSQLServer & TMySQLServer

Hi Rene!

Yes, I understand that TSQLServer is a base class to TMySQLServer, 
TOracle... etc., but it's not an abstract base class, despite the fact 
that in http://root.cern.ch/root/html/TSQLServer.html it says so.
So I have two choices to connect to a MySQL server: TSQLServer or 
TMySQLServer (we tested both, either worked).

Therefore I was wondering
 >> ..., if one (e.g. TMySQLServer) is preferred above the
 >> other (TSQLServer), e.g. for performance reasons or if they are
 >> completely equivalent to use.

They seemed equivalent when testing, but I was wondering about subtle or 
not so subtle differences?!

Thanks and cheers, Bernd.

Rene Brun wrote:
>  Bernd,
> 
> Note that TMySQLServer is just an incarnation of TSQLServer base class, 
> like we have TOracleServer, etc.
> 
> Rene
> 
> On 30/09/2010 17:15, Bernd Reinhold wrote:
>> Dear ROOTers!
>>
>> With ROOT comes a class TSQLServer, TSQLResult, TSQLRow but there are 
(Continue reading)

Fons Rademakers | 1 Oct 2010 14:21
Picon
Picon

Re: [ROOT] TSQLServer & TMySQLServer

Hi Bernd,

    TSQLServer is not a pure abstract class but it acts as one. We advice 
to create an actual instance of a TSQLServer dreived class by using:

TSQLServer::Connect()

where the url passed to connect makes sure the correct plugin and derived 
class is loaded (be it TOracleServer, TMySQLServer, etc). This is like how 
things are done for TFile via TFile::Open(). This makes you code 
independent of an actual specific implementation.

Cheers, Fons.

On 01/10/2010 11:30, Bernd Reinhold wrote:
> Hi Rene!
>
> Yes, I understand that TSQLServer is a base class to TMySQLServer,
> TOracle... etc., but it's not an abstract base class, despite the fact that
> in http://root.cern.ch/root/html/TSQLServer.html it says so.
> So I have two choices to connect to a MySQL server: TSQLServer or
> TMySQLServer (we tested both, either worked).
>
> Therefore I was wondering
>  >> ..., if one (e.g. TMySQLServer) is preferred above the
>  >> other (TSQLServer), e.g. for performance reasons or if they are
>  >> completely equivalent to use.
>
> They seemed equivalent when testing, but I was wondering about subtle or
> not so subtle differences?!
(Continue reading)

Andrea Massironi | 1 Oct 2010 15:09
Picon
Picon

[ROOT] TTree Draw 5 variables

Dear Rooters,
    I'm wondering if it's possible to use the "Draw" of a TTree with 5 variables with the "goff" option and then get the results with "GetVal(Int_i i)", like in the following example.

I get the following error:
Error in <TSelectorDraw::Begin>: Too many variables. Use the option "para", "gl5d" or "candle" to display more than 4 variables.
even if in http://root.cern.ch/root/html/TTree.html I read
"Giving more than 4 variables without the option=para or option=candle or option=goff will produce an error." But "goff" seems to be an available option.


Thanks,
    Andrea



TTree* myTree = new TTree("myTree","myTree");

double x,y,z,t,w;

myTree->Branch("x",&x,"x/D");
myTree->Branch("y",&x,"y/D");
myTree->Branch("z",&x,"z/D");
myTree->Branch("t",&x,"t/D");
myTree->Branch("w",&x,"w/D");


for (int i=0; i<100; i++){
 x = i;
 y = i+1;
 z = i+2;
 t = i+3;
 w = i+4;
 myTree->Fill();
}


myTree->Draw("x:y:z:t:w","","goff");

Double_t *vX = myTree->GetVal(0);
Double_t *vY = myTree->GetVal(1);
Double_t *vZ = myTree->GetVal(2);
Double_t *vT = myTree->GetVal(3);
Double_t *vW = myTree->GetVal(4);

Rene Brun | 1 Oct 2010 15:32
Picon
Picon

Re: [ROOT] TTree Draw 5 variables

Andrea,

You are right. Currently you have to do something like:
  T.Draw("x:y:z:u:v","","para goff");
   T.GetVal(4);

Hoping that we can improve this soon.

Rene Brun

Andrea Massironi wrote:
> Dear Rooters,
>     I'm wondering if it's possible to use the "Draw" of a TTree with 5 
> variables with the "goff" option and then get the results with 
> "GetVal(Int_i i)", like in the following example.
>
> I get the following error:
>
>     Error in <TSelectorDraw::Begin>: Too many variables. Use the
>     option "para", "gl5d" or "candle" to display more than 4 variables.
>
> even if in http://root.cern.ch/root/html/TTree.html I read
> "Giving more than 4 variables without the option=para or
>   option=candle or option=goff will produce an error."
>   
> But "goff" seems to be an available option.
>
>
> Thanks,
>     Andrea
>
>
>
>     TTree* myTree = new TTree("myTree","myTree");
>
>     double x,y,z,t,w;
>
>     myTree->Branch("x",&x,"x/D");
>     myTree->Branch("y",&x,"y/D");
>     myTree->Branch("z",&x,"z/D");
>     myTree->Branch("t",&x,"t/D");
>     myTree->Branch("w",&x,"w/D");
>
>
>     for (int i=0; i<100; i++){
>      x = i;
>      y = i+1;
>      z = i+2;
>      t = i+3;
>      w = i+4;
>      myTree->Fill();
>     }
>
>
>     myTree->Draw("x:y:z:t:w","","goff");
>
>     Double_t *vX = myTree->GetVal(0);
>     Double_t *vY = myTree->GetVal(1);
>     Double_t *vZ = myTree->GetVal(2);
>     Double_t *vT = myTree->GetVal(3);
>     Double_t *vW = myTree->GetVal(4);
>
>

Andrea Massironi | 1 Oct 2010 15:44
Picon
Picon

Re: [ROOT] TTree Draw 5 variables

Thank you!
It works.

     Andrea

On 10/01/2010 03:32 PM, Rene Brun wrote:
> Andrea,
>
> You are right. Currently you have to do something like:
>  T.Draw("x:y:z:u:v","","para goff");
>   T.GetVal(4);
>
> Hoping that we can improve this soon.
>
> Rene Brun
>
> Andrea Massironi wrote:
>> Dear Rooters,
>>     I'm wondering if it's possible to use the "Draw" of a TTree with 
>> 5 variables with the "goff" option and then get the results with 
>> "GetVal(Int_i i)", like in the following example.
>>
>> I get the following error:
>>
>>     Error in <TSelectorDraw::Begin>: Too many variables. Use the
>>     option "para", "gl5d" or "candle" to display more than 4 variables.
>>
>> even if in http://root.cern.ch/root/html/TTree.html I read
>> "Giving more than 4 variables without the option=para or
>>   option=candle or option=goff will produce an error."
>>   But "goff" seems to be an available option.
>>
>>
>> Thanks,
>>     Andrea
>>
>>
>>
>>     TTree* myTree = new TTree("myTree","myTree");
>>
>>     double x,y,z,t,w;
>>
>>     myTree->Branch("x",&x,"x/D");
>>     myTree->Branch("y",&x,"y/D");
>>     myTree->Branch("z",&x,"z/D");
>>     myTree->Branch("t",&x,"t/D");
>>     myTree->Branch("w",&x,"w/D");
>>
>>
>>     for (int i=0; i<100; i++){
>>      x = i;
>>      y = i+1;
>>      z = i+2;
>>      t = i+3;
>>      w = i+4;
>>      myTree->Fill();
>>     }
>>
>>
>>     myTree->Draw("x:y:z:t:w","","goff");
>>
>>     Double_t *vX = myTree->GetVal(0);
>>     Double_t *vY = myTree->GetVal(1);
>>     Double_t *vZ = myTree->GetVal(2);
>>     Double_t *vT = myTree->GetVal(3);
>>     Double_t *vW = myTree->GetVal(4);
>>
>>
>

Julia Campa Romero | 1 Oct 2010 18:26
Picon

[ROOT] draw ellipses or circles

Hi,

I want to know how to draw a ellipse with root if I have the data 
points. I mean, if I have the points, will TGraph class works?
Cheers,

Julia 

----------------------------
Confidencialidad: 
Este mensaje y sus ficheros adjuntos se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario indicado, queda notificado de
que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la
legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente respondiendo al mensaje y proceda a su destrucción.

Disclaimer: 
This message and its attached files is intended exclusively for its recipients and may contain
confidential information. If you received this e-mail in error you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In
this case, please notify us by a reply and delete this email and its contents immediately. 
----------------------------

Olivier Couet | 2 Oct 2010 08:45
Picon
Picon

Re: [ROOT] draw ellipses or circles

Hi
Yes it will work. Use it with option L.
Cheers

Olivier

Le 1 oct. 2010 à 18:26, Julia Campa Romero <Julia.Campa <at> ciemat.es> a écrit :

> Hi,
> 
> I want to know how to draw a ellipse with root if I have the data points. I mean, if I have the points, will
TGraph class works?
> Cheers,
> 
> Julia 
> ----------------------------
> Confidencialidad: Este mensaje y sus ficheros adjuntos se dirige exclusivamente a su destinatario y
puede contener información privilegiada o confidencial. Si no es vd. el destinatario indicado, queda
notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud
de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente respondiendo al mensaje y proceda a su destrucción.
> 
> Disclaimer: This message and its attached files is intended exclusively for its recipients and may
contain confidential information. If you received this e-mail in error you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In
this case, please notify us by a reply and delete this email and its contents immediately. ----------------------------
> 

Lorenzo Moneta | 2 Oct 2010 10:39
Picon
Picon

Re: [ROOT] Getting alpha and beta values from RooStats::ProfileLikelihoodCalculator

Hello Thiago, 

Yes, there are direct method from the HypoTestResult object returned from the ProfileLikelihoodCalculator::GetHypoTest.
(see http://root.cern.ch/root/html/RooStats__ProfileLikelihoodCalculator.html )
You can get the p value for the null hypothesis (alpha) with HypoTestResult::GetNullPValue() and the corresponding significance in terms of Gaussian sigmas. 
For the alternate p value you could use  HypoTestResult::GetAlternatePValue(). 
The asymptotic distribution of the profile likelihood ration under H0 follows a central chi-square distribution, while under H1 it follows a non central chi square distribution
and this is not yet implemented in RooStats. Currently if you want to get the alternate p value you need to run toys and calibrate your profile likelihood ratio. 
This can be done by using the HybridCalculator class. 

Best Regards

Lorenzo
On Sep30, 2010, at 11:43 AM, Thiago Tomei wrote:

Hello

I am using RooStats::ProfileLikelihoodCalculator to make a hypothesis
test. I would like to know if there are direct methods to get the
value of beta (probability of making type II error) and the critical
region (or critical point, as I am working in a 1-parameter problem).

Thanks in advance
Thiago
--
    Thiago R. F. P Tomei - http://cern.ch/Thiago.Tomei
    SPRACE - São Paulo Regional Analysis Center
    CERN - European Organization for Nuclear Research


Summit | 4 Oct 2010 05:29
Favicon

[ROOT] ASCII data usage

Hi ROOTers,

How can I use ASCII data to plot the graph?

Thanks,

Regards,

Summit.

Olivier Couet | 4 Oct 2010 09:02
Picon
Picon

RE: [ROOT] ASCII data usage

You can use the TGraph constructor using a file as parameter.

See: http://root.cern.ch/root/html/TGraph.html

 

From: owner-roottalk <at> root.cern.ch [mailto:owner-roottalk <at> root.cern.ch] On Behalf Of Summit
Sent: Monday, October 04, 2010 5:29 AM
To: roottalk (Mailing list discussing all aspects of the ROOT system.)
Subject: [ROOT] ASCII data usage

 

Hi ROOTers,

How can I use ASCII data to plot the graph?

Thanks,

Regards,

Summit.

 


Gmane