/[PAMELA software]/PamelaDigitizer/DigitizeND.cxx
ViewVC logotype

Annotation of /PamelaDigitizer/DigitizeND.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed May 21 09:50:39 2008 UTC (16 years, 6 months ago) by pamelats
Branch: MAIN
CVS Tags: v3r00, v3r01, v3r02
*** empty log message ***

1 pamelats 1.1 #include <sstream>
2     #include <fstream>
3     #include <stdlib.h>
4     #include <stdio.h>
5     #include <string.h>
6     #include <ctype.h>
7     #include <time.h>
8     #include "Riostream.h"
9     #include "TFile.h"
10     #include "TDirectory.h"
11     #include "TTree.h"
12     #include "TLeafI.h"
13     #include "TH1.h"
14     #include "TH2.h"
15     #include "TF1.h"
16     #include "TMath.h"
17     #include "TRandom.h"
18     #include "TSQLServer.h"
19     #include "TSystem.h"
20     #include "CalibTrk1Event.h"
21     #include "CalibTrk2Event.h"
22     //
23     #include "Digitizer.h"
24     #include "CRC.h"
25     //
26     #include <PamelaRun.h>
27     #include <physics/calorimeter/CalorimeterEvent.h>
28     #include <CalibCalPedEvent.h>
29     #include "GLTables.h"
30    
31     void Digitizer::DigitizeND(){
32     // creato: S. Borisov, INFN Roma2 e MEPHI, Sett 2007
33     Int_t i=0;
34     UShort_t NdN=0;
35     // fhBookTree->SetBranchStatus("Nthnd",1);//modified by E.Vannuccini 03/08
36     // fhBookTree->SetBranchStatus("Itubend",1);
37     // fhBookTree->SetBranchStatus("Iparnd",1);
38     // fhBookTree->SetBranchStatus("Xinnd",1);
39     // fhBookTree->SetBranchStatus("Yinnd",1);
40     // fhBookTree->SetBranchStatus("Zinnd",1);
41     // fhBookTree->SetBranchStatus("Xoutnd",1);
42     // fhBookTree->SetBranchStatus("Youtnd",1);
43     // fhBookTree->SetBranchStatus("Zoutnd",1);
44     // fhBookTree->SetBranchStatus("Erelnd",1);
45     // fhBookTree->SetBranchStatus("Timend",1);
46     // fhBookTree->SetBranchStatus("Pathnd",1);
47     // fhBookTree->SetBranchStatus("P0nd",1);
48     //cout<<"n="<<Nthnd<<" "<<NdN<<"\n";
49     for(i=0;i<Nthnd;i++){
50     if(Iparnd[i]==13){
51     NdN++;
52     }
53     }
54     //NdN=100; //only for debug
55    
56     for(i=0;i<3;i++){
57     fDataND[2*i]=0x0000;
58     fDataND[2*i+1]=0x010F;
59     }
60     fDataND[0]=0xFF00 & (256*NdN);
61     }

  ViewVC Help
Powered by ViewVC 1.1.23