#define Analyzer_cxx #include "Analyzer.h" #include #include // TH2F * hsx3IDVch; // // TH2F * hqqqIDVch; // // TH2F * hpcIDVch; // TH2F * hsx3VpcIndex; // TH2F * hsx3EVIndex; void Analyzer::Begin(TTree * /*tree*/){ TString option = GetOption(); // hsx3IDVch = new TH2F("hsx3IDVch", "sx3 ID vs ch; ch ; ID", 24, 0, 24, 12, 0, 12); // // hqqqIDVch = new TH2F("hqqqIDVch", "qqq ID vs ch; ch ; ID", 4, 0, 4, 32, 0, 32); // // hpcIDVch = new TH2F("hpcIDVch", "pc ID vs ch; ch ; ID", 2, 0, 2, 24, 0, 24); // hsx3VpcIndex = new TH2F("hsx3Vpcindex", "sx3 vs pc", 24*12, 0, 24*12, 48, 0, 48); } Bool_t Analyzer::Process(Long64_t entry){ b_sx3Multi->GetEntry(entry); b_sx3ID->GetEntry(entry); b_sx3Ch->GetEntry(entry); b_sx3E->GetEntry(entry); b_sx3T->GetEntry(entry); b_qqqMulti->GetEntry(entry); b_qqqID->GetEntry(entry); b_qqqCh->GetEntry(entry); b_qqqE->GetEntry(entry); b_qqqT->GetEntry(entry); b_pcMulti->GetEntry(entry); b_pcID->GetEntry(entry); b_pcCh->GetEntry(entry); b_pcE->GetEntry(entry); b_pcT->GetEntry(entry); //======================= SX3 for( int i = 0; i < sx3.multi; i ++){ sx3.Print(); } return kTRUE; } void Analyzer::Terminate(){ }