Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vin preshower #1195

Merged
merged 10 commits into from Nov 26, 2013
Merged

Vin preshower #1195

merged 10 commits into from Nov 26, 2013

Conversation

VinInn
Copy link
Contributor

@VinInn VinInn commented Oct 28, 2013

Seedup in Preshower and Ecal Raw2Digi code
see details inline

@VinInn
Copy link
Contributor Author

VinInn commented Oct 28, 2013

messed up with Antoniio branch….
please remove them

@@ -68,11 +69,16 @@ float EcalLaserDbService::getLaserCorrection (DetId const & xid, edm::Timestamp


int iLM;
int xind;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"compute" hash index once

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @VinInn for CMSSW_7_0_X.

Vin preshower

It involves the following packages:

DataFormats/Provenance
RecoLocalCalo/EcalRecAlgos
CalibCalorimetry/EcalLaserCorrection
HLTrigger/Configuration
Geometry/CaloGeometry
DataFormats/EcalDetId
CondFormats/EcalObjects
Geometry/ForwardGeometry
RecoJets/JetProducers
RecoTracker/TkSeedGenerator
DataFormats/EcalRecHit

@perrotta, @smuzaffar, @apfeiffer1, @Dr15Jones, @demattia, @civanch, @fwyzard, @ianna, @mdhildreth, @Martin-Grunewald, @thspeer, @rcastello, @slava77, @ggovi, @ktf, @nclopezo can you please review it and eventually sign? Thanks.
@ghellwig, @TaiSakuma, @wmtan, @GiacomoSguazzoni, @rovere, @gpetruc, @ferencek, @cerati this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@ktf you are the release manager for this.

@@ -18,16 +18,13 @@
class EcalChannelStatusCode {

public:
EcalChannelStatusCode();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in high pileup all these objects are constructed and destructed very often. better inline a constructor just hiding 16bits…

@VinInn
Copy link
Contributor Author

VinInn commented Oct 28, 2013

I messed up my branch for this.

It includes changed already in previous pull request of mine (#1176)
and Antonio Tropiano's changes for PV seeding

These last one should be, if possible, removed from my pull request

vincenzo

On 28 Oct, 2013, at 8:27 AM, cmsbuild notifications@github.com wrote:

A new Pull Request was created by @VinInn for CMSSW_7_0_X.

Vin preshower

It involves the following packages:

DataFormats/Provenance
RecoLocalCalo/EcalRecAlgos
CalibCalorimetry/EcalLaserCorrection
HLTrigger/Configuration
Geometry/CaloGeometry
DataFormats/EcalDetId
CondFormats/EcalObjects
Geometry/ForwardGeometry
RecoJets/JetProducers
RecoTracker/TkSeedGenerator
DataFormats/EcalRecHit

@perrotta, @smuzaffar, @apfeiffer1, @Dr15Jones, @demattia, @civanch, @fwyzard, @ianna, @mdhildreth, @Martin-Grunewald, @thspeer, @rcastello, @slava77, @ggovi, @ktf, @nclopezo can you please review it and eventually sign? Thanks.
@ghellwig, @TaiSakuma, @wmtan, @GiacomoSguazzoni, @rovere, @gpetruc, @ferencek, @cerati this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@ktf you are the release manager for this.

double w1_;
double w2_;
double MIPGeV_;
float w0_;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason to be double

@cmsbuild
Copy link
Contributor

Pull request #1195 was updated. @smuzaffar, @apfeiffer1, @Dr15Jones, @demattia, @civanch, @ianna, @mdhildreth, @thspeer, @rcastello, @slava77, @ggovi, @ktf, @nclopezo can you please check and sign again.

@VinInn
Copy link
Contributor Author

VinInn commented Oct 28, 2013

code in previous pull requests removed

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

@apfeiffer1
Copy link
Contributor

+1

@thspeer
Copy link
Contributor

thspeer commented Nov 7, 2013

Working @thspeer

@thspeer
Copy link
Contributor

thspeer commented Nov 7, 2013

-1
tested 1920cd3 in CMSSW_7_0_X_2013-11-07-0200
Small, but non-null, differences in ecal rechits, while no change is expected.

See for example in workflow 4.53 (RunPhoton2012B...) the energy:

@thspeer
Copy link
Contributor

thspeer commented Nov 7, 2013

all_final_runphoton2012b4p53c_log10ecalrechitssorted_reducedecalrechitses__rereco_obj_obj_energy

@VinInn
Copy link
Contributor Author

VinInn commented Nov 7, 2013

could be that is the bad flag setting, not the energy value in itself

indeed
flag differ 5 6 5
flag differ 5 6 5
flag differ 5 6 5
flag differ 0 6 0
flag differ 0 6 0
flag differ 5 6 5
flag differ 0 6 0
flag differ 5 6 5
flag differ 0 6 0
flag differ 0 6 0
flag differ 0 6 0

it seems that the old code was flagging “6” quite often.
In my opinion now is more correct

the old and new energy are indentical…

this is a typical case
old adc for 6 3.000000 14.000000 5.000000 2.800000 2.800000
flag differ 0 6 0
ESd (ES z=1 plane 1 13:4 16) hashIndex = : 0.000118,0.000118 -25.090181,-25.090178 135.000000,135.000000

where the printout is this
double r23 = (adc[2] != 0) ? adc[1]/adc[2] : 99;
if (r23 > ratioCuts_->getR23High()) { status = 6;
std::cout << "old adc for 6 " << adc[0] << " " << adc[1] << " " << adc[2] << " " << r23 << " " << ratioCuts_->getR23High() << std::endl;
}

so r23 == ratioCuts_->getR23High()
but somehow in the old code (with double) managed to become larger….

btw all those intergers in double (or float) remains a bit messy

@VinInn
Copy link
Contributor Author

VinInn commented Nov 8, 2013

to conclude: at least from my side:
the old code was considering ratios such as 14/5 28/10 etc as LARGER than 2.8 which is correct at least "face value".
This affects most probably only montecarlo (in data pedestals are not precise integers)

Because of this I ask the pull request to be accepted as is.

@ktf
Copy link
Contributor

ktf commented Nov 24, 2013

@thspeer since 70X is open again. Can you look again into it and change your vote?

@rcastello
Copy link

+1

@argiro
Copy link
Contributor

argiro commented Nov 25, 2013

On the Ecal side, the changes are Ok, the small differences do not seem cause of concern.

@ktf
Copy link
Contributor

ktf commented Nov 26, 2013

ping @thspeer

@thspeer
Copy link
Contributor

thspeer commented Nov 26, 2013

+1
tested 1920cd3 in CMSSW_7_0_X_2013-11-07-0200
Small, but non-null, differences in ecal rechits, e.g. see plot above for energy, then on photons and conversions (very small)
Understood, and is ok for ecal.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

ktf added a commit that referenced this pull request Nov 26, 2013
Reco updates -- Seedup in Preshower and Ecal Raw2Digi
@ktf ktf merged commit caeec85 into cms-sw:CMSSW_7_0_X Nov 26, 2013
@VinInn VinInn deleted the VinPreshower branch July 13, 2016 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants