29 tracksCollection_in_EventTree(
true),
74 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::beginRun] There are "<<
tkgeom_->
detUnits().size() <<
" detectors instantiated in the geometry" << std::endl;
89 book(ibooker , tTopo);
102 LogDebug(
"SiStripMonitorTrack") <<
"[SiStripMonitorTrack::analyse] " <<
"Run " << e.
id().
run() <<
" Event " << e.
id().
event() << std::endl;
109 for (std::map<std::string, SubDetMEs>::iterator iSubDet =
SubDetMEsMap.begin();
111 iSubDet->second.totNClustersOnTrack = 0;
112 iSubDet->second.totNClustersOffTrack = 0;
123 std::map<std::string, MonitorElement*>::iterator iME;
124 std::map<std::string, LayerMEs>::iterator iLayerME;
171 std::vector<uint32_t> vdetId_;
173 const char* tec =
"TEC";
174 const char* tid =
"TID";
179 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
180 uint32_t detid = *detid_iter;
183 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
191 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
200 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
202 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
206 const char* subdet = det_layer_pair.first.c_str();
207 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
209 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
211 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
212 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
228 for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin(),detid_end=vdetId_.end();detid_iter!=detid_end;++detid_iter){
229 uint32_t detid = *detid_iter;
232 edm::LogError(
"SiStripMonitorTrack")<<
"[" <<__PRETTY_FUNCTION__ <<
"] invalid detid " << detid<< std::endl;
240 std::pair<std::string,int32_t> det_layer_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
false);
249 std::map<std::string, LayerMEs>::iterator iLayerME =
LayerMEsMap.find(layer_id);
251 folder_organizer.
setLayerFolder(detid, tTopo, det_layer_pair.second,
false);
255 const char* subdet = det_layer_pair.first.c_str();
256 if ( std::strstr(subdet, tec) !=
NULL || std::strstr(subdet, tid) !=
NULL ) {
258 std::map<std::string, RingMEs>::iterator iRingME =
RingMEsMap.find(ring_id);
260 std::pair<std::string,int32_t> det_ring_pair = folder_organizer.
GetSubDetAndLayer(detid,tTopo,
true);
261 folder_organizer.
setLayerFolder(detid, tTopo, det_ring_pair.second,
true);
280 ibooker.
book1D(
"ClusterStoNCorr_OnTrack_TIBTID",
"TIB/TID [FECCrate=1] (OnTrack)",100,0.,100.);
284 ibooker.
book1D(
"ClusterStoNCorr_OnTrack_TOB",
"TOB [FECCrate=4] (OnTrack)",100,0.,100.);
288 ibooker.
book1D(
"ClusterStoNCorr_OnTrack_TECM",
"TECM [FECCrate=3] (OnTrack)",100,0.,100.);
292 ibooker.
book1D(
"ClusterStoNCorr_OnTrack_TECP",
"TECP [FECCrate=2] (OnTrack)",100,0.,100.);
297 ibooker.
book2D(
"ClusterStoNCorr_OnTrack_FECCratevsFECSlot",
" S/N (On track)",22,0.5,22.5,4,0.5,4.5);
306 ibooker.
book2D(
"ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TIBTID",
"TIB/TID [FECCrate=1] (OnTrack)",10,-0.5,9.5,22,0.5,22.5)\
312 ibooker.
book2D(
"ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TOB",
"TOB [FECCrate=4] (OnTrack)",10,-0.5,9.5,22,0.5,22.5);
317 ibooker.
book2D(
"ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TECM",
"TEC- [FECCrate=3] (OnTrack)",10,-0.5,9.5,22,0.5,22.5);
322 ibooker.
book2D(
"ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TECP",
"TEC- [FECCrate=2] (OnTrack)",10,-0.5,9.5,22,0.5,22.5);
334 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(hid);
360 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);
381 if (
id.
find(
"TEC") == std::string::npos &&
id.find(
"TID") == std::string::npos ) {
382 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
386 me =
bookME1D(ibooker , histoParameters.c_str(), histoName.c_str());
407 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,layer_id,
"OnTrack");
408 hpar =
"TH1ClusterStoNCorr";
412 hname = hidmanager.
createHistoLayer(
"Summary_ClusterGain",name,layer_id,
"");
413 hpar =
"TH1ClusterGain";
417 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,layer_id,
"OnTrack");
418 hpar =
"TH1ClusterChargeCorr";
422 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OnTrack");
423 hpar =
"TH1ClusterCharge";
426 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,layer_id,
"OffTrack");
427 hpar =
"TH1ClusterCharge";
431 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OnTrack");
432 hpar =
"TH1ClusterChargeRaw";
435 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,layer_id,
"OffTrack");
436 hpar =
"TH1ClusterChargeRaw";
440 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OnTrack");
441 hpar =
"TH1ClusterNoise";
444 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,layer_id,
"OffTrack");
445 hpar =
"TH1ClusterNoise";
449 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OnTrack");
450 hpar =
"TH1ClusterWidth";
453 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,layer_id,
"OffTrack");
454 hpar =
"TH1ClusterWidth";
459 if (layer_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
461 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OnTrack");
462 hpar =
"TH1ClusterPos";
463 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);
465 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,layer_id,
"OffTrack");
466 hpar =
"TH1ClusterPos";
467 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);
470 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,layer_id,
"");
471 hpar =
"TH1ClusterChargePerCM";
474 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OnTrack");
475 hpar =
"TH1ClusterChargePerCM";
478 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,layer_id,
"OffTrack");
479 hpar =
"TH1ClusterChargePerCM";
498 hname = hidmanager.
createHistoLayer(
"Summary_ClusterStoNCorr",name,ring_id,
"OnTrack");
499 hpar =
"TH1ClusterStoNCorr";
504 hpar =
"TH1ClusterGain";
508 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeCorr",name,ring_id,
"OnTrack");
509 hpar =
"TH1ClusterChargeCorr";
513 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OnTrack");
514 hpar =
"TH1ClusterCharge";
517 hname = hidmanager.
createHistoLayer(
"Summary_ClusterCharge",name,ring_id,
"OffTrack");
518 hpar =
"TH1ClusterCharge";
522 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OnTrack");
523 hpar =
"TH1ClusterChargeRaw";
526 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargeRaw",name,ring_id,
"OffTrack");
527 hpar =
"TH1ClusterChargeRaw";
531 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OnTrack");
532 hpar =
"TH1ClusterNoise";
535 hname = hidmanager.
createHistoLayer(
"Summary_ClusterNoise",name,ring_id,
"OffTrack");
536 hpar =
"TH1ClusterNoise";
540 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OnTrack");
541 hpar =
"TH1ClusterWidth";
544 hname = hidmanager.
createHistoLayer(
"Summary_ClusterWidth",name,ring_id,
"OffTrack");
545 hpar =
"TH1ClusterWidth";
550 if (ring_id.find(
"TEC") != std::string::npos) total_nr_strips = 3 * 2 * 128;
552 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OnTrack");
553 hpar =
"TH1ClusterPos";
556 hname = hidmanager.
createHistoLayer(
"Summary_ClusterPosition",name,ring_id,
"OffTrack");
557 hpar =
"TH1ClusterPos";
561 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromTrack",name,ring_id,
"");
562 hpar =
"TH1ClusterChargePerCM";
565 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OnTrack");
566 hpar =
"TH1ClusterChargePerCM";
569 hname = hidmanager.
createHistoLayer(
"Summary_ClusterChargePerCMfromOrigin",name,ring_id,
"OffTrack");
570 hpar =
"TH1ClusterChargePerCM";
584 subdet_tag =
"__" +
name;
591 completeName =
"Summary_TotalNumberOfClusters_OnTrack" +
subdet_tag;
592 axisName =
"Number of on-track clusters in " +
name;
598 completeName =
"Summary_TotalNumberOfClusters_OffTrack" +
subdet_tag;
599 axisName =
"Number of off-track clusters in " +
name;
605 completeName =
"Summary_ClusterGain" +
subdet_tag;
609 completeName =
"Summary_ClusterStoNCorr_OnTrack" +
subdet_tag;
612 completeName =
"Summary_ClusterStoNCorrThin_OnTrack" +
subdet_tag;
615 completeName =
"Summary_ClusterStoNCorrThick_OnTrack" +
subdet_tag;
619 completeName =
"Summary_ClusterChargeCorr_OnTrack" +
subdet_tag;
622 completeName =
"Summary_ClusterChargeCorrThin_OnTrack" +
subdet_tag;
625 completeName =
"Summary_ClusterChargeCorrThick_OnTrack" +
subdet_tag;
629 completeName =
"Summary_ClusterCharge_OnTrack" +
subdet_tag;
633 completeName =
"Summary_ClusterChargeRaw_OnTrack" +
subdet_tag;
637 completeName =
"Summary_ClusterCharge_OffTrack" +
subdet_tag;
641 completeName =
"Summary_ClusterChargeRaw_OffTrack" +
subdet_tag;
645 completeName =
"Summary_ClusterStoN_OffTrack" +
subdet_tag;
649 completeName =
"Summary_ClusterChargePerCMfromTrack" +
subdet_tag;
653 completeName =
"Summary_ClusterChargePerCMfromOrigin_OnTrack" +
subdet_tag;
657 completeName =
"Summary_ClusterChargePerCMfromOrigin_OffTrack" +
subdet_tag;
662 completeName =
"Trend_TotalNumberOfClusters_OnTrack" +
subdet_tag;
664 completeName =
"Trend_TotalNumberOfClusters_OffTrack" +
subdet_tag;
677 return ibooker.
book1D(HistoName,HistoName,
688 return ibooker.
book2D(HistoName,HistoName,
702 return ibooker.
book3D(HistoName,HistoName,
741 me->setAxisTitle(
"Lumisection",1);
754 auto const & trajParams = track.
extra()->trajParams();
762 uint32_t thedetid=ttrh->rawId();
764 if ( (ttrh->getType()==1) )
766 if ( (ttrh->getType()==2) )
768 if ( (ttrh->getType()==0) )
773 if (!ttrh->isValid())
continue;
776 auto statedirection = trajParams[
h].momentum();
787 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
794 statedirection=monodet->
toLocal(gtrkdirup);
797 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,digilist,ev,es,track_ok);
800 statedirection=stereodet->
toLocal(gtrkdirup);
803 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,digilist,ev,es,track_ok);
806 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
815 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
817 statedirection=det->
toLocal(gtrkdirup);
818 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
821 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
824 statedirection=det->
toLocal(gtrkdirup);
825 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
828 if(statedirection.mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,digilist,ev,es,track_ok);
830 if(statedirection.mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,digilist,ev,es,track_ok);
833 <<
" LocalMomentum: "<<statedirection
834 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.x(),statedirection.z());
854 LogTrace(
"SiStripMonitorTrack")<<
"\nMatched recHit found"<< std::endl;
862 statedirection=monodet->
toLocal(gtrkdirup);
864 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&m,statedirection,digilist,ev,es,track_ok);
868 statedirection=stereodet->
toLocal(gtrkdirup);
870 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&s,statedirection,digilist,ev,es,track_ok);
873 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found"<< std::endl;
883 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found MONO"<< std::endl;
885 statedirection=det->
toLocal(gtrkdirup);
886 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
889 LogTrace(
"SiStripMonitorTrack")<<
"\nProjected recHit found STEREO"<< std::endl;
892 statedirection=det->
toLocal(gtrkdirup);
893 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(&(originalhit),statedirection,digilist,
ev,es,track_ok);
896 statedirection=localMomentum;
897 if(statedirection.
mag()) RecHitInfo<SiStripRecHit2D>(hit2D,statedirection,digilist,ev,es,track_ok);
899 statedirection=localMomentum;
900 if(statedirection.
mag()) RecHitInfo<SiStripRecHit1D>(hit1D,statedirection,digilist,ev,es,track_ok);
903 <<
" LocalMomentum: "<<statedirection
904 <<
"\nLocal x-z plane angle: "<<atan2(statedirection.
x(),statedirection.
z());
913 using namespace reco;
927 auto& digilist = digihandle.
isValid()? *(digihandle.
product()) : dummy;
929 if (trackCollectionHandle.
isValid()){
940 if (track.
pt() < 0.8)
return false;
941 if (track.
p() < 2.0)
return false;
960 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
970 uint32_t thedetid=(*hit)->rawId();
972 if ( ((*hit)->getType()==1) )
974 if ( ((*hit)->getType()==2) )
976 if ( ((*hit)->getType()==0) )
981 if (!(*hit)->isValid())
continue;
982 DetId detID = (*hit)->geographicalId();
994 hitStudy(ev,es,digilist,projhit,matchedhit,hit2D,hit1D,localMomentum,track_ok);
1041 for (reco::TrackCollection::const_iterator
track = trackCollection.begin(), etrack = trackCollection.end();
1045 <<
"Track number "<< ++i << std::endl;
1071 if(!tkrecHit->isValid()){
1072 LogTrace(
"SiStripMonitorTrack") <<
"\t\t Invalid Hit " << std::endl;
1076 const uint32_t& detid = tkrecHit->geographicalId().rawId();
1079 <<
"\n\t\tRecHit on det "<<detid
1080 <<
"\n\t\tRecHit in LP "<<tkrecHit->localPosition()
1081 <<
"\n\t\tRecHit in GP "<<
tkgeom_->
idToDet(tkrecHit->geographicalId())->surface().
toGlobal(tkrecHit->localPosition())
1082 <<
"\n\t\tRecHit trackLocal vector "<<LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<std::endl;
1101 if ( tkrecHit !=
NULL ){
1107 if (
clusterInfos(&SiStripClusterInfo_,detid,
OnTrack, track_ok, LV, MEs, tTopo,stripGain,stripQuality,digilist))
1114 edm::LogError(
"SiStripMonitorTrack") <<
"NULL hit" << std::endl;
1138 auto& digilist = digihandle.
isValid()? *(digihandle.
product()) : dummy;
1142 if (siStripClusterHandle.
isValid()){
1145 DSViter!=DSVEnd; ++DSViter) {
1147 uint32_t detid=DSViter->id();
1150 LogDebug(
"SiStripMonitorTrack") <<
"on detid "<< detid <<
" N Cluster= " << DSViter->size();
1164 edm::LogError(
"SiStripMonitorTrack")<<
"ClusterCollection is not valid!!" << std::endl;
1182 std::map<std::string, LayerMEs>::iterator iLayer =
LayerMEsMap.find(layer_id);
1184 me.
iLayer = &(iLayer->second);
1187 std::map<std::string, RingMEs>::iterator iRing =
RingMEsMap.find(ring_id);
1189 me.
iRing = &(iRing->second);
1192 std::map<std::string, SubDetMEs>::iterator iSubdet =
SubDetMEsMap.find(sdet_tag);
1194 me.
iSubdet = &(iSubdet->second);
1207 if( !tracks.
isValid() )
return false;
1210 for (
const auto &
track : *tracks) {
1216 uint32_t thedetid = (*hit)->rawId();
1217 if ( !(
DetId(thedetid).subdetId() >=3 &&
DetId(thedetid).subdetId() <=6) ) {
continue; }
1219 if (!(*hit)->isValid())
continue;
1222 if ( theHit ==
NULL ) {
continue; }
1232 if (hit1D && !hit2D) {
1238 else if (!hit1D && hit2D) {
1245 std::vector<const FedChannelConnection *> getFedChanConnections;
1252 for (
const auto & getFedChanConnection : getFedChanConnections ) {
1254 if (getFedChanConnection==0) {
continue; }
1256 int binfeccrate = getFedChanConnection->fecCrate();
1257 int binfecslot = getFedChanConnection->fecSlot();
1258 int binfecring = getFedChanConnection->fecRing();
1309 const uint32_t detid,
1321 if (cluster==
NULL)
return false;
1331 LogDebug(
"SiStripMonitorTrack")<<
"\n\tLV " << LV.
x() <<
" " << LV.
y() <<
" " << LV.
z() <<
" " << LV.
mag() << std::endl;
1333 cosRZ= fabs(LV.
z())/LV.
mag();
1334 LogDebug(
"SiStripMonitorTrack")<<
"\n\t cosRZ " << cosRZ << std::endl;
1345 double chargeraw = 0;
1346 double clustergain = 0 ;
1347 auto digi_it = digilist.
find(detid);
1349 for(
size_t chidx = 0 ; chidx < cluster->
stripCharges().size() ; ++chidx ){
1350 if( cluster->
stripCharges().at(chidx) <= 0 ){ continue ; }
1354 if( digi_it == digilist.
end() ){
1357 for(
const auto& digiobj : *digi_it ){
1358 if( digiobj.strip() == cluster->
firstStrip() + chidx ){
1359 chargeraw += digiobj.adc();
1363 clustergain /= double(cluster->
stripCharges().size()) ;
1376 uint32_t adet=cluster->
detId();
1380 uint32_t adet=cluster->
detId();
1387 if (MEs.
iLayer !=
nullptr) {
1401 if (MEs.
iRing !=
nullptr) {
1423 if( tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W5 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W6 || tTopo->
moduleGeometry(detid) == SiStripDetId::ModuleGeometry::W7) {
1433 uint32_t adet=cluster->
detId();
1437 LogDebug(
"SiStripMonitorTrack") <<
"Module " << detid <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1444 std::map<std::string, ModMEs>::iterator iModME =
ModMEsMap.find(name);
1446 if(noise > 0.0)
fillME(iModME->second.ClusterStoNCorr ,StoN*cosRZ);
1447 if(noise == 0.0)
LogDebug(
"SiStripMonitorTrack") <<
"Module " << name <<
" in Event " <<
eventNb <<
" noise " << noise << std::endl;
1448 fillME(iModME->second.ClusterGain, clustergain);
1449 fillME(iModME->second.ClusterCharge,charge);
1450 fillME(iModME->second.ClusterChargeRaw,chargeraw);
1452 fillME(iModME->second.ClusterChargeCorr,charge*cosRZ);
1454 fillME(iModME->second.ClusterWidth ,width);
1455 fillME(iModME->second.ClusterPos ,position);
1457 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromTrack, dQdx_fromTrack);
1458 if(track_ok)
fillME(iModME->second.ClusterChargePerCMfromOrigin, dQdx_fromOrigin);
1462 int PGVposCounter = cluster->
maxIndex();
1464 fillME(iModME->second.ClusterPGV,
i,0.);
1466 fillME(iModME->second.ClusterPGV, PGVposCounter++,(*it)/PGVmax);
1469 fillME(iModME->second.ClusterPGV,
i,0.);
1478 uint32_t adet=cluster->
detId();
1481 LogDebug(
"SiStripMonitorTrack") <<
"Module firing " << detid <<
" in Event " <<
eventNb << std::endl;
1486 if (MEs.
iLayer !=
nullptr) {
1496 if (MEs.
iRing !=
nullptr) {
MonitorElement * ClusterStoNCorr
ClusterRef cluster() const
MonitorElement * ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TIBTID
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
Det2MEs findMEs(const TrackerTopology *tTopo, const uint32_t detid)
MonitorElement * ClusterStoNCorr_OnTrack_TECP
void return2DME(MonitorElement *input, int binx, int biny, double value)
MonitorElement * ClusterChargePerCMfromTrack
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
TkHistoMap * tkhisto_NumOffTrack
void setBinContent(int binx, double content)
set content of bin (1-D)
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)
math::XYZTLorentzVectorD LV
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
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * ClusterStoNCorrThinOnTrack
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
MonitorElement * bookME1D(DQMStore::IBooker &, const char *, const char *)
MonitorElement * ClusterChargePerCMfromTrack
void setLayerFolder(uint32_t rawdetid, const TrackerTopology *tTopo, int32_t layer=0, bool ring_flag=false)
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 * ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TECM
MonitorElement * ClusterStoNCorrOnTrack
MonitorElement * ClusterChargePerCMfromOriginOffTrack
static std::string const input
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
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_id) const
bool getStatus(edm::Event const &e, edm::EventSetup const &eSetup)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
edmNew::DetSet< SiStripCluster >::const_iterator ClusIter
float signalOverNoise() const
MonitorElement * ClusterChargeRawOnTrack
MonitorElement * ClusterChargeRaw
vector< ParameterSet > Parameters
MonitorElement * ClusterStoNCorr_OnTrack_TOB
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 *)
ClusterRef cluster() const
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 setCurrentFolder(const std::string &fullpath)
TkHistoMap * tkhisto_ClChPerCMfromOrigin
SiStripRecHit2D stereoHit() const
MonitorElement * ClusterStoNCorr_OnTrack_FECCratevsFECSlot
T const * product() const
MonitorElement * book2D(Args &&...args)
MonitorElement * ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TECP
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
std::pair< std::string, int32_t > GetSubDetAndLayer(const uint32_t &detid, const TrackerTopology *tTopo, bool ring_flag=false)
MonitorElement * ClusterStoNCorr_OnTrack_FECSlotVsFECRing_TOB
int numberOfValidTrackerHits() const
TkHistoMap * tkhisto_NumOnTrack
MonitorElement * ClusterStoNCorr_OnTrack_TIBTID
SiStripRecHit2D monoHit() const
GenericTriggerEventFlag * genTriggerEventFlag_
const uint16_t nApvPairs(uint32_t det_id) const
MonitorElement * ClusterChargeRawOnTrack
MonitorElement * ClusterChargePerCMfromOriginOnTrack
double getBinContent(int binx) const
get content of bin (1-D)
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]
const TrackerGeomDet * idToDet(DetId) const override
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_
const DetUnitContainer & detUnits() const override
Returm a vector of all GeomDetUnit.
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
bool fillControlViewHistos(const edm::Event &ev, const edm::EventSetup &es)
unsigned int tecSide(const DetId &id) const
MonitorElement * ClusterStoNCorr_OnTrack_TECM
MonitorElement * ClusterChargeRawOffTrack
const SiStripApvGain::Range getRange(uint32_t detID) const
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken_
std::map< std::string, LayerMEs > LayerMEsMap
MonitorElement * ClusterChargePerCMfromOriginOffTrack
MonitorElement * ClusterNoiseOnTrack