87 dqmStore_->setCurrentFolder(
prefixME_ +
"/EBRecoSummary");
96 h_recHits_EB_Chi2 = dqmStore_->book1D(
"recHits_EB_Chi2",
"recHits_EB_Chi2",200,0,100);
97 h_recHits_EB_time = dqmStore_->book1D(
"recHits_EB_time",
"recHits_EB_time",200,-50,50);
98 h_recHits_EB_E1oE4 = dqmStore_->book1D(
"recHits_EB_E1oE4",
"recHitsEB_E1oE4",150, 0, 1.5);
110 h_superClusters_eta = dqmStore_->book1D(
"superClusters_eta",
"superClusters_eta",150,-3.,3.);
111 h_superClusters_EB_phi = dqmStore_->book1D(
"superClusters_EB_phi",
"superClusters_EB_phi",360,-3.1415927,3.1415927);
145 if ( ! redRecHitsEB.
isValid() ) {
150 itr != theBarrelEcalredRecHits->
end () ;++itr)
167 float maxRecHitEnergyEB = -999.;
172 itr != theBarrelEcalRecHits->
end () ;++itr)
180 if (itr ->
energy() > maxRecHitEnergyEB ){
181 maxRecHitEnergyEB = itr ->
energy() ;
203 if ( ! basicClusters_EB_h.
isValid() ) {
207 for (reco::BasicClusterCollection::const_iterator itBC = theBarrelBasicClusters->begin();
208 itBC != theBarrelBasicClusters->end(); ++itBC ) {
211 const std::vector<std::pair<DetId,float> > & hits= itBC->hitsAndFractions();
212 for (std::vector<std::pair<DetId,float> > ::const_iterator rh = hits.begin(); rh!=hits.end(); ++rh){
215 if (itrechit==theBarrelEcalRecHits->
end())
continue;
227 if ( ! superClusters_EB_h.
isValid() ) {
231 for (reco::SuperClusterCollection::const_iterator itSC = theBarrelSuperClusters->begin();
232 itSC != theBarrelSuperClusters->end(); ++itSC ) {
234 double scEt = itSC ->
energy() *
sin(2.*atan(
exp(- itSC->position().eta() )));
274 if(neta > 0) neta -= 1;
275 if(nphi > 359) nphi=nphi-360;
288 if(
abs(nphi1-nphi2) < (360-
abs(nphi1-nphi2))) {
292 mdiff=360-
abs(nphi1-nphi2);
293 if(nphi1>nphi2) mdiff=-mdiff;
MonitorElement * h_recHits_EB_time
T getParameter(std::string const &) const
MonitorElement * h_recHits_EB_energyMax
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * h_recHits_EB_Chi2
MonitorElement * h_superClusters_EB_nBC
#define DEFINE_FWK_MODULE(type)
MonitorElement * h_superClusters_EB_E1oE4
Sin< T >::type sin(const T &t)
std::vector< EcalRecHit >::const_iterator const_iterator
MonitorElement * h_recHits_EB_E1oE4
edm::InputTag superClusterCollection_EB_
MonitorElement * h_recHits_EB_recoFlag
MonitorElement * h_superClusters_eta
int diff_neta_s(int, int)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
EBRecoSummary(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int ieta() const
get the crystal ieta
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
edm::InputTag recHitCollection_EB_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
void convxtalid(int &, int &)
edm::InputTag redRecHitCollection_EB_
iterator find(key_type k)
MonitorElement * h_superClusters_EB_phi
MonitorElement * h_redRecHits_EB_recoFlag
edm::InputTag basicClusterCollection_EB_
MonitorElement * h_basicClusters_recHits_EB_recoFlag
int diff_nphi_s(int, int)
const_iterator begin() const