63 {
64 MsgStream log(
msgSvc(), name());
65 log << MSG::INFO << "in initialize()" << endmsg;
66 StatusCode status;
67 if(ntOut == true){
69 if ( nt1 ) m_tuple1 = nt1;
70 else {
71 m_tuple1 =
ntupleSvc()->book (
"FILE1/ec", CLID_ColumnWiseTuple,
"ks N-Tuple example");
72 if ( m_tuple1 ) {
73 status = m_tuple1->addItem ("ef", m_ef);
74 status = m_tuple1->addItem ("e5", m_e5);
75 status = m_tuple1->addItem ("ec", m_ec);
76 status = m_tuple1->addItem ("ct", m_ct);
77 }
78 else {
79 log << MSG::ERROR << " Cannot book N-tuple:" << long(m_tuple1) << endmsg;
80 return StatusCode::FAILURE;
81 }
82 }
83 }
84
85
86
87
88
89
90
91
92
93
94 double energy,thetaid,peak,peakerr,res,reserr;
95 string DataPath;
96 DataPath=getenv("MCCORROOT");
97 DataPath += "/share/evset.txt";
99 in1.open(DataPath.c_str(),ios::in);
100
101 double ep[18]={0.03,0.04,0.05,0.075,0.1,0.125,0.15,0.2,0.25,0.3,0.4,0.5,0.75,1.0,1.25,1.5,1.75,2.0};
102 for(int i=0;i<504;i++){
104 in1>>thetaid;
105 in1>>peak;
106 in1>>peakerr;
107 in1>>res;
108 in1>>reserr;
109 int j = i/28;
110 dt->SetPoint(i,
energy,thetaid,peak);
111 dt->SetPointError(i,0,0,peakerr);
112 }
113 in1.close();
114 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
115 return StatusCode::SUCCESS;
116
117}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy