CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
popcon::EcalTPGBadXTHandler Class Reference

#include <EcalTPGBadXTHandler.h>

Inheritance diagram for popcon::EcalTPGBadXTHandler:
popcon::PopConSourceHandler< EcalTPGCrystalStatus >

Public Member Functions

 EcalTPGBadXTHandler (edm::ParameterSet const &)
 
void getNewObjects () override
 
std::string id () const override
 
EcalTPGCrystalStatusproduceEcalTrgChannelStatus ()
 
void readFromFile (const char *inputFile)
 
void writeFile (const char *inputFile)
 
 ~EcalTPGBadXTHandler () override
 
- Public Member Functions inherited from popcon::PopConSourceHandler< EcalTPGCrystalStatus >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const *, std::string const > operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Public Attributes

EcalCondDBInterfaceeconn
 

Private Member Functions

std::string to_string (char value[])
 

Private Attributes

unsigned int m_firstRun
 
std::string m_gentag
 
int m_i_badXT
 
unsigned int m_i_run_number
 
std::string m_i_tag
 
int m_i_version
 
unsigned int m_lastRun
 
std::string m_location
 
std::string m_locationsource
 
std::string m_name
 
std::string m_pass
 
unsigned int m_runnr
 
std::string m_runtype
 
std::string m_sid
 
std::string m_user
 
const EcalTPGCrystalStatusmycrystalStat
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< EcalTPGCrystalStatus >
typedef std::vector< Triplet > Container
 
typedef std::vector< std::pair< EcalTPGCrystalStatus *, cond::Time_t > > OldContainer
 
typedef PopConSourceHandler< EcalTPGCrystalStatusself
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef EcalTPGCrystalStatus value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< EcalTPGCrystalStatus >
int add (value_type *payload, Summary *summary, Time_t time)
 
cond::persistency::SessiondbSession () const
 
- Protected Attributes inherited from popcon::PopConSourceHandler< EcalTPGCrystalStatus >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Definition at line 50 of file EcalTPGBadXTHandler.h.

Constructor & Destructor Documentation

popcon::EcalTPGBadXTHandler::EcalTPGBadXTHandler ( edm::ParameterSet const &  )

Definition at line 25 of file EcalTPGBadXTHandler.cc.

References edm::ParameterSet::getParameter(), m_firstRun, m_gentag, m_lastRun, m_location, m_locationsource, m_pass, m_runtype, m_sid, m_user, and AlCaHLTBitMon_QueryRunRegistry::string.

26  : m_name(ps.getUntrackedParameter<std::string>("name","EcalTPGBadXTHandler")) {
27 
28  edm::LogInfo("EcalTPGBadXTHandler") << "EcalTPGBadXT Source handler constructor.";
29  m_firstRun=static_cast<unsigned int>(atoi( ps.getParameter<std::string>("firstRun").c_str()));
30  m_lastRun=static_cast<unsigned int>(atoi( ps.getParameter<std::string>("lastRun").c_str()));
31  m_sid= ps.getParameter<std::string>("OnlineDBSID");
32  m_user= ps.getParameter<std::string>("OnlineDBUser");
33  m_pass= ps.getParameter<std::string>("OnlineDBPassword");
34  m_locationsource= ps.getParameter<std::string>("LocationSource");
35  m_location=ps.getParameter<std::string>("Location");
36  m_gentag=ps.getParameter<std::string>("GenTag");
37  m_runtype=ps.getParameter<std::string>("RunType");
38 
39  edm::LogInfo("EcalTPGBadXTHandler") << m_sid<<"/"<<m_user<<"/"<<m_location<<"/"<<m_gentag;
40 
41 
42 }
popcon::EcalTPGBadXTHandler::~EcalTPGBadXTHandler ( )
override

Definition at line 44 of file EcalTPGBadXTHandler.cc.

45 {
46 }

Member Function Documentation

void popcon::EcalTPGBadXTHandler::getNewObjects ( )
overridevirtual

Implements popcon::PopConSourceHandler< EcalTPGCrystalStatus >.

Definition at line 49 of file EcalTPGBadXTHandler.cc.

References gather_cfg::cout, writedatasetfile::dataset, MillePedeFileConverter_cfg::e, econn, cppFunctionSkipper::exception, Exception, EcalCondDBInterface::fetchConfigDataSet(), EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchGlobalRunListByLocation(), FEConfigMainInfo::getBxtId(), RunTPGConfigDat::getConfigTag(), EcalCondDBInterface::getEcalLogicIDSetOrdered(), FEConfigBadXTDat::getFedId(), RunList::getRuns(), FEConfigBadXTDat::getStatus(), FEConfigBadXTDat::getTTId(), RunTPGConfigDat::getVersion(), FEConfigMainInfo::getVersion(), FEConfigBadXTDat::getXTId(), cond::TagInfo_t::lastInterval, m_firstRun, m_gentag, m_i_badXT, m_i_run_number, m_i_tag, m_i_version, m_lastRun, m_location, m_pass, m_runtype, m_sid, popcon::PopConSourceHandler< EcalTPGCrystalStatus >::m_to_transfer, m_user, AlCaHLTBitMon_ParallelJobs::p, produceEcalTrgChannelStatus(), DetId::rawId(), readFromFile(), IODConfig::setConfigTag(), RunTag::setGeneralTag(), FEConfigBadXTInfo::setId(), LocationDef::setLocation(), RunTag::setLocationDef(), RunTypeDef::setRunType(), RunTag::setRunTypeDef(), EcalCondObjectContainer< T >::setValue(), FEConfigMainInfo::setVersion(), EBDetId::SMCRYSTALMODE, AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< EcalTPGCrystalStatus >::tagInfo(), writeFile(), x, y, and z.

50 {
51  edm::LogInfo("EcalTPGBadXTHandler") << "Started GetNewObjects!!!";
52 
53 
54  unsigned int max_since=0;
55  max_since=static_cast<unsigned int>(tagInfo().lastInterval.first);
56  edm::LogInfo("EcalTPGBadXTHandler") << "max_since : " << max_since;
57  edm::LogInfo("EcalTPGBadXTHandler") << "retrieved last payload ";
58 
59  // here we retrieve all the runs after the last from online DB
60  edm::LogInfo("EcalTPGBadXTHandler") << "Retrieving run list from ONLINE DB ... ";
61 
62  edm::LogInfo("EcalTPGBadXTHandler") << "Making connection...";
64  edm::LogInfo("EcalTPGBadXTHandler")<< "Done.";
65 
66  if (!econn)
67  {
68  std::cout << " connection parameters " <<m_sid <<"/"<<m_user<<std::endl;
69  // cerr << e.what() << std::endl;
70  throw cms::Exception("OMDS not available");
71  }
72 
73  LocationDef my_locdef;
74  my_locdef.setLocation(m_location);
75 
76  RunTypeDef my_rundef;
77  my_rundef.setRunType(m_runtype);
78 
79  RunTag my_runtag;
80  my_runtag.setLocationDef( my_locdef );
81  my_runtag.setRunTypeDef( my_rundef );
82  my_runtag.setGeneralTag(m_gentag);
83 
84  readFromFile("last_tpg_badXT_settings.txt");
85 
86 
87  unsigned int min_run=m_i_run_number+1;
88 
90  min_run=m_i_run_number+1;
91  } else {
92  min_run=m_firstRun;
93  }
94  if(min_run<max_since) {
95  min_run= max_since+1; // we have to add 1 to the last transferred one
96  }
97 
98  std::cout<<"m_i_run_number"<< m_i_run_number <<"m_firstRun "<<m_firstRun<< "max_since " <<max_since<< std::endl;
99 
100 
101  unsigned int max_run=m_lastRun;
102  edm::LogInfo("EcalTPGBadXTHandler") << "min_run= " << min_run << "max_run= " << max_run;
103 
104  RunList my_list;
105  my_list=econn->fetchGlobalRunListByLocation(my_runtag, min_run, max_run, my_locdef);
106  // my_list=econn->fetchRunListByLocation(my_runtag, min_run, max_run, my_locdef);
107 
108  std::vector<RunIOV> run_vec= my_list.getRuns();
109  size_t num_runs=run_vec.size();
110 
111  std::cout <<"number of runs is : "<< num_runs<< std::endl;
112 
113  std::vector<EcalLogicID> my_EcalLogicId;
114  std::vector<EcalLogicID> my_EcalLogicId_EE;
115 
116  unsigned int irun=0;
117  if(num_runs>0){
118 
119 
120  my_EcalLogicId = econn->getEcalLogicIDSetOrdered( "ECAL_crystal_number_fedccuxt",
121  610, 650,
122  1, 100,
123  0, 100,
124  "EB_crystal_number",123 );
125 
126  my_EcalLogicId_EE = econn->getEcalLogicIDSetOrdered( "ECAL_crystal_number_fedccuxt",
127  600, 700,
128  1, 100,
129  0, 100,
130  "EE_crystal_number",123 );
131 
132 
133 
134  for(size_t kr=0; kr<run_vec.size(); kr++){
135  std::cout << "here we are in run "<<kr<<std::endl;
136  irun=static_cast<unsigned int>(run_vec[kr].getRunNumber());
137 
138  std::cout<<" **************** "<<std::endl;
139  std::cout<<" **************** "<<std::endl;
140  std::cout<<" run= "<<irun<<std::endl;
141 
142  // retrieve the data :
143  std::map<EcalLogicID, RunTPGConfigDat> dataset;
144  econn->fetchDataSet(&dataset, &run_vec[kr]);
145 
146  std::string the_config_tag="";
147  int the_config_version=0;
148 
149  std::map< EcalLogicID, RunTPGConfigDat>::const_iterator it;
150 
151  int nr=0;
152  for( it=dataset.begin(); it!=dataset.end(); it++ )
153  {
154  ++nr;
155  //EcalLogicID ecalid = it->first;
156 
157  RunTPGConfigDat dat = it->second;
158  the_config_tag=dat.getConfigTag();
159  the_config_version=dat.getVersion();
160  }
161 
162  // it is all the same for all SM... get the last one
163 
164 
165  std::cout<<" run= "<<irun<<" tag "<<the_config_tag<<" version="<<the_config_version <<std::endl;
166 
167  // here we should check if it is the same as previous run.
168 
169 
170  if((the_config_tag != m_i_tag || the_config_version != m_i_version ) && nr>0 ) {
171  std::cout<<"the tag is different from last transferred run ... retrieving last config set from DB"<<std::endl;
172 
173  FEConfigMainInfo fe_main_info;
174  fe_main_info.setConfigTag(the_config_tag);
175  fe_main_info.setVersion(the_config_version);
176  std::cout << " version=" <<fe_main_info.getVersion()<< std::endl;
177 
178 
179  try{
180  std::cout << " before fetch config set" << std::endl;
181  econn-> fetchConfigSet(&fe_main_info);
182  std::cout << " after fetch config set" << std::endl;
183 
184 
185  // now get TPGBadXT
186  int badxtId=fe_main_info.getBxtId();
187 
188  if( badxtId != m_i_badXT && badxtId!=0) {
189 
190  FEConfigBadXTInfo fe_badXt_info;
191  fe_badXt_info.setId(badxtId);
192  econn-> fetchConfigSet(&fe_badXt_info);
193  std::vector<FEConfigBadXTDat> dataset_TpgBadXT;
194  econn->fetchConfigDataSet(&dataset_TpgBadXT, &fe_badXt_info);
195 
196  // NB new
197 
198  EcalTPGCrystalStatus* badXt;
199  badXt = produceEcalTrgChannelStatus();
200 
201 
202  typedef std::vector<FEConfigBadXTDat>::const_iterator CIfeped;
203  EcalLogicID ecid_xt;
204  FEConfigBadXTDat rd_badXt;
205  int icells=0;
206 
207  for (CIfeped p = dataset_TpgBadXT.begin(); p != dataset_TpgBadXT.end(); p++) {
208  rd_badXt = *p;
209 
210  int fed_id=rd_badXt.getFedId();
211  //int tcc_id=rd_badXt.getTCCId();
212  int tt_id=rd_badXt.getTTId();
213  int xt_id=rd_badXt.getXTId();
214 
215  // EB data
216  if (fed_id>=610 && fed_id<=645) {
217 
218  // logic id is 1011ssxxxx
219  // get SM id
220  int sm_num=0;
221  if(fed_id<=627 ) sm_num=fed_id-609+18;
222  if(fed_id>627 ) sm_num=fed_id-627;
223 
224  // get crystal id
225  int xt_num=0;
226 
227  for(size_t ixt=0; ixt<my_EcalLogicId.size(); ixt++){
228 
229  if(my_EcalLogicId[ixt].getID1()==fed_id && my_EcalLogicId[ixt].getID2()==tt_id
230  && my_EcalLogicId[ixt].getID3()==xt_id ) {
231  //1011060504
232  int ecid= my_EcalLogicId[ixt].getLogicID();
233  xt_num=(ecid)-(101100+sm_num)*10000;
234 
235  }
236  }
237 
238  std::cout<< " masking crystal "<<sm_num<<"/"<<xt_num<<" from fed/tt/xt"<<
239  fed_id<<"/"<<tt_id<<"/"<<xt_id<< std::endl;
240  if( sm_num==0 && xt_num==0 ) {
241  std::cout<< " ERROR FOR crystal from fed/tt/xt"<<
242  fed_id<<"/"<<tt_id<<"/"<<xt_id<< std::endl;
243  }
244  EBDetId ebdetid(sm_num,xt_num,EBDetId::SMCRYSTALMODE);
245 
246  badXt->setValue(ebdetid.rawId(),rd_badXt.getStatus());
247  ++icells;
248  } else {
249  // EE data
250 
251  long x=0;
252  long y=0;
253  long z=0;
254 
255  for(size_t ixt=0; ixt<my_EcalLogicId_EE.size(); ixt++){
256 
257  if(my_EcalLogicId_EE[ixt].getID1()==fed_id && my_EcalLogicId_EE[ixt].getID2()==tt_id
258  && my_EcalLogicId_EE[ixt].getID3()==xt_id ) {
259 
260  long ecid=(long) my_EcalLogicId_EE[ixt].getLogicID();
261  // logic_id 201Zxxxyyy Z=0 / 2 -> z= -1 / 1 , x -> 1 100, y -> 1 100
262  y=ecid-( (long)(ecid/1000) ) *1000;
263  x= ( ecid- y) /1000 ;
264  x= x -( (long)(x/1000) ) *1000;
265  z= (ecid-y-x*1000 )/1000000 -2010;
266  if(z==0) z=-1;
267  if(z==2) z= 1;
268  }
269  }
270 
271  if( x==0 && y==0 && z==0 ) {
272  std::cout<< " ERROR FOR crystal from fed/tt/xt"<<
273  fed_id<<"/"<<tt_id<<"/"<<xt_id<< std::endl;
274  }
275  EEDetId eedetid(x,y,z);
276  badXt->setValue(eedetid.rawId(),rd_badXt.getStatus());
277  ++icells;
278  }
279  }//end for over data
280 
281  edm::LogInfo("EcalTPGBadXTHandler") << "Finished badXT reading";
282 
283  Time_t snc= (Time_t) irun ;
284  m_to_transfer.push_back(std::make_pair((EcalTPGCrystalStatus*)badXt,snc));
285 
286  m_i_run_number=irun;
287  m_i_tag=the_config_tag;
288  m_i_version=the_config_version;
289  m_i_badXT=badxtId;
290 
291  writeFile("last_tpg_badXT_settings.txt");
292 
293  } else {
294 
295  m_i_run_number=irun;
296  m_i_tag=the_config_tag;
297  m_i_version=the_config_version;
298 
299  writeFile("last_tpg_badXT_settings.txt");
300 
301  std::cout<< " even if the tag/version is not the same, the badXT id is the same -> no transfer needed "<< std::endl;
302 
303  }
304 
305  }
306 
307  catch (std::exception &e) {
308  std::cout << "ERROR: THIS CONFIG DOES NOT EXIST: tag=" <<the_config_tag
309  <<" version="<<the_config_version<< std::endl;
310  std::cout << e.what() << std::endl;
311  m_i_run_number=irun;
312 
313  }
314  std::cout<<" **************** "<<std::endl;
315 
316  } else if(nr==0) {
317  m_i_run_number=irun;
318  std::cout<< " no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed "<< std::endl;
319  std::cout<<" **************** "<<std::endl;
320  } else {
321  m_i_run_number=irun;
322  m_i_tag=the_config_tag;
323  m_i_version=the_config_version;
324  std::cout<< " the tag/version is the same -> no transfer needed "<< std::endl;
325  std::cout<<" **************** "<<std::endl;
326  writeFile("last_tpg_badXT_settings.txt");
327  }
328 
329 
330  }//end for over kr (nr of runs)
331  }//end if
332 
333  delete econn;
334 
335  edm::LogInfo("EcalTPGBadXTHandler")<< "Ecal - > end of getNewObjects -----------";
336 }
void setRunTypeDef(const RunTypeDef &runTypeDef)
Definition: RunTag.cc:70
std::vector< RunIOV > getRuns()
Definition: RunList.cc:35
void writeFile(const char *inputFile)
RunList fetchGlobalRunListByLocation(const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) noexcept(false)
std::string getConfigTag() const
int getVersion() const
Definition: RunTag.h:13
void setVersion(int id)
void fetchDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *iov) noexcept(false)
float float float z
int getXTId() const
void setValue(const uint32_t id, const Item &item)
cond::ValidityInterval lastInterval
Definition: Types.h:76
std::vector< EcalLogicID > getEcalLogicIDSetOrdered(std::string name, int fromId1, int toId1, int fromId2=EcalLogicID::NULLID, int toId2=EcalLogicID::NULLID, int fromId3=EcalLogicID::NULLID, int toId3=EcalLogicID::NULLID, std::string mapsTo="", int orderedBy=EcalLogicID::NULLID) noexcept(false)
int getStatus() const
EcalCondDBInterface * econn
void setLocationDef(const LocationDef &locDef)
Definition: RunTag.cc:53
EcalTPGCrystalStatus * produceEcalTrgChannelStatus()
int getFedId() const
void setRunType(std::string runtype)
Definition: RunTypeDef.cc:33
int getTTId() const
int getVersion() const
void setConfigTag(std::string x)
Definition: IODConfig.h:31
int getBxtId() const
void setLocation(std::string loc)
Definition: LocationDef.cc:33
void fetchConfigDataSet(std::vector< DATT > *fillMap, ICONF *iconf) noexcept(false)
void setGeneralTag(std::string tag)
Definition: RunTag.cc:36
static const int SMCRYSTALMODE
Definition: EBDetId.h:159
void readFromFile(const char *inputFile)
std::string popcon::EcalTPGBadXTHandler::id ( ) const
inlineoverridevirtual
EcalTPGCrystalStatus * popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus ( )

Definition at line 393 of file EcalTPGBadXTHandler.cc.

References EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, EcalCondObjectContainer< T >::setValue(), EBDetId::validDetId(), and EEDetId::validDetId().

Referenced by getNewObjects().

394 {
395 
397  // barrel
398  for(int ieta=-EBDetId::MAX_IETA; ieta<=EBDetId::MAX_IETA; ++ieta) {
399  if(ieta==0) continue;
400  for(int iphi=EBDetId::MIN_IPHI; iphi<=EBDetId::MAX_IPHI; ++iphi) {
401  if (EBDetId::validDetId(ieta,iphi)) {
402  EBDetId ebid(ieta,iphi);
403  ical->setValue( ebid, 0 );
404  }
405  }
406  }
407  // endcap
408  for(int iX=EEDetId::IX_MIN; iX<=EEDetId::IX_MAX ;++iX) {
409  for(int iY=EEDetId::IY_MIN; iY<=EEDetId::IY_MAX; ++iY) {
410  // make an EEDetId since we need EEDetId::rawId() to be used as the key for the pedestals
411  if (EEDetId::validDetId(iX,iY,1)) {
412  EEDetId eedetidpos(iX,iY,1);
413  ical->setValue( eedetidpos, 0 );
414  }
415  if (EEDetId::validDetId(iX,iY,-1)) {
416  EEDetId eedetidneg(iX,iY,-1);
417  ical->setValue( eedetidneg, 0 );
418  }
419  }
420  }
421  return ical;
422 }
static const int MIN_IPHI
Definition: EBDetId.h:135
static const int IX_MIN
Definition: EEDetId.h:290
static const int IY_MIN
Definition: EEDetId.h:294
static bool validDetId(int i, int j)
check if a valid index combination
Definition: EBDetId.h:118
void setValue(const uint32_t id, const Item &item)
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
static const int IX_MAX
Definition: EEDetId.h:298
static const int MAX_IPHI
Definition: EBDetId.h:137
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:136
static const int IY_MAX
Definition: EEDetId.h:302
void popcon::EcalTPGBadXTHandler::readFromFile ( const char *  inputFile)

