|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
| SiPixelVCalReader (const edm::ParameterSet &) |
|
| ~SiPixelVCalReader () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices 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 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) |
|
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) |
|
Definition at line 36 of file SiPixelVCalReader.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 72 of file SiPixelVCalReader.cc.
References TrackerGeometry::detUnits(), compareTotals::fs, edm::EventSetup::getData(), SiPixelVCal::getSlopeAndOffset(), PVValHelper::ladder, phase1PixelTopology::layer, hltrates_dqm_sourceclient-live_cfg::offset, offsetBPix_, offsetFPix_, PVValHelper::phase1, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), relativeConstraints::ring, PixelEndcapName::ringName(), siPixelVCalSimToken_, siPixelVCalToken_, slope, slopeBPix_, slopeFPix_, DetId::subdetId(), tkGeomToken_, tkTopoToken_, and useSimRcd_.
81 edm::LogInfo(
"SiPixelVCalReader") <<
"[SiPixelVCalReader::analyze] End Reading SiPixelVCal" << std::endl;
89 edm::LogPrint(
"SiPixelVCalReader") <<
" There are " << pDD->
detUnits().size() <<
" modules" << std::endl;
95 TTree*
tree =
new TTree(
"tree",
"tree");
98 tree->Branch(
"detid", &detid,
"detid/I");
99 tree->Branch(
"subdet", &subdet,
"subdet/I");
100 tree->Branch(
"layer", &
layer,
"layer/I");
102 tree->Branch(
"side", &side,
"side/I");
103 tree->Branch(
"disk", &disk,
"disk/I");
104 tree->Branch(
"ring", &
ring,
"ring/I");
105 tree->Branch(
"slope", &
slope,
"slope/D");
109 slopeBPix_ =
fs->make<TH1F>(
"VCalSlopeBarrelPixel",
"VCalSlopeBarrelPixel", 150, 0, 100);
110 slopeFPix_ =
fs->make<TH1F>(
"VCalSlopeForwardPixel",
"VCalSlopeForwardPixel", 150, 0, 100);
111 offsetBPix_ =
fs->make<TH1F>(
"VCalOffsetBarrelPixel",
"VCalOffsetBarrelPixel", 200, -900, 100);
112 offsetFPix_ =
fs->make<TH1F>(
"VCalOffsetForwardPixel",
"VCalOffsetForwardPixel", 200, -900, 100);
113 std::map<unsigned int, SiPixelVCal::VCal> vcal = siPixelVCal->
getSlopeAndOffset();
114 std::map<unsigned int, SiPixelVCal::VCal>::const_iterator it;
117 edm::LogPrint(
"SiPixelVCalReader") << std::setw(12) <<
"detid" << std::setw(8) <<
"subdet" << std::setw(8) <<
"layer" 118 << std::setw(8) <<
"disk" << std::setw(14) <<
"VCal slope" << std::setw(8)
119 <<
"offset" << std::endl;
120 for (it = vcal.begin(); it != vcal.end(); it++) {
122 slope = it->second.slope;
123 offset = it->second.offset;
124 const DetId detIdObj(detid);
126 subdet = detIdObj.subdetId();
129 side = tTopo->
pxfSide(detIdObj);
130 disk = tTopo->
pxfDisk(detIdObj);
131 ring = fpix.ringName();
132 edm::LogPrint(
"SiPixelVCalReader") << std::setw(12) << detid << std::setw(8) << subdet << std::setw(8) <<
layer 133 << std::setw(8) << disk << std::setw(14) <<
slope << std::setw(8) <<
offset const edm::ESGetToken< SiPixelVCal, SiPixelVCalRcd > siPixelVCalToken_
unsigned int pxbLayer(const DetId &id) const
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
static const double slope[3]
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
unsigned int pxbLadder(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tkTopoToken_
const edm::ESGetToken< SiPixelVCal, SiPixelVCalSimRcd > siPixelVCalSimToken_
unsigned int pxfDisk(const DetId &id) const
bool getData(T &iHolder) const
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
unsigned int pxfSide(const DetId &id) const
const std::map< unsigned int, VCal > & getSlopeAndOffset() const