CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalDCCHeaderDisplay.cc
Go to the documentation of this file.
1 
11 
13  EcalDCCHeaderCollection_ = iConfig.getParameter<edm::InputTag>("EcalDCCHeaderCollection");
14 }
15 
16 
18 
20  e.getByLabel(EcalDCCHeaderCollection_, DCCHeaders);
21 
22 
23  std::cout << "\n\n ^^^^^^^^^^^^^^^^^^ [EcalDCCHeaderDisplay] DCCHeaders collection size " << DCCHeaders->size() << std::endl;
24  std::cout << " [EcalDCCHeaderDisplay] the Header(s)\n" << std::endl;
25  //short dumpConter =0;
26 
27  for ( EcalRawDataCollection::const_iterator headerItr= DCCHeaders->begin();headerItr != DCCHeaders->end();
28  ++headerItr ) {
29  // int nevt =headerItr->getLV1();
30  bool skip = false;
31 
32  if(skip){continue;}
33  std::cout<<"###################################################################### \n";
34  std::cout << "FedId: "<< headerItr->fedId() <<"\n";
35 
36  std::cout << "DCCErrors: "<<headerItr->getDCCErrors()<<"\n";
37  std::cout<<"Run Number: "<<headerItr->getRunNumber()<<"\n";
38  std::cout<<"Event number (LV1): "<<headerItr->getLV1()<<"\n";
39  std::cout<<"Orbit: "<<headerItr->getOrbit()<<"\n";
40  std::cout<<"BX: "<<headerItr->getBX()<<"\n";
41  std::cout<<"TRIGGER TYPE: "<< headerItr->getBasicTriggerType()<<"\n";
42 
43  std::cout<<"RUNTYPE: "<< headerItr->getRunType()<<"\n";
44  std::cout<<"Half: "<<headerItr->getRtHalf()<<"\n";
45  std::cout<<"DCCIdInTCCCommand: "<<headerItr->getDccInTCCCommand()<<"\n";
46  std::cout<<"MGPA gain: "<<headerItr->getMgpaGain()<<"\n";
47  std::cout<<"MEM gain: "<<headerItr->getMemGain()<<"\n";
48  EcalDCCHeaderBlock::EcalDCCEventSettings settings = headerItr->getEventSettings();
49  std::cout<<"LaserPower: "<< settings.LaserPower<<"\n";
50  std::cout <<"LAserFilter: "<<settings.LaserFilter<<"\n";
51  std::cout<<"Wavelenght: "<<settings.wavelength<<"\n";
52  std::cout<<"delay: "<<settings.delay<<"\n";
53  std::cout<<"MEM Vinj: "<< settings.MEMVinj<<"\n";
54  std::cout<<"MGPA content: "<<settings.mgpa_content<<"\n";
55  std::cout<<"Ped offset dac: "<<settings.ped_offset<<"\n";
56 
57  std::cout<<"Selective Readout: "<<headerItr->getSelectiveReadout()<<"\n";
58  std::cout<<"ZS: "<<headerItr->getZeroSuppression()<<"\n";
59  std::cout <<"TZS: "<<headerItr->getTestZeroSuppression()<<"\n";
60  std::cout<<"SRStatus: "<<headerItr->getSrpStatus()<<"\n";
61 
62  std::vector<short> TCCStatus = headerItr->getTccStatus();
63  std::cout<<"TCC Status size: "<<TCCStatus.size()<<std::endl;
64  std::cout<<"TCC Status: ";
65  for(unsigned u =0;u<TCCStatus.size();u++){
66  std::cout<<TCCStatus[u]<<" ";
67  }
68  std::cout<<std::endl;
69 
70  std::vector<short> TTStatus = headerItr->getFEStatus();
71  std::cout<<"TT Status size: "<<TTStatus.size()<<std::endl;
72  std::cout<<"TT Statuses: ";
73  for(unsigned u =0;u<TTStatus.size();u++){
74  if ( !(u%14) ) std::cout<<std::endl; // TODO: add space after first six in a row
75  std::cout<<TTStatus[u]<<" ";
76  }
77  std::cout<<std::endl;
78  std::cout<<"######################################################################"<<std::endl;;
79 
80  }
81 
82 }
83 
84 
85 
T getParameter(std::string const &) const
edm::InputTag EcalDCCHeaderCollection_
std::vector< T >::const_iterator const_iterator
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
void analyze(const edm::Event &e, const edm::EventSetup &c)
EcalDCCHeaderDisplay(const edm::ParameterSet &ps)
tuple cout
Definition: gather_cfg.py:121