85 dqmStore_->setCurrentFolder(
prefixME_ +
"/EBRecoSummary");
94 h_recHits_EB_Chi2 = dqmStore_->book1D(
"recHits_EB_Chi2",
"recHits_EB_Chi2",200,0,100);
95 h_recHits_EB_time = dqmStore_->book1D(
"recHits_EB_time",
"recHits_EB_time",200,-50,50);
96 h_recHits_EB_E1oE4 = dqmStore_->book1D(
"recHits_EB_E1oE4",
"recHitsEB_E1oE4",150, 0, 1.5);
108 h_superClusters_eta = dqmStore_->book1D(
"superClusters_eta",
"superClusters_eta",150,-3.,3.);
109 h_superClusters_EB_phi = dqmStore_->book1D(
"superClusters_EB_phi",
"superClusters_EB_phi",360,-3.1415927,3.1415927);
143 if ( ! redRecHitsEB.
isValid() ) {
148 itr != theBarrelEcalredRecHits->
end () ;++itr)
165 float maxRecHitEnergyEB = -999.;
170 itr != theBarrelEcalRecHits->
end () ;++itr)
178 if (itr ->
energy() > maxRecHitEnergyEB ){
179 maxRecHitEnergyEB = itr ->
energy() ;
204 itBC != theBarrelBasicClusters->
end(); ++itBC ) {
207 const std::vector<std::pair<DetId,float> > & hits= itBC->hitsAndFractions();
208 for (std::vector<std::pair<DetId,float> > ::const_iterator rh = hits.begin(); rh!=hits.end(); ++rh){
211 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() )));
243 float E4 = EcalClusterTools::eTop ( *itSC, theBarrelEcalRecHits, topology )+
244 EcalClusterTools::eRight ( *itSC, theBarrelEcalRecHits, topology )+
245 EcalClusterTools::eBottom( *itSC, theBarrelEcalRecHits, topology )+
246 EcalClusterTools::eLeft ( *itSC, theBarrelEcalRecHits, topology );
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
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EB_
MonitorElement * h_recHits_EB_Chi2
MonitorElement * h_superClusters_EB_nBC
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#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::EDGetTokenT< EcalRecHitCollection > redRecHitCollection_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 &)
Abs< T >::type abs(const T &t)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int ieta() const
get the crystal ieta
const_iterator end() const
T const * product() const
T const * product() const
void convxtalid(int &, int &)
iterator find(key_type k)
edm::EDGetTokenT< EcalRecHitCollection > recHitCollection_EB_
MonitorElement * h_superClusters_EB_phi
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EB_
const_iterator begin() const
const_iterator end() const
MonitorElement * h_redRecHits_EB_recoFlag
MonitorElement * h_basicClusters_recHits_EB_recoFlag
int diff_nphi_s(int, int)
const_iterator begin() const