64 {
65 MsgStream log(
msgSvc(), name());
66 log << MSG::INFO << "in initialize()" << endmsg;
67 StatusCode status;
68 if(ntOut == true){
70 if ( nt1 ) m_tuple1 = nt1;
71 else {
72 m_tuple1 =
ntupleSvc()->book (
"FILE1/ec", CLID_ColumnWiseTuple,
"ks N-Tuple example");
73 if ( m_tuple1 ) {
74 status = m_tuple1->addItem ("ef", m_ef);
75 status = m_tuple1->addItem ("e5", m_e5);
76 status = m_tuple1->addItem ("ec", m_ec);
77 status = m_tuple1->addItem ("ct", m_ct);
78 }
79 else {
80 log << MSG::ERROR << " Cannot book N-tuple:" << long(m_tuple1) << endmsg;
81 return StatusCode::FAILURE;
82 }
83 }
84 }
85
86
87
88
89
90
91
92
93
94
95 double energy,thetaid,peak,peakerr,res,reserr;
96 string DataPath;
97 DataPath=getenv("MCCORROOT");
98 DataPath += "/share/evset.txt";
99 ifstream in1;
100 in1.open(DataPath.c_str(),ios::in);
101
102 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};
103 for(int i=0;i<504;i++){
105 in1>>thetaid;
106 in1>>peak;
107 in1>>peakerr;
108 in1>>res;
109 in1>>reserr;
110 int j = i/28;
111 dt->SetPoint(i,
energy,thetaid,peak);
112 dt->SetPointError(i,0,0,peakerr);
113 }
114 in1.close();
115 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
116 return StatusCode::SUCCESS;
117
118}
************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