Skip to content

Commit

Permalink
timing for cosmics added
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Ilaria Rovelli committed Jun 24, 2008
1 parent fd00240 commit 57b806b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ EcalDigiProducer::EcalDigiProducer(const edm::ParameterSet& params)
theEcalResponse = new CaloHitResponse(theParameterMap, theEcalShape);
theESResponse = new CaloHitResponse(theParameterMap, theESShape);

// further phase for cosmics studies
cosmicsPhase = params.getParameter<bool>("cosmicsPhase");
cosmicsShift = params.getParameter<double>("cosmicsShift");
if (cosmicsPhase) {
theEcalResponse->setPhaseShift(1.+cosmicsShift);
}

EcalCorrMatrix thisMatrix;

std::vector<double> corrNoiseMatrix = params.getParameter< std::vector<double> >("CorrelatedNoiseMatrix");
Expand Down
3 changes: 3 additions & 0 deletions SimCalorimetry/EcalSimProducers/plugins/EcalDigiProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ class EcalDigiProducer : public edm::EDProducer
double EBs25notCont;
double EEs25notCont;

bool cosmicsPhase;
double cosmicsShift;

bool doFast;
};

Expand Down
3 changes: 3 additions & 0 deletions SimCalorimetry/EcalSimProducers/python/ecaldigi_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
from SimCalorimetry.EcalSimProducers.ecalElectronicsSim_cff import *
from SimCalorimetry.EcalSimProducers.esElectronicsSim_cff import *
from SimCalorimetry.EcalSimProducers.ecalNotContainmentSim_cff import *
from SimCalorimetry.EcalSimProducers.ecalCosmicsSim_cff import *
simEcalUnsuppressedDigis = cms.EDProducer("EcalDigiProducer",
ecal_electronics_sim,
ecal_cosmics_sim,
ecal_sim_parameter_map,
ecal_notCont_sim,
es_electronics_sim,
Expand Down Expand Up @@ -46,3 +48,4 @@
)



0 comments on commit 57b806b

Please sign in to comment.