Skip to content
Snippets Groups Projects
Commit 04275504 authored by matta's avatar matta
Browse files

* Modify Template so it effectively read the Calibration

parent 4c399f64
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ VIS= all
%%%%%%%%%%%%%%%%%%%%%
%AddThinSi
AddThinSi
%%%%%%%%%% Det 1 %%%%%%%%
ThinSi
A= 17.61 9.85 104.11
......
......@@ -17,21 +17,22 @@ int main(int argc, char** argv)
myOptionManager->SetDetectorFile(name);
}
// Instantiate RootOutput
RootOutput::getInstance("Analysis/Template_AnalyzedData", "AnalysedTree");
// get input files from NPOptionManager
string detectorfileName = myOptionManager->GetDetectorFile();
string calibrationfileName = myOptionManager->GetCalibrationFile();
string OutputfileName = myOptionManager->GetOutputFile();
// Instantiate RootOutput
RootOutput::getInstance("Analysis/"+OutputfileName, "AnalysedTree");
// Instantiate the Calibration Manger using a file
CalibrationManager* myCalibration = CalibrationManager::getInstance(calibrationfileName);
// Instantiate the detector using a file
NPA::DetectorManager* myDetector = new DetectorManager();
myDetector->ReadConfigurationFile(detectorfileName);
myCalibration->LoadParameterFromFile();
// Get the formed Chained Tree and Treat it
TChain* Chain = RootInput:: getInstance() -> GetChain();
......
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