Skip to content

Commit

Permalink
Merge pull request #42 from gaudio74/master
Browse files Browse the repository at this point in the history
new Calibration  and documentation for DESY TB
  • Loading branch information
lopezzot authored Mar 29, 2022
2 parents aadb38b + f32faab commit e396c37
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 2,570 deletions.
20 changes: 11 additions & 9 deletions TBDataAnalysis/202106_DESY/PhysicsAnalysis.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ClassImp(EventOut)

void PhysicsAnalysis(const string run){

string infile = "/eos/user/i/ideadr/TB2021_Desy/recoNtuple/physics_desy2021_run"+run+".root";
//string infile = "/eos/user/i/ideadr/TB2021_Desy/recoNtuple/physics_desy2021_run"+run+".root";
string infile = "/eos/user/i/ideadr/TB2021_Desy/recoNtuple_20220307/physics_desy2021_run"+run+".root";
std::cout<<"Using file: "<<infile<<std::endl;
char cinfile[infile.size() + 1];
strcpy(cinfile, infile.c_str());
Expand Down Expand Up @@ -65,14 +66,15 @@ void PhysicsAnalysis(const string run){
tree->GetEntry(i);
energyS = evt->totSiPMSene + evt->SPMTenergy; //Energy unit is GeV
energyC = evt->totSiPMCene + evt->CPMTenergy;
enesplot->Fill(energyS, energyC);
E_S->Fill(energyS);
E_C->Fill(energyC);
E_pmtS->Fill(evt->SPMTenergy);
E_pmtC->Fill(evt->CPMTenergy);
E_SiPMS->Fill(evt->totSiPMSene);
E_SiPMC->Fill(evt->totSiPMCene);

if(energyS > 1 && energyC >1 ){
enesplot->Fill(energyS, energyC);
E_S->Fill(energyS);
E_C->Fill(energyC);
E_pmtS->Fill(evt->SPMTenergy);
E_pmtC->Fill(evt->CPMTenergy);
E_SiPMS->Fill(evt->totSiPMSene);
E_SiPMC->Fill(evt->totSiPMCene);
}
}

enesplot->Draw("COLZ");
Expand Down
Loading

0 comments on commit e396c37

Please sign in to comment.