|
#include <sstream> |
|
|
#include <fstream> |
|
|
#include <stdlib.h> |
|
|
#include <stdio.h> |
|
|
#include <string.h> |
|
|
#include <ctype.h> |
|
|
#include <time.h> |
|
|
#include "Riostream.h" |
|
|
#include "TFile.h" |
|
|
#include "TDirectory.h" |
|
|
#include "TTree.h" |
|
|
#include "TLeafI.h" |
|
|
#include "TH1.h" |
|
|
#include "TH2.h" |
|
|
#include "TF1.h" |
|
|
#include "TMath.h" |
|
|
#include "TRandom.h" |
|
|
#include "TSQLServer.h" |
|
|
#include "TSystem.h" |
|
|
#include "CalibTrk1Event.h" |
|
|
#include "CalibTrk2Event.h" |
|
|
// |
|
| 1 |
#include "Digitizer.h" |
#include "Digitizer.h" |
|
#include "CRC.h" |
|
|
// |
|
|
#include <PamelaRun.h> |
|
|
#include <physics/calorimeter/CalorimeterEvent.h> |
|
|
#include <CalibCalPedEvent.h> |
|
|
#include "GLTables.h" |
|
| 2 |
|
|
| 3 |
void Digitizer::DigitizeDummy() { |
void Digitizer::DigitizeDummy() { |
| 4 |
|
|
| 334 |
|
|
| 335 |
GL_PARAM *glparam = new GL_PARAM(); |
GL_PARAM *glparam = new GL_PARAM(); |
| 336 |
error = 0; |
error = 0; |
| 337 |
error = glparam->Query_GL_PARAM(0,8,fDbc); |
error = glparam->Query_GL_PARAM(0,50,fDbc); |
| 338 |
|
|
| 339 |
if(error<0) { |
if(error<0) { |
| 340 |
FileCalib = new TFile("CalibTrk_00110_000_000.root"); |
FileCalib = new TFile("CalibTrk_00110_000_000.root"); |
| 343 |
// |
// |
| 344 |
calibfile.str(""); |
calibfile.str(""); |
| 345 |
calibfile << glparam->PATH.Data() << "/"; |
calibfile << glparam->PATH.Data() << "/"; |
| 346 |
calibfile << glparam->NAME.Data(); |
calibfile << glparam->NAME.Data() << "/CalibTrk_00110_000_000.root"; |
| 347 |
// |
// |
| 348 |
printf("\n Using GP calibration file for tracker : \n %s \n",calibfile.str().c_str()); |
printf("\n Using GP calibration file for tracker : \n %s \n",calibfile.str().c_str()); |
| 349 |
FileCalib = new TFile( calibfile.str().c_str() ); |
FileCalib = new TFile( calibfile.str().c_str() ); |