Skip to content
Snippets Groups Projects
Commit dbf453da authored by LAVIRON Adrien's avatar LAVIRON Adrien
Browse files

Debugs in TComptonTelescopeSpectra ranges

parent d2648dcd
No related branches found
No related tags found
No related merge requests found
Pipeline #88851 passed
......@@ -166,12 +166,14 @@ void TComptonTelescopeSpectra::InitPhysicsSpectra()
// Calorimeter energy spectrum
for (unsigned int i = 0 ; i < fNumberOfTelescope ; i++) { // loop on number of detectors
name = "CT"+NPL::itoa(i+1)+"_CALOR_SPECTRUM";
AddHisto1D(name, name, 1000, 1, 2000, "COMPTONTELESCOPE/PHY/CALOR");
AddHisto1D(name, name, 1000, 1, 1000000, "COMPTONTELESCOPE/PHY/CALOR");
}
// Sum spectrum
name = "CT_SUM_SPECTRUM";
AddHisto1D(name, name, 1000, 1, 2000, "COMPTONTELESCOPE/PHY/CALOR");
for (unsigned int i = 0; i < fNumberOfTelescope; i++) {
name = "CT"+NPL::itoa(i+1)+"_SUM_SPECTRUM";
AddHisto1D(name, name, 1000, 1, 1000000, "COMPTONTELESCOPE/PHY/CALOR");
}
}
......
......@@ -53,7 +53,7 @@ int main()
int i = 0;
int c = 0;
const int pixelNumber = 64;
while (i < 1)
while (true)
{
// Load a file(s)
std::ifstream is;
......@@ -79,7 +79,7 @@ int main()
D -> decodeRawMFM(); // get rid of the first two (empty) events
D -> decodeRawMFM();
while (c < 1001) //(D -> getCursor() < length)
while (D -> getCursor() < length)
{
// Clear raw data and physics objects
m_NPDetectorManager->ClearEventPhysics();
......@@ -109,7 +109,7 @@ int main()
m_OutputTree->Fill();
c++;
//usleep(100);//Simulated 10kHz count rate
usleep(10000);//Simulated 100Hz count rate
}
//std::cout << "test compil\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment