|
#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::DigitizeND(){ |
void Digitizer::DigitizeND(){ |
4 |
// creato: S. Borisov, INFN Roma2 e MEPHI, Sett 2007 |
// creato: S. Borisov, INFN Roma2 e MEPHI, Sett 2007 |
5 |
Int_t i=0; |
Int_t i=0; |
6 |
UShort_t NdN=0; |
UShort_t NdN=0; |
|
// fhBookTree->SetBranchStatus("Nthnd",1);//modified by E.Vannuccini 03/08 |
|
|
// fhBookTree->SetBranchStatus("Itubend",1); |
|
|
// fhBookTree->SetBranchStatus("Iparnd",1); |
|
|
// fhBookTree->SetBranchStatus("Xinnd",1); |
|
|
// fhBookTree->SetBranchStatus("Yinnd",1); |
|
|
// fhBookTree->SetBranchStatus("Zinnd",1); |
|
|
// fhBookTree->SetBranchStatus("Xoutnd",1); |
|
|
// fhBookTree->SetBranchStatus("Youtnd",1); |
|
|
// fhBookTree->SetBranchStatus("Zoutnd",1); |
|
|
// fhBookTree->SetBranchStatus("Erelnd",1); |
|
|
// fhBookTree->SetBranchStatus("Timend",1); |
|
|
// fhBookTree->SetBranchStatus("Pathnd",1); |
|
|
// fhBookTree->SetBranchStatus("P0nd",1); |
|
7 |
//cout<<"n="<<Nthnd<<" "<<NdN<<"\n"; |
//cout<<"n="<<Nthnd<<" "<<NdN<<"\n"; |
8 |
for(i=0;i<Nthnd;i++){ |
for(i=0;i<Nthnd;i++){ |
9 |
if(Iparnd[i]==13){ |
if(Iparnd[i]==13){ |