42 edm::LogInfo (
"PixelHLTDQM") <<
"SiPixelMuonHLT::SiPixelMuonHLT: Got DQM BackEnd interface"<<std::endl;
49 if (theDMBE !=
NULL) theDMBE->setCurrentFolder (monitorName_);
58 edm::LogInfo (
"PixelHLTDQM") <<
"SiPixelMuonHLT::~SiPixelMuonHLT: Destructor"<<std::endl;
64 edm::LogInfo (
"PixelHLTDQM") <<
" SiPixelMuonHLT::beginJob - Initialisation ... " << std::endl;
72 edm::LogInfo (
"PixelHLTDQM") <<
" SiPixelMuonHLT::endJob - Saving Root File " << std::endl;
95 reco::RecoChargedCandidateCollection::const_iterator cand;
99 bool GotClusters =
true;
100 bool GotRecHits =
true;
101 bool GotL3Muons =
true;
103 iEvent.
getByLabel(
"hltSiPixelClusters", clusters);
108 iEvent.
getByLabel(
"hltSiPixelRecHits", rechits);
122 int NBarrel[4] = {0,0,0,0};
123 int NEndcap[5] = {0,0,0,0,0};
124 for (
size_t i = 0;
i < clusters->size(); ++
i){
128 uint detID = clusters->
id(
i);
135 int clustLay = tTopo->
pxbLayer(detID);
154 int clustDisk = tTopo->
pxfDisk(detID);
155 if( tTopo->
pxfSide(detID) == 2)
156 clustDisk = clustDisk +2;
162 ++NEndcap[clustDisk];
167 for (
int lay = 1; lay < 4; ++lay)
170 for (
int disk = 1; disk < 5; ++disk)
174 bool doRecHits =
false;
176 if (GotRecHits && doRecHits){
179 for (
size_t i = 0;
i < rechits->size(); ++
i){
181 uint detID = rechits->
id(
i);
189 edm::LogInfo(
"PixelHLTDQM") <<
" (From SiPixelRecHit) Hit Eta: " << hitgp.
eta() <<
" Hit Phi: " << hitgp.
phi() << std::endl;
197 int NBarrel[4] = {0,0,0,0};
198 int NEndcap[5] = {0,0,0,0,0};
199 for (cand = l3mucands->begin (); cand != l3mucands->end (); ++cand){
201 for (
size_t hit = 0;
hit < l3tk->recHitsSize ();
hit++){
202 if (l3tk->recHit (
hit)->isValid () ==
true && l3tk->recHit (
hit)->geographicalId ().det () ==
DetId::Tracker){
203 int detID = l3tk->recHit(
hit)->geographicalId().rawId();
208 if((*pixhit).isValid() ==
true){
210 if (!(*pixhit).cluster().isAvailable())
216 if(l3tk->recHit(
hit)->geographicalId().subdetId() == 1){
218 int clustLay = tTopo->
pxbLayer(detID);
232 if(l3tk->recHit(
hit)->geographicalId().subdetId() == 2){
233 int clustDisk = tTopo->
pxfDisk(detID);
234 if( tTopo->
pxfDisk(detID) == 2)
235 clustDisk = clustDisk +2;
241 ++NEndcap[clustDisk];
249 for (
int lay = 1; lay < 4; ++lay)
252 for (
int disk = 1; disk < 5; ++disk)
267 float PhiMax = 3.142;
278 std::string layerLabel[4] = {
"All_Layers",
"Layer1",
"Layer2",
"Layer3"};
279 for (
unsigned int i = 0;
i < 4;
i++)
284 histoname =
"EtaPhiAllBarrelMap_" + layerLabel[
i];
285 title =
"#eta-#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
288 histoname =
"ZPhiAllBarrelMap_" + layerLabel[
i];
289 title =
"Z-#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
292 histoname =
"EtaAllBarrelMap_" + layerLabel[
i];
293 title =
"#eta Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
296 histoname =
"ZAllBarrelMap_" + layerLabel[
i];
297 title =
"Z Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
300 histoname =
"PhiAllBarrelMap_" + layerLabel[
i];
301 title =
"#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
304 histoname =
"NAllBarrelMap_" + layerLabel[
i];
305 title =
"#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
310 histoname =
"EtaPhiOnTrackBarrelMap_" + layerLabel[
i];
311 title =
"#eta-#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
314 histoname =
"ZPhiOnTrackBarrelMap_" + layerLabel[
i];
315 title =
"Z-#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
318 histoname =
"EtaOnTrackBarrelMap_" + layerLabel[
i];
319 title =
"#eta On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
322 histoname =
"ZOnTrackBarrelMap_" + layerLabel[
i];
323 title =
"Z On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
326 histoname =
"PhiOnTrackBarrelMap_" + layerLabel[
i];
327 title =
"#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
330 histoname =
"NOnTrackBarrelMap_" + layerLabel[
i];
331 title =
"N_{Clusters} On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
336 std::string diskLabel[5] = {
"All_Disks",
"InnerPosZ",
"OuterPosZ",
"InnerNegZ",
"OuterNegZ"};
337 for (
int i = 0;
i < 5; ++
i)
342 histoname =
"XYAllEndcapMap_" + diskLabel[
i];
343 title =
"X-Y Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
346 histoname =
"PhiAllEndcapMap_" + diskLabel[
i];
347 title =
"#phi Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
350 histoname =
"NAllEndcapMap_" + diskLabel[
i];
351 title =
"#phi Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
356 histoname =
"XYOnTrackEndcapMap_" + diskLabel[
i];
357 title =
"X-Y Pixel Endcap On Track Cluster Occupancy Map for " + diskLabel[
i];
360 histoname =
"PhiOnTrackEndcapMap_" + diskLabel[
i];
361 title =
"#phi Pixel Endcap On Track Cluster Occupancy Map for " + diskLabel[
i];
364 histoname =
"NOnTrackEndcapMap_" + diskLabel[
i];
365 title =
"#phi Pixel Endcap On Track Cluster Occupancy Map for " + diskLabel[
i];
SiPixelMuonHLT(const edm::ParameterSet &conf)
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
edm::InputTag rechitsCollectionTag_
T getUntrackedParameter(std::string const &, T const &) const
std::map< int, MonitorElement * > MEContainerAllBarrelZ
edm::InputTag l3MuonCollectionTag_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
std::map< int, MonitorElement * > MEContainerAllEndcapPhi
std::map< int, MonitorElement * > MEContainerAllBarrelN
#define DEFINE_FWK_MODULE(type)
unsigned int pxfDisk(const DetId &id) const
bool verbose_
every n events
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
std::map< int, MonitorElement * > MEContainerOnTrackBarrelPhi
Geom::Phi< T > phi() const
std::map< int, MonitorElement * > MEContainerAllBarrelZPhi
std::map< int, MonitorElement * > MEContainerOnTrackEndcapN
edm::ParameterSet parameters_
const double EtaMax[kNumberCalorimeter]
std::map< int, MonitorElement * > MEContainerAllBarrelEta
std::map< int, MonitorElement * > MEContainerOnTrackBarrelN
const Plane & surface() const
The nominal surface of the GeomDet.
std::map< int, MonitorElement * > MEContainerAllBarrelPhi
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::map< int, MonitorElement * > MEContainerAllEndcapXY
std::map< int, MonitorElement * > MEContainerOnTrackBarrelEta
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::InputTag clusterCollectionTag_
std::map< int, MonitorElement * > MEContainerAllEndcapN
DetId geographicalId() const
The label of this GeomDet.
std::map< int, MonitorElement * > MEContainerAllBarrelEtaPhi
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual const GeomDet * idToDet(DetId) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
unsigned int pxbLayer(const DetId &id) const
EventAuxiliary const & eventAuxiliary() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T const * product() const
std::map< int, MonitorElement * > MEContainerOnTrackBarrelZPhi
Pixel cluster – collection of neighboring pixels above threshold.
std::map< int, MonitorElement * > MEContainerOnTrackBarrelZ
virtual void Histo_init()
unsigned int pxfSide(const DetId &id) const
std::map< int, MonitorElement * > MEContainerOnTrackBarrelEtaPhi
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
T const * get() const
Returns C++ pointer to the item.
EventNumber_t event() const
void setCurrentFolder(const std::string &fullpath)
std::map< int, MonitorElement * > MEContainerOnTrackEndcapXY
std::map< int, MonitorElement * > MEContainerOnTrackEndcapPhi