Skip to content
Snippets Groups Projects
Commit 4220896c authored by de Séréville Nicolas's avatar de Séréville Nicolas
Browse files

+ Add physics spectra

parent 784e5e79
No related branches found
No related tags found
No related merge requests found
...@@ -321,6 +321,21 @@ void TLaBr3Spectra::FillPreTreatedSpectra(TLaBr3Data* PreTreatedData) ...@@ -321,6 +321,21 @@ void TLaBr3Spectra::FillPreTreatedSpectra(TLaBr3Data* PreTreatedData)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void TLaBr3Spectra::FillPhysicsSpectra(TLaBr3Physics* Physics) void TLaBr3Spectra::FillPhysicsSpectra(TLaBr3Physics* Physics)
{ {
string name;
string family = "LABR3/PHY";
// Energy-Time Correlation
for (unsigned int i = 0 ; i < Physics->DetectorNumber.size(); i++) { // loop on number of detectors
name = Form("LABR3_%d_E_TOF", i+1);
GetHisto(family,name) -> Fill(Physics->Time[i], Physics->Energy[i]);
}
// E-TOF:
name = "LABR3_E_TOF";
for (unsigned int i = 0 ; i < Physics->DetectorNumber.size(); i++) { // loop on number of detectors
GetHisto(family,name) -> Fill(Physics->Time[i], Physics->Energy[i]);
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment