CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
EcalDCCHeaderDisplay Class Reference

#include <EcalDCCHeaderDisplay.h>

Inheritance diagram for EcalDCCHeaderDisplay:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EcalDCCHeaderDisplay (const edm::ParameterSet &ps)
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Attributes

edm::InputTag EcalDCCHeaderCollection_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Detailed Description

module for displaying unpacked DCCHeader information

Author
A. Ghezzi
S. Cooper
G. Franzoni

Definition at line 18 of file EcalDCCHeaderDisplay.h.

Constructor & Destructor Documentation

◆ EcalDCCHeaderDisplay()

EcalDCCHeaderDisplay::EcalDCCHeaderDisplay ( const edm::ParameterSet iConfig)

module for displaying unpacked DCCHeader information

Author
A. Ghezzi
S. Cooper
G. Franzoni

Definition at line 12 of file EcalDCCHeaderDisplay.cc.

12  {
13  EcalDCCHeaderCollection_ = iConfig.getParameter<edm::InputTag>("EcalDCCHeaderCollection");
14 }

References EcalDCCHeaderCollection_, and edm::ParameterSet::getParameter().

Member Function Documentation

◆ analyze()

void EcalDCCHeaderDisplay::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprotectedvirtual

Implements edm::EDAnalyzer.

Definition at line 16 of file EcalDCCHeaderDisplay.cc.

16  {
18  e.getByLabel(EcalDCCHeaderCollection_, DCCHeaders);
19 
20  std::cout << "\n\n ^^^^^^^^^^^^^^^^^^ [EcalDCCHeaderDisplay] DCCHeaders collection size " << DCCHeaders->size()
21  << std::endl;
22  std::cout << " [EcalDCCHeaderDisplay] the Header(s)\n" << std::endl;
23  //short dumpConter =0;
24 
25  for (EcalRawDataCollection::const_iterator headerItr = DCCHeaders->begin(); headerItr != DCCHeaders->end();
26  ++headerItr) {
27  // int nevt =headerItr->getLV1();
28  bool skip = false;
29 
30  if (skip) {
31  continue;
32  }
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))
75  std::cout << std::endl; // TODO: add space after first six in a row
76  std::cout << TTStatus[u] << " ";
77  }
78  std::cout << std::endl;
79  std::cout << "######################################################################" << std::endl;
80  ;
81  }
82 }

References edm::SortedCollection< T, SORT >::begin(), gather_cfg::cout, EcalDCCHeaderBlock::EcalDCCEventSettings::delay, MillePedeFileConverter_cfg::e, EcalDCCHeaderCollection_, edm::SortedCollection< T, SORT >::end(), EcalDCCHeaderBlock::EcalDCCEventSettings::LaserFilter, EcalDCCHeaderBlock::EcalDCCEventSettings::LaserPower, EcalDCCHeaderBlock::EcalDCCEventSettings::MEMVinj, EcalDCCHeaderBlock::EcalDCCEventSettings::mgpa_content, EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset, edm::SortedCollection< T, SORT >::size(), optionsL1T::skip, and EcalDCCHeaderBlock::EcalDCCEventSettings::wavelength.

Member Data Documentation

◆ EcalDCCHeaderCollection_

edm::InputTag EcalDCCHeaderDisplay::EcalDCCHeaderCollection_
private

Definition at line 26 of file EcalDCCHeaderDisplay.h.

Referenced by analyze(), and EcalDCCHeaderDisplay().

edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
EcalDCCHeaderDisplay::EcalDCCHeaderCollection_
edm::InputTag EcalDCCHeaderCollection_
Definition: EcalDCCHeaderDisplay.h:26
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EcalDCCHeaderBlock::EcalDCCEventSettings::LaserPower
short LaserPower
Definition: EcalDCCHeaderBlock.h:65
edm::SortedCollection::size
size_type size() const
Definition: SortedCollection.h:215
EcalDCCHeaderBlock::EcalDCCEventSettings::mgpa_content
short mgpa_content
Definition: EcalDCCHeaderBlock.h:70
edm::Handle
Definition: AssociativeIterator.h:50
optionsL1T.skip
skip
Definition: optionsL1T.py:30
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
EcalDCCHeaderBlock::EcalDCCEventSettings
Definition: EcalDCCHeaderBlock.h:64
EcalDCCHeaderBlock::EcalDCCEventSettings::delay
short delay
Definition: EcalDCCHeaderBlock.h:68
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
EcalDCCHeaderBlock::EcalDCCEventSettings::LaserFilter
short LaserFilter
Definition: EcalDCCHeaderBlock.h:66
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset
short ped_offset
Definition: EcalDCCHeaderBlock.h:71
EcalDCCHeaderBlock::EcalDCCEventSettings::wavelength
short wavelength
Definition: EcalDCCHeaderBlock.h:67
EcalDCCHeaderBlock::EcalDCCEventSettings::MEMVinj
short MEMVinj
Definition: EcalDCCHeaderBlock.h:69
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37