14 Tk_HM_ = std::make_unique<TkHistoMap>(tkDetMap,
"SiStrip/Histo_Map",
"LA_TkMap", 0.);
23 std::map<uint32_t, float>::const_iterator LAMapIter_;
26 for (LAMapIter_ = LAMap_.begin(); LAMapIter_ != LAMap_.end(); LAMapIter_++) {
37 for (
unsigned int i = 0;
i < selectedDetIds.size();
i++) {
39 if (subDetId_ < 3 || subDetId_ > 6) {
41 <<
"[SiStripLorentzAngle::fillSummaryMEs] WRONG INPUT : no such "
43 << subDetId_ <<
" and detId " << selectedDetIds[
i] <<
" therefore no filling!" << std::endl;
72 selME.SummaryOfProfileDistr->getTProfile()->Draw();
73 std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
75 c1.Print(name.c_str());
80 selME.SummaryOfCumulDistr->getTH1()->Draw();
81 std::string name2(selME.SummaryOfCumulDistr->getTitle());
83 c2.Print(name2.c_str());
90 selME.SummaryOfProfileDistr->getTProfile()->Draw();
91 std::string name(selME.SummaryOfProfileDistr->getTProfile()->GetTitle());
93 c1.Print(name.c_str());
99 selME.SummaryOfCumulDistr->getTH1()->Draw();
102 c1.Print(name.c_str());
109 uint32_t selDetId_) {
119 if (subDetId_ < 3 || subDetId_ > 6) {
120 edm::LogError(
"SiStripLorentzAngleDQM") <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such "
121 "subdetector type : "
122 << subDetId_ <<
" no folder set!" << std::endl;
126 std::vector<uint32_t> sameLayerDetIds_;
127 sameLayerDetIds_.clear();
137 selME_ = selMEsMapIter_->second;
142 sameLayerDetIds_.clear();
144 switch (
DetId(selDetId_).subdetId()) {
169 for (
unsigned int i = 0;
i < sameLayerDetIds_.size();
i++) {
188 if (subDetId_ < 3 || subDetId_ > 6) {
189 edm::LogError(
"SiStripLorentzAngleDQM") <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such "
190 "subdetector type : "
191 << subDetId_ <<
" no folder set!" << std::endl;
195 hSummaryOfCumul_name =
198 for (
unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
209 selME_ = selMEsMapIter_->second;
218 sameLayerDetIds_.clear();
222 for (
unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
241 if (subDetId_ < 3 || subDetId_ > 6) {
242 edm::LogError(
"SiStripLorentzAngleDQM") <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no "
243 "such subdetector type : "
244 << subDetId_ <<
" no folder set!" << std::endl;
248 hSummaryOfCumul_name =
251 for (
unsigned int i = 0; i < sameLayerDetIds_.size(); i++) {
static constexpr auto TEC
void getTIBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tibDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t int_ext=0, uint32_t string=0)
const TrackerTopology * tTopo_
unsigned int tibLayer(const DetId &id) const
unsigned int tibString(const DetId &id) const
bool SummaryOnLayerLevel_On_
const std::map< unsigned int, float > & getLorentzAngles() const
void getTIDDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tidDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t ring=0, uint32_t ster=0)
bool SummaryOnStringLevel_On_
void getTECDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tecDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t petal_bkw_frw=0, uint32_t petal=0, uint32_t ring=0, uint32_t ster=0)
Log< level::Error, false > LogError
void fillTkMap(const uint32_t &detid, const float &value)
const SiStripLorentzAngle * condObj_
U second(std::pair< T, U > const &p)
std::map< uint32_t, ModMEs > SummaryMEsMap_
bool tibIsExternalString(const DetId &id) const
float getLorentzAngle(const uint32_t &) const
void getActiveDetIds(const edm::EventSetup &eSetup) override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds) override
static constexpr auto TIB
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_)
void getConditionObject(const edm::EventSetup &eSetup) override
~SiStripLorentzAngleDQM() override
T getParameter(std::string const &) const
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
SiStripLorentzAngleDQM(edm::ESGetToken< SiStripLorentzAngle, SiStripLorentzAngleRcd > token, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet, const TrackerTopology *tTopo, const TkDetMap *tkDetMap)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId)
std::vector< uint32_t > activeDetIds
void getTOBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tobDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t rod=0)
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
unsigned int tobRod(const DetId &id) const
bool tibIsInternalString(const DetId &id) const
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void fillMEsForLayer(uint32_t selDetId_) override
static constexpr auto TID
SiStripHistoId hidmanager
std::unique_ptr< TkHistoMap > Tk_HM_
unsigned int tobLayer(const DetId &id) const