41 edm::LogInfo (
"PixelHLTDQM") <<
"SiPixelMuonHLT::SiPixelMuonHLT: Got DQM BackEnd interface"<<std::endl;
48 if (theDMBE !=
NULL) theDMBE->setCurrentFolder (monitorName_);
61 edm::LogInfo (
"PixelHLTDQM") <<
"SiPixelMuonHLT::~SiPixelMuonHLT: Destructor"<<std::endl;
67 edm::LogInfo (
"PixelHLTDQM") <<
" SiPixelMuonHLT::beginJob - Initialisation ... " << std::endl;
75 edm::LogInfo (
"PixelHLTDQM") <<
" SiPixelMuonHLT::endJob - Saving Root File " << std::endl;
98 reco::RecoChargedCandidateCollection::const_iterator cand;
102 bool GotClusters =
true;
103 bool GotRecHits =
true;
104 bool GotL3Muons =
true;
125 int NBarrel[4] = {0,0,0,0};
126 int NEndcap[5] = {0,0,0,0,0};
127 for (
size_t i = 0;
i < clusters->size(); ++
i){
131 uint detID = clusters->
id(
i);
138 int clustLay = tTopo->
pxbLayer(detID);
157 int clustDisk = tTopo->
pxfDisk(detID);
158 if( tTopo->
pxfSide(detID) == 2)
159 clustDisk = clustDisk +2;
165 ++NEndcap[clustDisk];
170 for (
int lay = 1; lay < 4; ++lay)
173 for (
int disk = 1; disk < 5; ++disk)
177 bool doRecHits =
false;
179 if (GotRecHits && doRecHits){
182 for (
size_t i = 0;
i < rechits->size(); ++
i){
184 uint detID = rechits->
id(
i);
192 edm::LogInfo(
"PixelHLTDQM") <<
" (From SiPixelRecHit) Hit Eta: " << hitgp.
eta() <<
" Hit Phi: " << hitgp.
phi() << std::endl;
200 int NBarrel[4] = {0,0,0,0};
201 int NEndcap[5] = {0,0,0,0,0};
202 for (cand = l3mucands->begin (); cand != l3mucands->end (); ++cand){
204 for (
size_t hit = 0;
hit < l3tk->recHitsSize ();
hit++){
205 if (l3tk->recHit (
hit)->isValid () ==
true && l3tk->recHit (
hit)->geographicalId ().det () ==
DetId::Tracker){
206 int detID = l3tk->recHit(
hit)->geographicalId().rawId();
211 if((*pixhit).isValid() ==
true){
213 if (!(*pixhit).cluster().isAvailable())
219 if(l3tk->recHit(
hit)->geographicalId().subdetId() == 1){
221 int clustLay = tTopo->
pxbLayer(detID);
235 if(l3tk->recHit(
hit)->geographicalId().subdetId() == 2){
236 int clustDisk = tTopo->
pxfDisk(detID);
237 if( tTopo->
pxfDisk(detID) == 2)
238 clustDisk = clustDisk +2;
244 ++NEndcap[clustDisk];
252 for (
int lay = 1; lay < 4; ++lay)
255 for (
int disk = 1; disk < 5; ++disk)
270 float PhiMax = 3.142;
281 std::string layerLabel[4] = {
"All_Layers",
"Layer1",
"Layer2",
"Layer3"};
282 for (
unsigned int i = 0;
i < 4;
i++)
287 histoname =
"EtaPhiAllBarrelMap_" + layerLabel[
i];
288 title =
"#eta-#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
291 histoname =
"ZPhiAllBarrelMap_" + layerLabel[
i];
292 title =
"Z-#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
295 histoname =
"EtaAllBarrelMap_" + layerLabel[
i];
296 title =
"#eta Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
299 histoname =
"ZAllBarrelMap_" + layerLabel[
i];
300 title =
"Z Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
303 histoname =
"PhiAllBarrelMap_" + layerLabel[
i];
304 title =
"#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
307 histoname =
"NAllBarrelMap_" + layerLabel[
i];
308 title =
"#phi Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
313 histoname =
"EtaPhiOnTrackBarrelMap_" + layerLabel[
i];
314 title =
"#eta-#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
317 histoname =
"ZPhiOnTrackBarrelMap_" + layerLabel[
i];
318 title =
"Z-#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
321 histoname =
"EtaOnTrackBarrelMap_" + layerLabel[
i];
322 title =
"#eta On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
325 histoname =
"ZOnTrackBarrelMap_" + layerLabel[
i];
326 title =
"Z On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
329 histoname =
"PhiOnTrackBarrelMap_" + layerLabel[
i];
330 title =
"#phi On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
333 histoname =
"NOnTrackBarrelMap_" + layerLabel[
i];
334 title =
"N_{Clusters} On Track Pixel Barrel Cluster Occupancy Map for " + layerLabel[
i];
339 std::string diskLabel[5] = {
"All_Disks",
"InnerPosZ",
"OuterPosZ",
"InnerNegZ",
"OuterNegZ"};
340 for (
int i = 0;
i < 5; ++
i)
345 histoname =
"XYAllEndcapMap_" + diskLabel[
i];
346 title =
"X-Y Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
349 histoname =
"PhiAllEndcapMap_" + diskLabel[
i];
350 title =
"#phi Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
353 histoname =
"NAllEndcapMap_" + diskLabel[
i];
354 title =
"#phi Pixel Endcap Cluster Occupancy Map for " + diskLabel[
i];
359 histoname =
"XYOnTrackEndcapMap_" + diskLabel[
i];
360 title =
"X-Y Pixel Endcap On Track Cluster Occupancy Map for " + diskLabel[
i];
363 histoname =
"PhiOnTrackEndcapMap_" + diskLabel[
i];
364 title =
"#phi Pixel Endcap On Track Cluster Occupancy Map for " + diskLabel[
i];
367 histoname =
"NOnTrackEndcapMap_" + diskLabel[
i];
368 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
bool hasPositionAndError() const
to be redefined by daughter class
std::map< int, MonitorElement * > MEContainerAllBarrelN
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
unsigned int pxfDisk(const DetId &id) const
bool verbose_
every n events
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.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelRecHit > > rechitsToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
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
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
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
virtual void Histo_init()
unsigned int pxfSide(const DetId &id) const
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > l3MuonCollectionToken_
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.
virtual LocalPoint localPosition() const
EventNumber_t event() const
void setCurrentFolder(const std::string &fullpath)
std::map< int, MonitorElement * > MEContainerOnTrackEndcapXY
std::map< int, MonitorElement * > MEContainerOnTrackEndcapPhi