10 using namespace pftools;
17 double deltaR(
double eta1,
double eta2,
double phi1,
double phi2) {
18 return sqrt(
pow(eta1 - eta2, 2) +
pow(phi1 - phi2, 2));
22 std::vector<Calibratable>& toBeFilled) {
34 tree.SetBranchAddress(
"Calibratable", &calib_ptr);
36 std::cout <<
"Looping over tree's "<< tree.GetEntries() <<
" entries...\n";
41 toBeFilled.push_back(c);
44 return tree.GetEntries();
52 tree.SetBranchAddress(
"Calibratable", &calib_ptr);
54 csvFile.open(csvFilename.c_str());
56 std::cout <<
"Looping over tree's "<< tree.GetEntries() <<
" entries...\n";
58 TFile freq(
"freq.root",
"recreate");
59 TH1F frequencies(
"f",
"f", 50, 0, range);
60 TF1
g(
"g",
"gaus(0)");
61 g.FixParameter(1, range/2.0);
63 g.FixParameter(2, range/4.0);
99 csvFile << fabs(c.
sim_eta_/2) <<
"\n";
107 frequencies.Print(
"frequencies.eps");
110 std::cout <<
"Closing file " << csvFilename <<
" with " << writes <<
" entries.\n" << std::endl;
122 sourceChain.SetBranchAddress(
"Calibratable", &calib_ptr);
123 std::cout << __PRETTY_FUNCTION__ << std::endl;
124 std::cout <<
"WARNING: Using fabs() for eta value assignments!\n";
125 std::cout <<
"Cutting on > 1 PFCandidate.\n";
126 std::cout <<
"Looping over tree's "<< sourceChain.GetEntries() <<
" entries...\n";
156 std::cout <<
"WARNING: HARD CUT ON 100 GeV SIM PARTICLES!\n";
173 pd->addTruthDeposition(decal);
174 pd->addRecDeposition(decal);
176 pd->addTruthDeposition(dhcal);
177 pd->addRecDeposition(dhcal);
180 pd->addTruthDeposition(doffset);
181 pd->addRecDeposition(doffset);
195 pd->addTruthDeposition(decal);
196 pd->addTruthDeposition(dhcal);
197 pd->addRecDeposition(decal);
198 pd->addRecDeposition(dhcal);
201 pd->addTruthDeposition(doffset);
202 pd->addRecDeposition(doffset);
206 else if (target ==
RECHIT) {
218 pd->addTruthDeposition(decal);
219 pd->addTruthDeposition(dhcal);
220 pd->addRecDeposition(decal);
221 pd->addRecDeposition(dhcal);
224 pd->addTruthDeposition(doffset);
225 pd->addRecDeposition(doffset);
230 toBeFilled.push_back(pd);
235 return toBeFilled.size();
239 const std::vector<Calibratable>&
input,
244 std::cout << __PRETTY_FUNCTION__ << std::endl;
245 std::cout <<
"WARNING: Using fabs() for eta value assignments!\n";
246 std::cout <<
"Input Calibratable has size "<< input.size() <<
"\n";
247 std::cout <<
"Cutting on > 1 PFCandidate.\n";
253 for (std::vector<Calibratable>::const_iterator cit = input.begin(); cit
254 != input.end(); ++cit) {
289 pd->addTruthDeposition(decal);
290 pd->addRecDeposition(decal);
292 pd->addTruthDeposition(dhcal);
293 pd->addRecDeposition(dhcal);
296 pd->addTruthDeposition(doffset);
297 pd->addRecDeposition(doffset);
311 pd->addTruthDeposition(decal);
312 pd->addTruthDeposition(dhcal);
313 pd->addRecDeposition(decal);
314 pd->addRecDeposition(dhcal);
317 pd->addTruthDeposition(doffset);
318 pd->addRecDeposition(doffset);
322 else if (target ==
RECHIT) {
334 pd->addTruthDeposition(decal);
335 pd->addTruthDeposition(dhcal);
336 pd->addRecDeposition(decal);
337 pd->addRecDeposition(dhcal);
340 pd->addTruthDeposition(doffset);
341 pd->addRecDeposition(doffset);
346 toBeFilled.push_back(pd);
351 return toBeFilled.size();
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
static std::string const input
double deltaR(double eta1, double eta2, double phi1, double phi2)
Power< A, B >::type pow(const A &a, const B &b)