29 tracksCollection_in_EventTree(
true),
72 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::beginRun] There are "<<
tkgeom_->
detUnits().size() <<
" detectors instantiated in the geometry" << std::endl;
87 book(ibooker , tTopo);
100 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::analyse] " <<
"Run " << e.
id().
run() <<
" Event " << e.
id().
event() << std::endl;
107 for (std::map<std::string, SubDetMEs>::iterator iSubDet =
SubDetMEsMap.begin();
109 iSubDet->second.totNClustersOnTrack = 0;
110 iSubDet->second.totNClustersOffTrack = 0;
121 std::map<std::string, MonitorElement*>::iterator iME;
122 std::map<std::string, LayerMEs>::iterator iLayerME;
167 std::vector<uint32_t> vdetId_;
169 const char* tec =
"TEC";
170 const char* tid =
"TID";
175 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
176 uint32_t detid = *detid_iter;
179 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
187 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
196 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
198 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
202 const char* subdet = det_layer_pair.first.c_str();
203 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
205 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
207 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
208 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
224 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
225 uint32_t detid = *detid_iter;
228 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
236 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
245 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
247 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
251 const char* subdet = det_layer_pair.first.c_str();
252 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
254 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
256 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
257 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
278 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(hid);
302 theModMEs.
ClusterPos=ibooker.
book1D(hidmanager.
createHistoId(
"ClusterPosition_OnTrack",name,
id).c_str(),hidmanager.
createHistoId(
"ClusterPosition_OnTrack",name,
id).c_str(),total_nr_strips,0.5,total_nr_strips+0.5);
323 if (
id.
find(
"TEC") == std::string::npos &&
id.find(
"TID") == std::string::npos ) {
324 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
328 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
349 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,layer_id,
"OnTrack");
350 hpar =
"TH1ClusterStoNCorr";
354 hname = hidmanager.
createHistoLayer(
"Summary_ClusterGain",name,layer_id,
"");
355 hpar =
"TH1ClusterGain";
359 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,layer_id,
"OnTrack");
360 hpar =
"TH1ClusterChargeCorr";
364 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OnTrack");
365 hpar =
"TH1ClusterCharge";
368 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OffTrack");
369 hpar =
"TH1ClusterCharge";
373 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OnTrack");
374 hpar =
"TH1ClusterChargeRaw";
377 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OffTrack");
378 hpar =
"TH1ClusterChargeRaw";
382 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OnTrack");
383 hpar =
"TH1ClusterNoise";
386 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OffTrack");
387 hpar =
"TH1ClusterNoise";
391 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OnTrack");
392 hpar =
"TH1ClusterWidth";
395 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OffTrack");
396 hpar =
"TH1ClusterWidth";
401 if (layer_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
403 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OnTrack");
404 hpar =
"TH1ClusterPos";
405 if ( layer_id.find(
"TIB") != std::string::npos || layer_id.find(
"TOB") != std::string::npos || (
conf_.
getParameter<
edm::ParameterSet>(hpar.c_str())).getParameter<
bool>(view.c_str()) ) theLayerMEs.
ClusterPosOnTrack = ibooker.
book1D(hname, hname, total_nr_strips, 0.5,total_nr_strips+0.5);
407 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OffTrack");
408 hpar =
"TH1ClusterPos";
409 if ( layer_id.find(
"TIB") != std::string::npos || layer_id.find(
"TOB") != std::string::npos || (
conf_.
getParameter<
edm::ParameterSet>(hpar.c_str())).getParameter<
bool>(view.c_str()) ) theLayerMEs.
ClusterPosOffTrack = ibooker.
book1D(hname, hname, total_nr_strips, 0.5,total_nr_strips+0.5);
412 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,layer_id,
"");
413 hpar =
"TH1ClusterChargePerCM";
416 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OnTrack");
417 hpar =
"TH1ClusterChargePerCM";
420 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OffTrack");
421 hpar =
"TH1ClusterChargePerCM";
440 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,ring_id,
"OnTrack");
441 hpar =
"TH1ClusterStoNCorr";
446 hpar =
"TH1ClusterGain";
450 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,ring_id,
"OnTrack");
451 hpar =
"TH1ClusterChargeCorr";
455 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OnTrack");
456 hpar =
"TH1ClusterCharge";
459 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OffTrack");
460 hpar =
"TH1ClusterCharge";
464 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OnTrack");
465 hpar =
"TH1ClusterChargeRaw";
468 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OffTrack");
469 hpar =
"TH1ClusterChargeRaw";
473 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OnTrack");
474 hpar =
"TH1ClusterNoise";
477 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OffTrack");
478 hpar =
"TH1ClusterNoise";
482 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OnTrack");
483 hpar =
"TH1ClusterWidth";
486 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OffTrack");
487 hpar =
"TH1ClusterWidth";
492 if (ring_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
494 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OnTrack");
495 hpar =
"TH1ClusterPos";
498 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OffTrack");
499 hpar =
"TH1ClusterPos";
503 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,ring_id,
"");
504 hpar =
"TH1ClusterChargePerCM";
507 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OnTrack");
508 hpar =
"TH1ClusterChargePerCM";
511 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OffTrack");
512 hpar =
"TH1ClusterChargePerCM";
526 subdet_tag =
"__" +
name;
533 completeName =
"Summary_TotalNumberOfClusters_OnTrack" +
subdet_tag;
534 axisName =
"Number of on-track clusters in " +
name;
540 completeName =
"Summary_TotalNumberOfClusters_OffTrack" +
subdet_tag;
541 axisName =
"Number of off-track clusters in " +
name;
547 completeName =
"Summary_ClusterGain" +
subdet_tag;
551 completeName =
"Summary_ClusterStoNCorr_OnTrack" +
subdet_tag;
554 completeName =
"Summary_ClusterStoNCorrThin_OnTrack" +
subdet_tag;
557 completeName =
"Summary_ClusterStoNCorrThick_OnTrack" +
subdet_tag;
561 completeName =
"Summary_ClusterChargeCorr_OnTrack" +
subdet_tag;
564 completeName =
"Summary_ClusterChargeCorrThin_OnTrack" +
subdet_tag;
567 completeName =
"Summary_ClusterChargeCorrThick_OnTrack" +
subdet_tag;
571 completeName =
"Summary_ClusterCharge_OnTrack" +
subdet_tag;
575 completeName =
"Summary_ClusterChargeRaw_OnTrack" +
subdet_tag;
579 completeName =
"Summary_ClusterCharge_OffTrack" +
subdet_tag;
583 completeName =
"Summary_ClusterChargeRaw_OffTrack" +
subdet_tag;
587 completeName =
"Summary_ClusterStoN_OffTrack" +
subdet_tag;
591 completeName =
"Summary_ClusterChargePerCMfromTrack" +
subdet_tag;
595 completeName =
"Summary_ClusterChargePerCMfromOrigin_OnTrack" +
subdet_tag;
599 completeName =
"Summary_ClusterChargePerCMfromOrigin_OffTrack" +
subdet_tag;
604 completeName =
"Trend_TotalNumberOfClusters_OnTrack" +
subdet_tag;
606 completeName =
"Trend_TotalNumberOfClusters_OffTrack" +
subdet_tag;
619 return ibooker.
book1D(HistoName,HistoName,
630 return ibooker.
book2D(HistoName,HistoName,
644 return ibooker.
book3D(HistoName,HistoName,
683 me->setAxisTitle(
"Lumisection",1);
690 auto const & trajParams = track.
extra()->trajParams();
698 uint32_t thedetid=ttrh->rawId();
700 if ( (ttrh->getType()==1) )
702 if ( (ttrh->getType()==2) )
704 if ( (ttrh->getType()==0) )
709 if (!ttrh->isValid())
continue;
712 auto statedirection = trajParams[
h].momentum();
723 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
730 statedirection=monodet->
toLocal(gtrkdirup);
733 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,es,track_ok);
736 statedirection=stereodet->
toLocal(gtrkdirup);
739 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,es,track_ok);
742 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
751 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
753 statedirection=det->
toLocal(gtrkdirup);
754 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,es,track_ok);
757 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
760 statedirection=det->
toLocal(gtrkdirup);
761 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,es,track_ok);
764 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,es,track_ok);
766 if(statedirection.mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,es,track_ok);
769 <<
" LocalMomentum: "<<statedirection
770 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.x(),statedirection.z());
787 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
795 statedirection=monodet->
toLocal(gtrkdirup);
797 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,es,track_ok);
801 statedirection=stereodet->
toLocal(gtrkdirup);
803 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,es,track_ok);
806 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
816 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
818 statedirection=det->
toLocal(gtrkdirup);
819 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,es,track_ok);
822 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
825 statedirection=det->
toLocal(gtrkdirup);
826 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,es,track_ok);
829 statedirection=localMomentum;
830 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,es,track_ok);
832 statedirection=localMomentum;
833 if(statedirection.
mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,es,track_ok);
836 <<
" LocalMomentum: "<<statedirection
837 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.
x(),statedirection.
z());
846 using namespace reco;
855 if (trackCollectionHandle.
isValid()){
866 if (track.
pt() < 0.8)
return false;
867 if (track.
p() < 2.0)
return false;
881 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
891 uint32_t thedetid=(*hit)->rawId();
893 if ( ((*hit)->getType()==1) )
895 if ( ((*hit)->getType()==2) )
897 if ( ((*hit)->getType()==0) )
902 if (!(*hit)->isValid())
continue;
903 DetId detID = (*hit)->geographicalId();
915 hitStudy(es,projhit,matchedhit,hit2D,hit1D,localMomentum,track_ok);
957 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
961 <<
"Track number "<< ++i << std::endl;
980 if(!tkrecHit->isValid()){
981 LogTrace(
"SiStripMonitorTrack") <<
"\t\t Invalid Hit " << std::endl;
985 const uint32_t& detid = tkrecHit->geographicalId().rawId();
988 <<
"\n\t\tRecHit on det "<<detid
989 <<
"\n\t\tRecHit in LP "<<tkrecHit->localPosition()
990 <<
"\n\t\tRecHit in GP "<<
tkgeom_->
idToDet(tkrecHit->geographicalId())->surface().
toGlobal(tkrecHit->localPosition())
991 <<
"\n\t\tRecHit trackLocal vector "<<LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<std::endl;
1009 if ( tkrecHit !=
NULL ){
1014 if (
clusterInfos(&SiStripClusterInfo_,detid,
OnTrack, track_ok, LV, MEs, tTopo,stripGain,stripQuality))
1021 edm::LogError(
"SiStripMonitorTrack") <<
"NULL hit" << std::endl;
1044 if (siStripClusterHandle.
isValid()){
1047 DSViter!=DSVEnd; ++DSViter) {
1049 uint32_t detid=DSViter->id();
1052 LogDebug(
"SiStripMonitorTrack") <<
"on detid "<< detid <<
" N Cluster= " << DSViter->size();
1065 edm::LogError(
"SiStripMonitorTrack")<<
"ClusterCollection is not valid!!" << std::endl;
1083 std::map<std::string, LayerMEs>::iterator iLayer =
LayerMEsMap.find(layer_id);
1085 me.
iLayer = &(iLayer->second);
1088 std::map<std::string, RingMEs>::iterator iRing =
RingMEsMap.find(ring_id);
1090 me.
iRing = &(iRing->second);
1093 std::map<std::string, SubDetMEs>::iterator iSubdet =
SubDetMEsMap.find(sdet_tag);
1095 me.
iSubdet = &(iSubdet->second);
1105 const uint32_t detid,
1116 if (cluster==
NULL)
return false;
1126 LogDebug(
"SiStripMonitorTrack")<<
"\n\tLV " << LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<
" " << LV.
mag() << std::endl;
1128 cosRZ= fabs(LV.
z())/LV.
mag();
1129 LogDebug(
"SiStripMonitorTrack")<<
"\n\t cosRZ " << cosRZ << std::endl;
1140 double chargeraw = 0;
1141 double clustergain = 0 ;
1143 for(
size_t chidx = 0 ; chidx < cluster->
stripCharges().size() ; ++chidx ){
1144 if( cluster->
stripCharges().at(chidx) <= 0 ){ continue ; }
1147 chargeraw += cluster->
stripCharges().at(chidx) * clustergain;
1161 uint32_t adet=cluster->
detId();
1165 uint32_t adet=cluster->
detId();
1172 if (MEs.
iLayer !=
nullptr) {
1186 if (MEs.
iRing !=
nullptr) {
1208 if( tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W5 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W6 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W7) {
1218 uint32_t adet=cluster->
detId();
1222 LogDebug(
"SiStripMonitorTrack") <<
"Module " << detid <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1229 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(name);
1231 if(noise > 0.0)
fillME(iModME->second.ClusterStoNCorr ,StoN*cosRZ);
1232 if(noise == 0.0)
LogDebug(
"SiStripMonitorTrack") <<
"Module " << name <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1233 fillME(iModME->second.ClusterGain, clustergain);
1234 fillME(iModME->second.ClusterCharge,charge);
1235 fillME(iModME->second.ClusterChargeRaw,chargeraw);
1237 fillME(iModME->second.ClusterChargeCorr,charge*cosRZ);
1239 fillME(iModME->second.ClusterWidth ,width);
1240 fillME(iModME->second.ClusterPos ,position);
1242 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromTrack, dQdx_fromTrack);
1243 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromOrigin, dQdx_fromOrigin);
1247 int PGVposCounter = cluster->
maxIndex();
1249 fillME(iModME->second.ClusterPGV,
i,0.);
1251 fillME(iModME->second.ClusterPGV, PGVposCounter++,(*it)/PGVmax);
1254 fillME(iModME->second.ClusterPGV,
i,0.);
1263 uint32_t adet=cluster->
detId();
1266 LogDebug(
"SiStripMonitorTrack") <<
"Module firing " << detid <<
" in Event " <<
eventNb << std::endl;
1271 if (MEs.
iLayer !=
nullptr) {
1281 if (MEs.
iRing !=
nullptr) {
MonitorElement * ClusterStoNCorr
uint8_t maxCharge() const
MonitorElement * ClusterNoiseOnTrack
double p() const
momentum vector magnitude
T getParameter(std::string const &) const
EventNumber_t event() const
struct SubDetMEs * iSubdet
const TrackerGeomDet * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Det2MEs findMEs(const TrackerTopology *tTopo, const uint32_t detid)
MonitorElement * ClusterChargePerCMfromTrack
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
TkHistoMap * tkhisto_NumOffTrack
uint16_t firstStrip() const
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
SiStripMonitorTrack(const edm::ParameterSet &)
void setSiStripFolderName(std::string name)
void trackStudy(const edm::Event &ev, const edm::EventSetup &es)
void trackStudyFromTrack(edm::Handle< reco::TrackCollection > trackCollectionHandle, const edm::EventSetup &es)
edm::EDGetTokenT< reco::TrackCollection > trackToken_
MonitorElement * ClusterChargeRawOffTrack
const GeomDetUnit * monoDet() const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void fillME(MonitorElement *ME, float value1)
const TrackExtraRef & extra() const
reference to "extra" object
std::pair< const std::string, const char * > getSubDetFolderAndTag(const uint32_t &detid, const TrackerTopology *tTopo)
SiStripDCSStatus * dcsStatus_
MonitorElement * nClustersTrendOnTrack
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
MonitorElement * bookProfile(Args &&...args)
MonitorElement * ClusterPosOffTrack
MonitorElement * ClusterPosOnTrack
bool getByToken(EDGetToken token, Handle< PROD > &result) const
float noiseRescaledByGain() const
MonitorElement * ClusterGain
void book(DQMStore::IBooker &, const TrackerTopology *tTopo)
MonitorElement * ClusterStoNCorrOnTrack
void AllClusters(const edm::Event &ev, const edm::EventSetup &es)
bool clusterInfos(SiStripClusterInfo *cluster, const uint32_t detid, enum ClusterFlags flags, bool track_ok, LocalVector LV, const Det2MEs &MEs, const TrackerTopology *tTopo, const SiStripGain *stripGain, const SiStripQuality *stripQuality)
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
MonitorElement * ClusterStoNOffTrack
MonitorElement * ClusterChargeOnTrack
bool IsStripBad(const uint32_t &detid, const short &strip) const
std::map< std::string, RingMEs > RingMEsMap
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
std::string topFolderName_
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
MonitorElement * ClusterStoNCorrThinOnTrack
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=0)
MonitorElement * bookME1D(DQMStore::IBooker &, const char *, const char *)
void trackStudyFromTrajectory(edm::Handle< reco::TrackCollection > trackCollectionHandle, const edm::EventSetup &es)
void trajectoryStudy(const reco::Track &track, const edm::EventSetup &es, bool track_ok)
MonitorElement * ClusterChargePerCMfromTrack
SiStripDetId::ModuleGeometry moduleGeometry(const DetId &id) const
MonitorElement * ClusterChargeCorrOnTrack
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MonitorElement * ClusterChargeRawOffTrack
data_type const * const_iterator
std::string TrackProducer_
bool trackFilter(const reco::Track &track)
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
void bookLayerMEs(DQMStore::IBooker &, const uint32_t, std::string &)
MonitorElement * ClusterChargeCorr
MonitorElement * ClusterGain
uint16_t maxIndex() const
auto stripCharges() const -> decltype(cluster() ->amplitudes())
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
MonitorElement * ClusterChargeOffTrack
MonitorElement * ClusterStoNCorrOnTrack
MonitorElement * ClusterChargePerCMfromOriginOffTrack
MonitorElement * ClusterPGV
MonitorElement * ClusterChargeCorrThinOnTrack
MonitorElement * nClustersTrendOffTrack
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
uint32_t rawId() const
get the raw id
edm::ESHandle< TrackerGeometry > tkgeom_
MonitorElement * ClusterCharge
bool getStatus(edm::Event const &e, edm::EventSetup const &eSetup)
edmNew::DetSet< SiStripCluster >::const_iterator ClusIter
math::XYZTLorentzVectorD LV
float signalOverNoise() const
MonitorElement * ClusterChargeRawOnTrack
MonitorElement * ClusterChargeRaw
vector< ParameterSet > Parameters
MonitorElement * ClusterGain
edm::EventNumber_t eventNb
TkHistoMap * tkhisto_NumMissingHits
std::unordered_set< const SiStripCluster * > vPSiStripCluster
std::map< std::string, SubDetMEs > SubDetMEsMap
MonitorElement * ClusterChargeOffTrack
static float getStripGain(const uint16_t &strip, const SiStripApvGain::Range &range)
MonitorElement * nClustersOnTrack
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void fill(uint32_t &detid, float value)
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
double pt() const
track transverse momentum
const std::string subdet_tag("SubDet")
MonitorElement * ClusterStoNCorrOnTrack
MonitorElement * bookME2D(DQMStore::IBooker &, const char *, const char *)
MonitorElement * ClusterNoiseOffTrack
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
MonitorElement * ClusterWidthOnTrack
void bookSubDetMEs(DQMStore::IBooker &, std::string &name)
MonitorElement * bookME3D(DQMStore::IBooker &, const char *, const char *)
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &es) override
MonitorElement * ClusterChargePerCMfromOrigin
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
MonitorElement * ClusterChargePerCMfromOriginOffTrack
SiStripFolderOrganizer folderOrganizer_
std::string getSubdetid(uint32_t id, const TrackerTopology *tTopo, bool flag_ring)
MonitorElement * ClusterChargePerCMfromTrack
MonitorElement * ClusterChargeOnTrack
MonitorElement * ClusterNoiseOffTrack
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * ClusterChargeCorrOnTrack
MonitorElement * ClusterChargeCorrThickOnTrack
SiStripRecHit2D originalHit() const
Detector identifier class for the strip tracker.
void bookModMEs(DQMStore::IBooker &, const uint32_t)
MonitorElement * ClusterChargeRawOnTrack
MonitorElement * ClusterWidth
MonitorElement * ClusterChargeOnTrack
TkHistoMap * tkhisto_NumberInactiveHits
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=0)
void setCurrentFolder(const std::string &fullpath)
TkHistoMap * tkhisto_ClChPerCMfromOrigin
SiStripRecHit2D stereoHit() const
MonitorElement * book2D(Args &&...args)
void hitStudy(const edm::EventSetup &es, const ProjectedSiStripRecHit2D *projhit, const SiStripMatchedRecHit2D *matchedhit, const SiStripRecHit2D *hit2D, const SiStripRecHit1D *hit1D, LocalVector localMomentum, const bool track_ok)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
MonitorElement * ClusterWidthOffTrack
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
MonitorElement * ClusterPosOnTrack
MonitorElement * ClusterChargePerCMfromTrack
MonitorElement * ClusterPosOffTrack
MonitorElement * ClusterChargeOffTrack
std::map< std::string, ModMEs > ModMEsMap
MonitorElement * bookMETrend(DQMStore::IBooker &, const char *)
MonitorElement * ClusterPos
TkHistoMap * tkhisto_ClChPerCMfromTrack
MonitorElement * ClusterChargeCorrOnTrack
int numberOfValidTrackerHits() const
TkHistoMap * tkhisto_NumOnTrack
SiStripRecHit2D monoHit() const
GenericTriggerEventFlag * genTriggerEventFlag_
const uint16_t nApvPairs(uint32_t det_id) const
MonitorElement * ClusterChargeRawOnTrack
MonitorElement * ClusterChargePerCMfromOriginOnTrack
const Range getRange(const uint32_t detID) const
MonitorElement * handleBookMEs(DQMStore::IBooker &, std::string &, std::string &, std::string &, std::string &)
static int position[264][3]
MonitorElement * ClusterWidthOnTrack
MonitorElement * bookMEProfile(DQMStore::IBooker &, const char *, const char *)
MonitorElement * ClusterGain
TkHistoMap * tkhisto_StoNCorrOnTrack
DetId geographicalId() const
bool clchCMoriginTkHmap_On_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * ClusterChargePerCMfromOriginOnTrack
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
Detector det() const
get the detector field from this detid
MonitorElement * book3D(Args &&...args)
MonitorElement * ClusterWidthOffTrack
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * nClustersOffTrack
void bookRingMEs(DQMStore::IBooker &, const uint32_t, std::string &)
T const * product() const
MonitorElement * ClusterStoNCorrThickOnTrack
MonitorElement * ClusterChargePerCMfromOriginOnTrack
void add(uint32_t &detid, float value)
TkHistoMap * tkhisto_NumberValidHits
bool applyClusterQuality_
edm::InputTag Cluster_src_
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
const GeomDetUnit * stereoDet() const
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
const TrackerGeomDet * idToDet(DetId) const
MonitorElement * ClusterChargeRawOffTrack
const SiStripApvGain::Range getRange(uint32_t detID) const
void RecHitInfo(const T *tkrecHit, LocalVector LV, const edm::EventSetup &, bool ok)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken_
std::map< std::string, LayerMEs > LayerMEsMap
const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
MonitorElement * ClusterChargePerCMfromOriginOffTrack
MonitorElement * ClusterNoiseOnTrack