Changeset 92 for MEMPHYS


Ignore:
Timestamp:
Jan 24, 2006, 10:27:24 AM (18 years ago)
Author:
campagne
Message:

new ROOT utilities (JEC)

Location:
MEMPHYS/HEAD/run
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/run/MEMPHYS_read_event.C

    r28 r92  
    5252  TTree* Event_hit = new TTree();
    5353  tEvent->SetBranchAddress("hit",&Event_hit);
     54  Int_t tubeId_hit; //JEC 16/1/06
    5455  Int_t totalPE;
    5556 
     
    106107    // Have a brand new overwritten hit TTree ; we have
    107108    // to rebind its user variables :
     109    Event_hit->SetBranchAddress("tubeId",&tubeId_hit); //JEC 16/1/06   
    108110    Event_hit->SetBranchAddress("totalPE",&totalPE);
    109111    Event_hit->SetBranchAddress("pe",&Hit_pe);
    110112   
    111     // Have a brand new overwritten hit TTree ; we have
     113    // Have a brand new overwritten digit TTree ; we have
    112114    // to rebind its user variables :
    113115    Event_digit->SetBranchAddress("tubeId",&tubeId);
     
    164166
    165167      Hit_pe->SetBranchAddress("time",&hit_time);
    166      
    167       std::cout << "----> Hit{"<<k<<"}: total #PE " << totalPE << std::endl;
     168      //JEC 16/1/06 add the tubeId_hit info
     169      std::cout << "----> Hit{"<<k<<"}: tube[" << tubeId_hit << "] total #PE " << totalPE << std::endl;
    168170      for (Int_t ki=0; ki<Hit_pe->GetEntries(); ++ki) {
    169171        Hit_pe->GetEntry(ki);
Note: See TracChangeset for help on using the changeset viewer.