calculate the best DAC value to obtain a pedestal = 200 More...
#include <testChannel.h>
Public Member Functions | |
void | analyze (edm::Event const &event, edm::EventSetup const &eventSetup) override |
! Analyze More... | |
void | beginJob () override |
BeginJob. More... | |
void | endJob (void) override |
EndJob. More... | |
void | subscribe (void) |
Subscribe/Unsubscribe to Monitoring Elements. More... | |
void | subscribeNew (void) |
testChannel (const edm::ParameterSet &ps) | |
Constructor. More... | |
void | unsubscribe (void) |
~testChannel () override | |
Destructor. More... | |
Public Member Functions inherited from edm::one::EDAnalyzer<> | |
EDAnalyzer ()=default | |
EDAnalyzer (const EDAnalyzer &)=delete | |
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
SerialTaskQueue * | globalRunsQueue () final |
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
bool | wantsGlobalLuminosityBlocks () const noexcept final |
bool | wantsGlobalRuns () const noexcept final |
bool | wantsInputProcessBlocks () const noexcept final |
bool | wantsProcessBlocks () const noexcept final |
Public Member Functions inherited from edm::one::EDAnalyzerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzerBase () | |
ModuleDescription const & | moduleDescription () const |
bool | wantsStreamLuminosityBlocks () const noexcept |
bool | wantsStreamRuns () const noexcept |
~EDAnalyzerBase () override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
int | getHeaderSMId (const int headerId) |
Private Attributes | |
const int | m_bestPed |
const int | m_DACmax |
const int | m_DACmin |
name of the xml file to be saved More... | |
const edm::EDGetTokenT< EBDigiCollection > | m_digiProducerToken |
const edm::EDGetTokenT< EcalRawDataCollection > | m_headerProducerToken |
Token to access digis. More... | |
TH2F | m_pedVSDAC |
const double | m_RMSmax |
TH2F | m_singlePedVSDAC_1 |
TH2F | m_singlePedVSDAC_2 |
TH2F | m_singlePedVSDAC_3 |
const std::string | m_xmlFile |
Token to access headers. More... | |
const int | m_xtal |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
calculate the best DAC value to obtain a pedestal = 200
Definition at line 36 of file testChannel.h.
testChannel::testChannel | ( | const edm::ParameterSet & | ps | ) |
Constructor.
ctor
Definition at line 17 of file testChannel.cc.
References m_bestPed, m_DACmax, m_DACmin, and m_RMSmax.
|
override |
|
overridevirtual |
! Analyze
perform te analysis
loop over the headers
Implements edm::one::EDAnalyzerBase.
Definition at line 65 of file testChannel.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::DataFrameContainer::begin(), das-up-to-nevents::df, edm::SortedCollection< T, SORT >::end(), edm::DataFrameContainer::end(), ecalLiteDTU::gainId(), getHeaderSMId(), ecalpyutils::ism(), edm::HandleBase::isValid(), LogDebug, m_digiProducerToken, m_headerProducerToken, m_pedVSDAC, m_singlePedVSDAC_1, m_singlePedVSDAC_2, m_singlePedVSDAC_3, m_xtal, EcalDataFrame::MAXSAMPLES, and EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset.
|
overridevirtual |
BeginJob.
begin the job
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 62 of file testChannel.cc.
References LogDebug.
|
overridevirtual |
EndJob.
perform the minimiation and write results
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 120 of file testChannel.cc.
References m_pedVSDAC, m_singlePedVSDAC_1, m_singlePedVSDAC_2, m_singlePedVSDAC_3, m_xtal, and MillePedeFileConverter_cfg::out.
Referenced by o2olib.O2ORunMgr::executeJob().
|
private |
Definition at line 144 of file testChannel.cc.
Referenced by analyze().
void testChannel::subscribe | ( | void | ) |
void testChannel::subscribeNew | ( | void | ) |
Definition at line 152 of file testChannel.cc.
void testChannel::unsubscribe | ( | void | ) |
Definition at line 154 of file testChannel.cc.
|
private |
Definition at line 69 of file testChannel.h.
Referenced by testChannel().
|
private |
Definition at line 67 of file testChannel.h.
Referenced by testChannel().
|
private |
name of the xml file to be saved
Definition at line 66 of file testChannel.h.
Referenced by testChannel().
|
private |
Definition at line 61 of file testChannel.h.
Referenced by analyze().
|
private |
|
private |
Definition at line 73 of file testChannel.h.
|
private |
Definition at line 68 of file testChannel.h.
Referenced by testChannel().
|
private |
Definition at line 74 of file testChannel.h.
|
private |
Definition at line 75 of file testChannel.h.
|
private |
Definition at line 76 of file testChannel.h.
|
private |
Token to access headers.
Definition at line 64 of file testChannel.h.
|
private |
Definition at line 71 of file testChannel.h.