28 std::map<uint32_t,float>::const_iterator LAMapIter_;
31 for( LAMapIter_ = LAMap_.begin();
32 LAMapIter_!= LAMap_.end(); LAMapIter_++){
48 for(
unsigned int i=0;
i<selectedDetIds.size();
i++){
49 int subDetId_ = ((selectedDetIds[
i]>>25)&0x7);
50 if( subDetId_<3 ||subDetId_>6 ){
52 <<
"[SiStripLorentzAngle::fillSummaryMEs] WRONG INPUT : no such subdetector type : "
53 << subDetId_ <<
" and detId " << selectedDetIds[
i] <<
" therefore no filling!"
59 else { fillNext=
true;}
64 else { fillNext=
true;}
81 c1.Print(name.c_str());
90 c2.Print(name2.c_str());
101 c1.Print(name.c_str());
110 c1.Print(name.c_str());
127 std::string hSummaryOfProfile_description;
128 hSummaryOfProfile_description =
hPSet_.
getParameter<std::string>(
"SummaryOfProfile_description");
130 std::string hSummary_name;
132 int subDetId_ = ((selDetId_>>25)&0x7);
134 if( subDetId_<3 || subDetId_>6 ){
136 <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
137 << subDetId_ <<
" no folder set!"
142 uint32_t selSubDetId_ = ((selDetId_>>25)&0x7);
145 std::vector<uint32_t> sameLayerDetIds_;
146 sameLayerDetIds_.clear();
155 selME_ =selMEsMapIter_->second;
160 sameLayerDetIds_.clear();
163 if(
TIBDetId(selDetId_).isInternalString()){
166 if(
TIBDetId(selDetId_).isExternalString()){
170 else if(selSubDetId_==4){
173 else if(selSubDetId_==5){
176 else if(selSubDetId_==6){
182 for(
unsigned int i=0;
i< sameLayerDetIds_.size();
i++){
196 std::string hSummaryOfCumul_description;
197 hSummaryOfCumul_description =
hPSet_.
getParameter<std::string>(
"SummaryOfCumul_description");
199 std::string hSummaryOfCumul_name;
201 if( subDetId_<3 || subDetId_>6 ){
203 <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
204 << subDetId_ <<
" no folder set!"
211 for(
unsigned int i=0;
i< sameLayerDetIds_.size();
i++){
223 selME_ =selMEsMapIter_->second;
232 sameLayerDetIds_.clear();
236 for(
unsigned int i=0;
i< sameLayerDetIds_.size();
i++){
252 std::string hSummaryOfCumul_description;
253 hSummaryOfCumul_description =
hPSet_.
getParameter<std::string>(
"SummaryOfCumul_description");
255 std::string hSummaryOfCumul_name;
257 if( subDetId_<3 || subDetId_>6 ){
259 <<
"[SiStripLorentzAngleDQM::fillMEsForLayer] WRONG INPUT : no such subdetector type : "
260 << subDetId_ <<
" no folder set!"
267 for(
unsigned int i=0;
i< sameLayerDetIds_.size();
i++){
T getParameter(std::string const &) const
SiStripLorentzAngleDQM(const edm::EventSetup &eSetup, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
unsigned int rodNumber(align::ID)
Rod number increases with phi.
std::vector< uint32_t > GetSameLayerDetId(std::vector< uint32_t > activeDetIds, uint32_t selDetId)
edm::ESHandle< SiStripLorentzAngle > lorentzangleHandle_
bool SummaryOnLayerLevel_On_
unsigned int layerNumber(align::ID)
Layer number increases with rho from 1 to 8.
bool SummaryOnStringLevel_On_
void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds)
void fillTkMap(const uint32_t &detid, const float &value)
U second(std::pair< T, U > const &p)
virtual ~SiStripLorentzAngleDQM()
std::map< uint32_t, ModMEs > SummaryMEsMap_
void getTOBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tobDetRawIds, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t rod=0) const
void fill(uint32_t &detid, float value)
MonitorElement * SummaryOfProfileDistr
void getActiveDetIds(const edm::EventSetup &eSetup)
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_)
unsigned int stringNumber(align::ID)
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_)
void getTECDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tecDetRawIds, 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) const
void fillMEsForLayer(uint32_t selDetId_)
TProfile * getTProfile(void) const
void getTIBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tibDetRawIds, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t int_ext=0, uint32_t string=0) const
std::vector< uint32_t > activeDetIds
void getTIDDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tidDetRawIds, uint32_t side=0, uint32_t wheel=0, uint32_t ring=0, uint32_t ster=0) const
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
MonitorElement * SummaryOfCumulDistr
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_)
void getConditionObject(const edm::EventSetup &eSetup)
SiStripHistoId hidmanager