Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions offline/QA/Calorimeters/CaloValid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
float ihcaldownscale;
float ohcaldownscale;
float mbddownscale;
float adc_threshold;
float adc_threshold_hcal;
float adc_threshold_emcal;
float emcal_hit_threshold;
float emcal_highhit_threshold;
float ohcal_hit_threshold;
Expand All @@ -190,7 +191,8 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
ihcaldownscale = 55000. / 300.;
ohcaldownscale = 265000. / 600.;
mbddownscale = 2800.0;
adc_threshold = 15.;
adc_threshold_hcal = 30;
adc_threshold_emcal = 70;

emcal_hit_threshold = 0.5; // GeV
ohcal_hit_threshold = 0.5;
Expand All @@ -206,7 +208,8 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
ihcaldownscale = 4000. / 300.;
ohcaldownscale = 25000. / 600.;
mbddownscale = 200.0;
adc_threshold = 100.;
adc_threshold_hcal = 30;
adc_threshold_emcal = 70;

emcal_hit_threshold = 0.5; // GeV
ohcal_hit_threshold = 0.5;
Expand Down Expand Up @@ -528,7 +531,7 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
}

float raw_energy = tower->get_energy();
if (raw_energy > adc_threshold)
if (raw_energy > adc_threshold_emcal)
{
h_cemc_etaphi_fracHitADC->Fill(ieta, iphi, 1);
h_cemc_etaphi_time_raw->Fill(ieta, iphi, raw_time);
Expand Down Expand Up @@ -558,7 +561,7 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
}

float raw_energy = tower->get_energy();
if (raw_energy > adc_threshold)
if (raw_energy > adc_threshold_hcal)
{
h_ohcal_etaphi_time_raw->Fill(ieta, iphi, raw_time);
h_ohcal_etaphi_fracHitADC->Fill(ieta, iphi, 1);
Expand Down Expand Up @@ -588,7 +591,7 @@ int CaloValid::process_towers(PHCompositeNode* topNode)
}

float raw_energy = tower->get_energy();
if (raw_energy > adc_threshold)
if (raw_energy > adc_threshold_hcal)
{
h_ihcal_etaphi_time_raw->Fill(ieta, iphi, raw_time);
h_ihcal_etaphi_fracHitADC->Fill(ieta, iphi, 1);
Expand Down