29 tracksCollection_in_EventTree(
true),
73 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::beginRun] There are "<<
tkgeom_->
detUnits().size() <<
" detectors instantiated in the geometry" << std::endl;
88 book(ibooker , tTopo);
101 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::analyse] " <<
"Run " << e.
id().
run() <<
" Event " << e.
id().
event() << std::endl;
108 for (std::map<std::string, SubDetMEs>::iterator iSubDet =
SubDetMEsMap.begin();
110 iSubDet->second.totNClustersOnTrack = 0;
111 iSubDet->second.totNClustersOffTrack = 0;
122 std::map<std::string, MonitorElement*>::iterator iME;
123 std::map<std::string, LayerMEs>::iterator iLayerME;
168 std::vector<uint32_t> vdetId_;
170 const char* tec =
"TEC";
171 const char* tid =
"TID";
176 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
177 uint32_t detid = *detid_iter;
180 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
188 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
197 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
199 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
203 const char* subdet = det_layer_pair.first.c_str();
204 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
206 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
208 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
209 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
225 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
226 uint32_t detid = *detid_iter;
229 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
237 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
246 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
248 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
252 const char* subdet = det_layer_pair.first.c_str();
253 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
255 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
257 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
258 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
279 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(hid);
305 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);
326 if (
id.
find(
"TEC") == std::string::npos &&
id.find(
"TID") == std::string::npos ) {
327 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
331 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
352 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,layer_id,
"OnTrack");
353 hpar =
"TH1ClusterStoNCorr";
357 hname = hidmanager.
createHistoLayer(
"Summary_ClusterGain",name,layer_id,
"");
358 hpar =
"TH1ClusterGain";
362 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,layer_id,
"OnTrack");
363 hpar =
"TH1ClusterChargeCorr";
367 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OnTrack");
368 hpar =
"TH1ClusterCharge";
371 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OffTrack");
372 hpar =
"TH1ClusterCharge";
376 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OnTrack");
377 hpar =
"TH1ClusterChargeRaw";
380 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OffTrack");
381 hpar =
"TH1ClusterChargeRaw";
385 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OnTrack");
386 hpar =
"TH1ClusterNoise";
389 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OffTrack");
390 hpar =
"TH1ClusterNoise";
394 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OnTrack");
395 hpar =
"TH1ClusterWidth";
398 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OffTrack");
399 hpar =
"TH1ClusterWidth";
404 if (layer_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
406 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OnTrack");
407 hpar =
"TH1ClusterPos";
408 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);
410 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OffTrack");
411 hpar =
"TH1ClusterPos";
412 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);
415 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,layer_id,
"");
416 hpar =
"TH1ClusterChargePerCM";
419 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OnTrack");
420 hpar =
"TH1ClusterChargePerCM";
423 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OffTrack");
424 hpar =
"TH1ClusterChargePerCM";
443 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,ring_id,
"OnTrack");
444 hpar =
"TH1ClusterStoNCorr";
449 hpar =
"TH1ClusterGain";
453 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,ring_id,
"OnTrack");
454 hpar =
"TH1ClusterChargeCorr";
458 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OnTrack");
459 hpar =
"TH1ClusterCharge";
462 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OffTrack");
463 hpar =
"TH1ClusterCharge";
467 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OnTrack");
468 hpar =
"TH1ClusterChargeRaw";
471 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OffTrack");
472 hpar =
"TH1ClusterChargeRaw";
476 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OnTrack");
477 hpar =
"TH1ClusterNoise";
480 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OffTrack");
481 hpar =
"TH1ClusterNoise";
485 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OnTrack");
486 hpar =
"TH1ClusterWidth";
489 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OffTrack");
490 hpar =
"TH1ClusterWidth";
495 if (ring_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
497 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OnTrack");
498 hpar =
"TH1ClusterPos";
501 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OffTrack");
502 hpar =
"TH1ClusterPos";
506 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,ring_id,
"");
507 hpar =
"TH1ClusterChargePerCM";
510 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OnTrack");
511 hpar =
"TH1ClusterChargePerCM";
514 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OffTrack");
515 hpar =
"TH1ClusterChargePerCM";
529 subdet_tag =
"__" +
name;
536 completeName =
"Summary_TotalNumberOfClusters_OnTrack" +
subdet_tag;
537 axisName =
"Number of on-track clusters in " +
name;
543 completeName =
"Summary_TotalNumberOfClusters_OffTrack" +
subdet_tag;
544 axisName =
"Number of off-track clusters in " +
name;
550 completeName =
"Summary_ClusterGain" +
subdet_tag;
554 completeName =
"Summary_ClusterStoNCorr_OnTrack" +
subdet_tag;
557 completeName =
"Summary_ClusterStoNCorrThin_OnTrack" +
subdet_tag;
560 completeName =
"Summary_ClusterStoNCorrThick_OnTrack" +
subdet_tag;
564 completeName =
"Summary_ClusterChargeCorr_OnTrack" +
subdet_tag;
567 completeName =
"Summary_ClusterChargeCorrThin_OnTrack" +
subdet_tag;
570 completeName =
"Summary_ClusterChargeCorrThick_OnTrack" +
subdet_tag;
574 completeName =
"Summary_ClusterCharge_OnTrack" +
subdet_tag;
578 completeName =
"Summary_ClusterChargeRaw_OnTrack" +
subdet_tag;
582 completeName =
"Summary_ClusterCharge_OffTrack" +
subdet_tag;
586 completeName =
"Summary_ClusterChargeRaw_OffTrack" +
subdet_tag;
590 completeName =
"Summary_ClusterStoN_OffTrack" +
subdet_tag;
594 completeName =
"Summary_ClusterChargePerCMfromTrack" +
subdet_tag;
598 completeName =
"Summary_ClusterChargePerCMfromOrigin_OnTrack" +
subdet_tag;
602 completeName =
"Summary_ClusterChargePerCMfromOrigin_OffTrack" +
subdet_tag;
607 completeName =
"Trend_TotalNumberOfClusters_OnTrack" +
subdet_tag;
609 completeName =
"Trend_TotalNumberOfClusters_OffTrack" +
subdet_tag;
622 return ibooker.
book1D(HistoName,HistoName,
633 return ibooker.
book2D(HistoName,HistoName,
647 return ibooker.
book3D(HistoName,HistoName,
686 me->setAxisTitle(
"Lumisection",1);
699 auto const & trajParams = track.
extra()->trajParams();
707 uint32_t thedetid=ttrh->rawId();
709 if ( (ttrh->getType()==1) )
711 if ( (ttrh->getType()==2) )
713 if ( (ttrh->getType()==0) )
718 if (!ttrh->isValid())
continue;
721 auto statedirection = trajParams[
h].momentum();
732 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
739 statedirection=monodet->
toLocal(gtrkdirup);
742 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,digilist,ev,es,track_ok);
745 statedirection=stereodet->
toLocal(gtrkdirup);
748 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,digilist,ev,es,track_ok);
751 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
760 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
762 statedirection=det->
toLocal(gtrkdirup);
763 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
766 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
769 statedirection=det->
toLocal(gtrkdirup);
770 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
773 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,digilist,ev,es,track_ok);
775 if(statedirection.mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,digilist,ev,es,track_ok);
778 <<
" LocalMomentum: "<<statedirection
779 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.x(),statedirection.z());
799 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
807 statedirection=monodet->
toLocal(gtrkdirup);
809 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,digilist,ev,es,track_ok);
813 statedirection=stereodet->
toLocal(gtrkdirup);
815 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,digilist,ev,es,track_ok);
818 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
828 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
830 statedirection=det->
toLocal(gtrkdirup);
831 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
834 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
837 statedirection=det->
toLocal(gtrkdirup);
838 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
841 statedirection=localMomentum;
842 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,digilist,ev,es,track_ok);
844 statedirection=localMomentum;
845 if(statedirection.
mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,digilist,ev,es,track_ok);
848 <<
" LocalMomentum: "<<statedirection
849 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.
x(),statedirection.
z());
858 using namespace reco;
872 auto& digilist = digihandle.
isValid()? *(digihandle.
product()) : dummy;
874 if (trackCollectionHandle.
isValid()){
885 if (track.
pt() < 0.8)
return false;
886 if (track.
p() < 2.0)
return false;
905 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
915 uint32_t thedetid=(*hit)->rawId();
917 if ( ((*hit)->getType()==1) )
919 if ( ((*hit)->getType()==2) )
921 if ( ((*hit)->getType()==0) )
926 if (!(*hit)->isValid())
continue;
927 DetId detID = (*hit)->geographicalId();
939 hitStudy(ev,es,digilist,projhit,matchedhit,hit2D,hit1D,localMomentum,track_ok);
986 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
990 <<
"Track number "<< ++i << std::endl;
1016 if(!tkrecHit->isValid()){
1017 LogTrace(
"SiStripMonitorTrack") <<
"\t\t Invalid Hit " << std::endl;
1021 const uint32_t& detid = tkrecHit->geographicalId().rawId();
1024 <<
"\n\t\tRecHit on det "<<detid
1025 <<
"\n\t\tRecHit in LP "<<tkrecHit->localPosition()
1026 <<
"\n\t\tRecHit in GP "<<
tkgeom_->
idToDet(tkrecHit->geographicalId())->surface().
toGlobal(tkrecHit->localPosition())
1027 <<
"\n\t\tRecHit trackLocal vector "<<LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<std::endl;
1046 if ( tkrecHit !=
NULL ){
1052 if (
clusterInfos(&SiStripClusterInfo_,detid,
OnTrack, track_ok, LV, MEs, tTopo,stripGain,stripQuality,digilist))
1059 edm::LogError(
"SiStripMonitorTrack") <<
"NULL hit" << std::endl;
1083 auto& digilist = digihandle.
isValid()? *(digihandle.
product()) : dummy;
1087 if (siStripClusterHandle.
isValid()){
1090 DSViter!=DSVEnd; ++DSViter) {
1092 uint32_t detid=DSViter->id();
1095 LogDebug(
"SiStripMonitorTrack") <<
"on detid "<< detid <<
" N Cluster= " << DSViter->size();
1109 edm::LogError(
"SiStripMonitorTrack")<<
"ClusterCollection is not valid!!" << std::endl;
1127 std::map<std::string, LayerMEs>::iterator iLayer =
LayerMEsMap.find(layer_id);
1129 me.
iLayer = &(iLayer->second);
1132 std::map<std::string, RingMEs>::iterator iRing =
RingMEsMap.find(ring_id);
1134 me.
iRing = &(iRing->second);
1137 std::map<std::string, SubDetMEs>::iterator iSubdet =
SubDetMEsMap.find(sdet_tag);
1139 me.
iSubdet = &(iSubdet->second);
1149 const uint32_t detid,
1161 if (cluster==
NULL)
return false;
1171 LogDebug(
"SiStripMonitorTrack")<<
"\n\tLV " << LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<
" " << LV.
mag() << std::endl;
1173 cosRZ= fabs(LV.
z())/LV.
mag();
1174 LogDebug(
"SiStripMonitorTrack")<<
"\n\t cosRZ " << cosRZ << std::endl;
1185 double chargeraw = 0;
1186 double clustergain = 0 ;
1187 auto digi_it = digilist.
find(detid);
1189 for(
size_t chidx = 0 ; chidx < cluster->
stripCharges().size() ; ++chidx ){
1190 if( cluster->
stripCharges().at(chidx) <= 0 ){ continue ; }
1194 if( digi_it == digilist.
end() ){
1197 for(
const auto& digiobj : *digi_it ){
1198 if( digiobj.strip() == cluster->
firstStrip() + chidx ){
1199 chargeraw += digiobj.adc();
1203 clustergain /= double(cluster->
stripCharges().size()) ;
1216 uint32_t adet=cluster->
detId();
1220 uint32_t adet=cluster->
detId();
1227 if (MEs.
iLayer !=
nullptr) {
1241 if (MEs.
iRing !=
nullptr) {
1263 if( tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W5 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W6 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W7) {
1273 uint32_t adet=cluster->
detId();
1277 LogDebug(
"SiStripMonitorTrack") <<
"Module " << detid <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1284 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(name);
1286 if(noise > 0.0)
fillME(iModME->second.ClusterStoNCorr ,StoN*cosRZ);
1287 if(noise == 0.0)
LogDebug(
"SiStripMonitorTrack") <<
"Module " << name <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1288 fillME(iModME->second.ClusterGain, clustergain);
1289 fillME(iModME->second.ClusterCharge,charge);
1290 fillME(iModME->second.ClusterChargeRaw,chargeraw);
1292 fillME(iModME->second.ClusterChargeCorr,charge*cosRZ);
1294 fillME(iModME->second.ClusterWidth ,width);
1295 fillME(iModME->second.ClusterPos ,position);
1297 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromTrack, dQdx_fromTrack);
1298 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromOrigin, dQdx_fromOrigin);
1302 int PGVposCounter = cluster->
maxIndex();
1304 fillME(iModME->second.ClusterPGV,
i,0.);
1306 fillME(iModME->second.ClusterPGV, PGVposCounter++,(*it)/PGVmax);
1309 fillME(iModME->second.ClusterPGV,
i,0.);
1318 uint32_t adet=cluster->
detId();
1321 LogDebug(
"SiStripMonitorTrack") <<
"Module firing " << detid <<
" in Event " <<
eventNb << std::endl;
1326 if (MEs.
iLayer !=
nullptr) {
1336 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 &)
iterator find(det_id_type id)
void setSiStripFolderName(std::string name)
void trackStudy(const edm::Event &ev, 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)
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 *)
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
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, const edm::DetSetVector< SiStripDigi > &digilist)
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
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > digiToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
iterator end()
Return the off-the-end iterator.
MonitorElement * ClusterChargeCorrOnTrack
MonitorElement * ClusterChargeCorrThickOnTrack
SiStripRecHit2D originalHit() const
Detector identifier class for the strip tracker.
void trackStudyFromTrajectory(edm::Handle< reco::TrackCollection > trackCollectionHandle, const edm::DetSetVector< SiStripDigi > &digilist, const edm::Event &ev, const edm::EventSetup &es)
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
T const * product() const
MonitorElement * book2D(Args &&...args)
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
void hitStudy(const edm::Event &ev, const edm::EventSetup &es, const edm::DetSetVector< SiStripDigi > &digilist, const ProjectedSiStripRecHit2D *projhit, const SiStripMatchedRecHit2D *matchedhit, const SiStripRecHit2D *hit2D, const SiStripRecHit1D *hit1D, LocalVector localMomentum, const bool track_ok)
MonitorElement * ClusterPosOffTrack
void RecHitInfo(const T *tkrecHit, LocalVector LV, const edm::DetSetVector< SiStripDigi > &digilist, const edm::Event &ev, const edm::EventSetup &es, bool ok)
MonitorElement * ClusterChargeOffTrack
std::map< std::string, ModMEs > ModMEsMap
MonitorElement * bookMETrend(DQMStore::IBooker &, const char *)
MonitorElement * ClusterPos
void trackStudyFromTrack(edm::Handle< reco::TrackCollection > trackCollectionHandle, const edm::DetSetVector< SiStripDigi > &digilist, const edm::Event &ev, const edm::EventSetup &es)
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
void trajectoryStudy(const reco::Track &track, const edm::DetSetVector< SiStripDigi > &digilist, const edm::Event &ev, const edm::EventSetup &es, bool track_ok)
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
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