Definition at line 338 of file EcalTPGBadXTHandler.cc.

References analyzePatCleaning_cfg::inputFile, mps_splice::line, m_i_badXT, m_i_run_number, m_i_tag, m_i_version, str, and to_string().

Referenced by getNewObjects().

338  {
339  //-------------------------------------------------------------
340 
341  m_i_tag="";
342  m_i_version=0;
343  m_i_run_number=0;
344  m_i_badXT=0;
345 
346  FILE *inpFile; // input file
347  inpFile = fopen(inputFile,"r");
348  if(!inpFile) {
349  edm::LogError("EcalTPGBadXTHandler")<<"*** Can not open file: "<<inputFile;
350  return;
351  }
352 
353  char line[256];
354 
355  std::ostringstream str;
356 
357  fgets(line,255,inpFile);
358  m_i_tag=to_string(line);
359  str << "gen tag " << m_i_tag << std::endl ; // should I use this?
360 
361  fgets(line,255,inpFile);
362  m_i_version=atoi(line);
363  str << "version= " << m_i_version << std::endl ;
364 
365  fgets(line,255,inpFile);
366  m_i_run_number=atoi(line);
367  str << "run_number= " << m_i_run_number << std::endl ;
368 
369  fgets(line,255,inpFile);
370  m_i_badXT=atoi(line);
371  str << "badXT_config= " << m_i_badXT << std::endl ;
372 
373 
374  fclose(inpFile); // close inp. file
375 
376 }
std::string to_string(char value[])
#define str(s)
std::string popcon::EcalTPGBadXTHandler::to_string ( char  value[])
inlineprivate

Definition at line 68 of file EcalTPGBadXTHandler.h.

References relativeConstraints::value.

Referenced by readFromFile().

68  {
69  std::ostringstream streamOut;
70  streamOut << value;
71  return streamOut.str();
72  }
void popcon::EcalTPGBadXTHandler::writeFile ( const char *  inputFile)

Definition at line 378 of file EcalTPGBadXTHandler.cc.

References m_i_badXT, m_i_run_number, m_i_tag, and m_i_version.

Referenced by getNewObjects(), and Vispa.Main.TabController.TabController::save().

378  {
379  //-------------------------------------------------------------
380 
381 
382  std::ofstream myfile;
383  myfile.open (inputFile);
384  myfile << m_i_tag <<std::endl;
385  myfile << m_i_version <<std::endl;
386  myfile << m_i_run_number <<std::endl;
387  myfile << m_i_badXT <<std::endl;
388 
389  myfile.close();
390 
391 }

Member Data Documentation

EcalCondDBInterface* popcon::EcalTPGBadXTHandler::econn

Definition at line 65 of file EcalTPGBadXTHandler.h.

Referenced by getNewObjects().

unsigned int popcon::EcalTPGBadXTHandler::m_firstRun
private

Definition at line 76 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

std::string popcon::EcalTPGBadXTHandler::m_gentag
private

Definition at line 80 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

int popcon::EcalTPGBadXTHandler::m_i_badXT
private

Definition at line 91 of file EcalTPGBadXTHandler.h.

Referenced by getNewObjects(), readFromFile(), and writeFile().

unsigned int popcon::EcalTPGBadXTHandler::m_i_run_number
private

Definition at line 90 of file EcalTPGBadXTHandler.h.

Referenced by getNewObjects(), readFromFile(), and writeFile().

std::string popcon::EcalTPGBadXTHandler::m_i_tag
private

Definition at line 88 of file EcalTPGBadXTHandler.h.

Referenced by getNewObjects(), readFromFile(), and writeFile().

int popcon::EcalTPGBadXTHandler::m_i_version
private

Definition at line 89 of file EcalTPGBadXTHandler.h.

Referenced by getNewObjects(), readFromFile(), and writeFile().

unsigned int popcon::EcalTPGBadXTHandler::m_lastRun
private

Definition at line 77 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

std::string popcon::EcalTPGBadXTHandler::m_location
private

Definition at line 79 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

std::string popcon::EcalTPGBadXTHandler::m_locationsource
private

Definition at line 84 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler().

std::string popcon::EcalTPGBadXTHandler::m_name
private

Definition at line 85 of file EcalTPGBadXTHandler.h.

std::string popcon::EcalTPGBadXTHandler::m_pass
private

Definition at line 83 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

unsigned int popcon::EcalTPGBadXTHandler::m_runnr
private

Definition at line 86 of file EcalTPGBadXTHandler.h.

std::string popcon::EcalTPGBadXTHandler::m_runtype
private

Definition at line 87 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

std::string popcon::EcalTPGBadXTHandler::m_sid
private

Definition at line 81 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

std::string popcon::EcalTPGBadXTHandler::m_user
private

Definition at line 82 of file EcalTPGBadXTHandler.h.

Referenced by EcalTPGBadXTHandler(), and getNewObjects().

const EcalTPGCrystalStatus* popcon::EcalTPGBadXTHandler::mycrystalStat
private

Definition at line 74 of file EcalTPGBadXTHandler.h.