TH1 as TTree branch??

William J Deninger (deninger@uiuc.edu)
Mon, 9 Mar 1998 14:59:44 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01BD4B6B.FEDF68C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

Is it possible to have a TH1F histogram as a data member in a TTree =
branch? I remember reading something about this, but I wasn't able to =
find it in root talk previous.

//_________________________
// header file
class TRawData
{
public:
TH1F histogram;
}

//_________________________
// Cint=20
TRawData *raw =3D new TRawData;
TTree *tree =3D new TTree("traceback","Raw event data");
tree->Branch("raw","TRawData",&raw,16000,1);

William J Deninger
deninger@uiuc.edu

------=_NextPart_000_000A_01BD4B6B.FEDF68C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

Hello,
 
Is it possible to have a TH1F histogram as a data = member =20 in a TTree branch?  I remember reading something about this, but I = wasn't=20 able to find it in root talk previous.
 
//_________________________=
// header file
class=20 TRawData
{
   =20 public:
        TH1F=20 histogram;
}
 
//_________________________=
// Cint =
TRawData *raw =3D new = TRawData;
TTree *tree =3D=20 new TTree("traceback","Raw event = data");
tree->Branch("raw","TRawData",&raw,16= 000,1);
 
William J Deninger
deninger@uiuc.edu
<= /BODY> ------=_NextPart_000_000A_01BD4B6B.FEDF68C0--