1 | #include "MMcTrigHeader.hxx"
|
---|
2 |
|
---|
3 | #include <iostream.h>
|
---|
4 |
|
---|
5 |
|
---|
6 | //==========
|
---|
7 | // MMcTrigHeader
|
---|
8 | //
|
---|
9 | // This class contains the MonteCarlo information
|
---|
10 | // of the trigger simulation for the current run.
|
---|
11 | // The information is saved only once, whatever the
|
---|
12 | // number of events is
|
---|
13 | //
|
---|
14 | // This is the second version of this output class. Old root files, which have
|
---|
15 | // a previous version of this class, are still compatibles and can be used.
|
---|
16 | // But of course, you can no try to get infromatino in these old files about
|
---|
17 | // the new data members.
|
---|
18 | //
|
---|
19 | // The following data member have been introduced in this second version
|
---|
20 | // and they do not exist in the previous one:
|
---|
21 | //
|
---|
22 | // Float_t fElecNoiseTrig; The width of the gaussian noise is that times
|
---|
23 | // the amplitude of the single phe response
|
---|
24 | // for the trigger
|
---|
25 | //
|
---|
26 | /////////////////////////
|
---|
27 |
|
---|
28 | ClassImp(MMcTrigHeader);
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 | MMcTrigHeader::MMcTrigHeader() {
|
---|
33 | //
|
---|
34 | // default constructor
|
---|
35 | // set all values to zero
|
---|
36 |
|
---|
37 | Int_t i;
|
---|
38 |
|
---|
39 | fTopology = -1 ;
|
---|
40 | fMultiplicity = -1 ;
|
---|
41 | for(i=0;i<CAMERA_PIXELS;i++){
|
---|
42 | fThreshold[i] = -1.0;
|
---|
43 | }
|
---|
44 |
|
---|
45 | fTrigPattern[0]=0;
|
---|
46 | fTrigPattern[1]=0;
|
---|
47 |
|
---|
48 | fTrigShape=0.0;
|
---|
49 | fAmplTrig=RESPONSE_AMPLITUDE;
|
---|
50 | fFwhmTrig=RESPONSE_FWHM;
|
---|
51 | fOverlapingTime=TRIGGER_OVERLAPING;
|
---|
52 | fGateLeng=TRIGGER_GATE ;
|
---|
53 | }
|
---|
54 |
|
---|
55 | MMcTrigHeader::~MMcTrigHeader() {
|
---|
56 | //
|
---|
57 | // default destructor
|
---|
58 | //
|
---|
59 | }
|
---|
60 |
|
---|
61 |
|
---|
62 | void MMcTrigHeader::Print(Option_t *opt) const {
|
---|
63 | //
|
---|
64 | // print out the data member on screen
|
---|
65 | //
|
---|
66 | cout << endl;
|
---|
67 | cout << "Monte Carlo Trigger output:" << endl;
|
---|
68 | cout << " XSTopology Trigger in this run: " << fTopology << endl;
|
---|
69 | cout << " Multiplicity Trigger in this run: " << fMultiplicity << endl;
|
---|
70 | cout << " Trigger Pattern in this run: ";
|
---|
71 | cout << fTrigPattern[0] << ", " << fTrigPattern[1] << endl;
|
---|
72 | cout << endl;
|
---|
73 | }
|
---|