#define test1Selector_cxx // The class definition in test1Selector.h has been generated automatically // by the ROOT utility TTree::MakeSelector(). This class is derived // from the ROOT class TSelector. For more information on the TSelector // framework see $ROOTSYS/README/README.SELECTOR or the ROOT User Manual. // The following methods are defined in this file: // Begin(): called every time a loop on the tree starts, // a convenient place to create your histograms. // SlaveBegin(): called after Begin(), when on PROOF called only on the // slave servers. // Process(): called for each event, in this function you decide what // to read and fill your histograms. // SlaveTerminate: called at the end of the loop on the tree, when on PROOF // called only on the slave servers. // Terminate(): called at the end of the loop on the tree, // a convenient place to draw/fit your histograms. // // To use this file, try the following session on your Tree T: // // Root > T->Process("test1Selector.C") // Root > T->Process("test1Selector.C","some options") // Root > T->Process("test1Selector.C+") // #include "test1Selector.h" #include #include void test1Selector::Begin(TTree * tree) { // The Begin() function is called at the start of the query. // When running with PROOF Begin() is only called on the client. // The tree argument is deprecated (on PROOF 0 is passed). TString option = GetOption(); fHist=new TH1F("fHist","muon_pt",20,0,100); cout<<"begin"<SetBranchStatus("*",0,&found); cout<<"found "<SetBranchStatus("recoVertexs_hltPixelVertices__HLT.obj.chi2_",1); cout<<"before fChain"<GetEntries()<GetTree()<GetTree(); cout<GetEntries()<GetTree()->GetEntry(entry); //b_reReco_obj_chi2_->GetEntry(entry); cout<<"after fChain"<Fill(reReco_obj_chi2_); // for (int i=0 ; i