Hi, In TTree::Draw, >> has a special meaning, namely piping of the result to an histogram or TEventList named after the operator [ T->Draw("x:y>>hxy") ] So the 'bit shift' operator is not supported. Philippe. > -----Original Message----- > From: owner-roottalk@pcroot.cern.ch > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of steve udriot > Sent: Wednesday, November 01, 2000 5:12 AM > To: roottalk@pcroot.cern.ch > Subject: [ROOT] bit shift in TTree::Draw > > > Hi rooters, > > I am doing the following thing : > > root [0] gSystem->Load("./libEvent.so"); > root [1] TFile *f = TFile::Open("rfio:p37050.root") > root [2] T->Draw("(cristal_0.GetSample(0)&0x3000)>>12") > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > root [3] T->Draw("((cristal_0.GetSample(0)&0x3000)>>12)") > > *ERROR 41 : > ')' is expected > root [4] > > At root[2] I am expecting 2 and I get 4092 ? > At root[3] it doesn't recognize the parenthesis ? > > How does the bit shift works with TTree::Draw ? > > Thanks! > > Steve > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET