|
| EcalMipGraphs (const edm::ParameterSet &) |
|
| ~EcalMipGraphs () override |
|
| 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 |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () override |
|
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) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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) |
|
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 59 of file EcalMipGraphs.h.
Implements edm::one::EDAnalyzerBase.
Definition at line 98 of file EcalMipGraphs.cc.
References edm::SortedCollection< T, SORT >::begin(), caloTopo_, canvasNames_, EBdigisHandle, ebDigiToken_, ebRecHitToken_, EEdigisHandle, eeDigiToken_, eeRecHitToken_, edm::SortedCollection< T, SORT >::end(), FEDsAndDCCHeaders_, fileService, edm::EventSetup::getData(), iEvent, listEBChannels, listEEChannels, TFileService::make(), naiveEvtNum_, names, rawDataToken_, runNum_, selectHits(), and topologyToken_.
109 int ievt =
iEvent.id().event();
115 names =
new std::vector<string>();
const edm::EDGetTokenT< EEDigiCollection > eeDigiToken_
void selectHits(edm::Handle< EcalRecHitCollection > hits, int ievt)
std::vector< T >::const_iterator const_iterator
static edm::Service< TFileService > fileService
std::set< EEDetId > listEEChannels
std::map< int, EcalDCCHeaderBlock > FEDsAndDCCHeaders_
const edm::EDGetTokenT< EcalRawDataCollection > rawDataToken_
std::set< EBDetId > listEBChannels
const_iterator begin() const
const_iterator end() const
const CaloTopology * caloTopo_
const edm::EDGetTokenT< EcalRecHitCollection > ebRecHitToken_
edm::Handle< EEDigiCollection > EEdigisHandle
std::vector< std::string > * names
const edm::EDGetTokenT< EBDigiCollection > ebDigiToken_
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > topologyToken_
const edm::EDGetTokenT< EcalRecHitCollection > eeRecHitToken_
T * make(const Args &...args) const
make new ROOT object
edm::Handle< EBDigiCollection > EBdigisHandle
TGraph * EcalMipGraphs::selectDigi |
( |
DetId |
det, |
|
|
int |
ievt |
|
) |
| |
|
private |
Definition at line 136 of file EcalMipGraphs.cc.
References abscissa, edm::DataFrameContainer::begin(), crysAndAmplitudesMap_, EcalElectronicsId::dccId(), DetId::det(), hgcalPerformanceValidation::df, EBdigisHandle, DetId::Ecal, ecalElectronicsMap_, EEdigisHandle, edm::DataFrameContainer::end(), hcalRecHitTable_cff::energy, fedMap_, FEDsAndDCCHeaders_, fileService, nano_mu_digi_cff::float, floatToString(), ecalLiteDTU::gainId(), gainRatio, getEEIndex(), EcalElectronicsMapping::getElectronicsId(), EcalFedMap::getSliceFromFed(), mps_fire::i, intToString(), PixelPluginsPhase0_cfi::isBarrel, TFileService::make(), naiveEvtNum_, Skims_PA_cff::name, ordinate, EcalCondDBWriter_cfi::pedestal, and runGCPTkAlMap::title.
Referenced by selectHits().
138 for (
int i = 0;
i < 10;
i++)
141 emptyGraph->SetTitle(
"NOT ECAL");
147 emptyGraph->SetTitle(
"NO DIGIS");
150 int FEDid = 600 + elecId.
dccId();
152 if (FEDid < 610 || FEDid > 645)
196 emptyGraph->SetTitle(
"FIRST TWO SAMPLES NOT GAIN12");
197 if (
df.sample(0).gainId() != 1 ||
df.sample(1).gainId() != 1)
205 for (
int i = 0;
i <
df.size(); ++
i) {
206 if (
df.sample(
i).gainId() != 0)
216 sliceName +
"_gain" + gainString;
219 map<int, float>::const_iterator itr;
230 oneGraph->SetTitle(
title.c_str());
231 oneGraph->SetName(
name.c_str());
232 oneGraph->GetXaxis()->SetTitle(
"sample");
233 oneGraph->GetYaxis()->SetTitle(
"ADC");
std::string floatToString(float num)
int getEEIndex(EcalElectronicsId elecId)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
std::string intToString(int num)
const EcalElectronicsMapping * ecalElectronicsMap_
static edm::Service< TFileService > fileService
std::map< int, EcalDCCHeaderBlock > FEDsAndDCCHeaders_
std::string getSliceFromFed(int)
std::map< int, float > crysAndAmplitudesMap_
const_iterator end() const
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
edm::Handle< EEDigiCollection > EEdigisHandle
const_iterator begin() const
The iterator returned can not safely be used across threads.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
T * make(const Args &...args) const
make new ROOT object
static float gainRatio[3]
edm::Handle< EBDigiCollection > EBdigisHandle
Definition at line 237 of file EcalMipGraphs.cc.
References allFedsTimingHist_, caloTopo_, timingPdfMaker::can, crysAndAmplitudesMap_, EcalElectronicsId::dccId(), ecalElectronicsMap_, FEDsAndTimingHists_, spr::find(), getEEIndex(), EcalElectronicsMapping::getElectronicsId(), CaloTopology::getSubdetectorTopology(), hfClusterShapes_cfi::hits, CaloNavigator< T, TOPO >::home(), mps_fire::i, hit::id, initHists(), intToString(), PixelPluginsPhase0_cfi::isBarrel, dqmiolumiharvest::j, maskedChannels_, maskedFEDs_, minTimingAmp_, naiveEvtNum_, Skims_PA_cff::name, names, CaloNavigator< T, TOPO >::offsetBy(), mps_fire::result, fileCollector::seed, seedCrys_, seedFrequencyMap_, selectDigi(), side_, threshold_, and runGCPTkAlMap::title.
Referenced by analyze().
242 int FEDid = 600 + elecId.
dccId();
244 if (FEDid < 610 || FEDid > 645)
249 float ampli =
hit.energy();
251 vector<int>::iterator
result;
262 bool cryIsInList =
false;
273 string title =
"Digis";
278 ++(pair.first->second);
281 TCanvas
can(
name.c_str(),
title.c_str(), 200, 50, 900, 900);
303 if (timingHist ==
nullptr) {
308 timingHist->Fill(
hit.time());
void home() const
move the navigator back to the starting point
std::vector< int > maskedFEDs_
int getEEIndex(EcalElectronicsId elecId)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
std::vector< EcalRecHit >::const_iterator const_iterator
std::string intToString(int num)
const EcalElectronicsMapping * ecalElectronicsMap_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::map< std::string, int > seedFrequencyMap_
std::map< int, float > crysAndAmplitudesMap_
TGraph * selectDigi(DetId det, int ievt)
const CaloTopology * caloTopo_
std::vector< int > seedCrys_
std::vector< int > maskedChannels_
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
std::vector< std::string > * names
T offsetBy(int deltaX, int deltaY) const
Free movement of arbitray steps.
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
std::map< int, TH1F * > FEDsAndTimingHists_
const double minTimingAmp_
TH1F * allFedsTimingHist_