venerdì 31 agosto 2007

Zone Division

Here you are the last improvements in defining the regions in ecal/encap and ecal/barrel...

we are sorry for the orrible colours
Now let's go for results!

giovedì 30 agosto 2007

first control of zone division


As now we can only get the picture of the region division of the EB in the InvMatrixLooper file.

mercoledì 29 agosto 2007

Definition of Regions

Finally we manage to define the regions in a clever way... now from the .cfg file you can choose every interval you desire... here you are some plots, we choose some interesting angles to test the algorithm:


the green region is the selected one
the red region is the rejected one through phi
the missing-color region is rejected through the radius
the blue one... there's no detector!

come leggere / scrivere coefficienti nel framework

Per qualunque informazione che non sia nel singolo evento, in CMSSW ci sono 3 entita' definite.

- la classe che contiene i coefficienti, che il framework passa all'utente
- una classe Source che costruisce i coefficienti da passare all'utente
- una classe Record che, credo, serve per registrare nel framework l'informazione che deve essere in grado di passare
all'utente un oggetto che contiene i coefficienti attraverso un Source.

Con Luca abbiamo trovato un record:

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h?revision=1.1&view=markup

un oggetto che contiene i coefficienti:

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/CondFormats/EcalObjects/interface/EcalIntercalibConstants.h?revision=1.2&view=markup

ed il source:

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibTools.h?revision=1.2&view=markup
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/CalibCalorimetry/CaloMiscalibTools/plugins/CaloMiscalibTools.cc?hideattic=0&revision=1.1&view=markup&pathrev=V00-01-01

(NB che il .cc e' in plugins!)

martedì 28 agosto 2007

Endcap Regions

Today I solved the problem of dividing correctly the endcap... here are some plots; the region of interest is the red one, while the others are forbidden.




Still remains the problem between 359° and 0°... but I'll perform a rotation and place the 0° starting point between the two Ds of the endcap.



Soon news.
d

lunedì 27 agosto 2007

dati di fast simulation scalibrati

ho provato a generare con la fast simulation 5K eventi nell'endcap, ora abbiamo, in

/castor/cern.ch/user/g/govoni/ECALCalib/fastSim/test/calib

i dati calibrati per EB ed EE, in

/castor/cern.ch/user/g/govoni/ECALCalib/fastSim/test/scalib05

i dati scalibrati per EB (presto) ed EE

come leggere il preshower

i link:

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoEcal/EgammaClusterProducers/interface/PreshowerAnalyzer.h?revision=1.3&view=markup
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/RecoEcal/EgammaClusterProducers/src/PreshowerAnalyzer.cc?revision=1.4&view=markup

(forse) con questa riga nel BuildFile:



con gli include:

#include "DataFormats/EgammaReco/interface/PreshowerCluster.h"
#include "RecoEcal/EgammaClusterProducers/interface/PreshowerClusterProducer.h"

con i parametri:

preshClusterCollectionX_ = ps.getParameter("preshClusterCollectionX");
preshClusterCollectionY_ = ps.getParameter("preshClusterCollectionY");
preshClusterProducer_ = ps.getParameter("preshClusterProducer");

con li codice:

// Get ES clusters in X plane
Handle pPreshowerClustersX;
evt.getByLabel(preshClusterProducer_, preshClusterCollectionX_, pPreshowerClustersX);
const reco::PreshowerClusterCollection *clustersX = pPreshowerClustersX.product();
h1_nclu_x->Fill( clustersX->size() );
//std::cout << "\n pPreshowerClustersX->size() = " <<>size() <<> pPreshowerClustersY;
evt.getByLabel(preshClusterProducer_, preshClusterCollectionY_, pPreshowerClustersY);
const reco::PreshowerClusterCollection *clustersY = pPreshowerClustersY.product();
h1_nclu_y->Fill( clustersY->size() );
//std::cout << "\n pPreshowerClustersY->size() = " <<>size() << e1 =" 0;" esclus =" clustersX-">begin();
esClus !=clustersX->end(); esClus++) {
e1 += esClus->energy();
h1_esE_x->Fill( esClus->energy() );
h1_esEta_x->Fill( esClus->eta() );
h1_esPhi_x->Fill( esClus->phi() );
h1_esNhits_x->Fill( esClus->nhits() );
}

float e2 = 0;
for(reco::PreshowerClusterCollection::const_iterator esClus = clustersY->begin();
esClus !=clustersY->end(); esClus++) {
e2 += esClus->energy();
h1_esE_y->Fill( esClus->energy() );
h1_esEta_y->Fill( esClus->eta() );
h1_esPhi_y->Fill( esClus->phi() );
h1_esNhits_y->Fill( esClus->nhits() );
}

float deltaE = 0;
if(e1+e2 > 1.0e-10) {
// GeV to #MIPs
e1 = e1 / mip_;
e2 = e2 / mip_;
deltaE = gamma_*(calib_planeX_*e1+calib_planeY_*e2);
}

h1_esDeltaE->Fill(deltaE);

OPPURE, PIU' SEMPLICEMENTE:

SuperCluster::preshowerEnergy ()
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/DataFormats/EgammaReco/interface/SuperCluster.h?revision=1.10&view=markup