Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
analyze.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file analyze.C
1 void analyze(int nevts=20,
2  char *prdfname="/gpfs/mnt/gpfs02/sphenix/data/data01/t1044-2016a/cosmics/cosmics_00001858-0000.prdf",
3  char *outfile = "signal.root")
4 {
5  gSystem->Load("/gpfs/mnt/gpfs02/sphenix/sim/sim01/sPHENIX/sunywrk/abhisek/HCAL/build/lib/libhcal.so");
6  //IHCAL high gain channels
7  int hbd_channels[] = {64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94};
8 
9  //IHCAL low gain channels
10  //int hbd_channels[] = {65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95};
11 
12  //OHCAL high gain channels
13  //int hbd_channels[] = {112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142};
14 
15  //OHCAL low gain channels
16  //int hbd_channels[] = {113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143};
17 
18  int nch = sizeof(hbd_channels)/sizeof(int);
19  hcal *hcaldet = new hcal();
20  hcaldet->setPrdf(prdfname);
21  hcaldet->SetCableMap(nch,hbd_channels);
22  hcaldet->set_verbosity( false );
23  hcaldet->set_display( true );
24  hcaldet->set_positive_polarity( false );
25  hcaldet->evLoop(nevts);
26  hcaldet->Save(outfile);
27 }
28